Libraries.Web.Page.WebPage Documentation

The WebPage class represents HTML's (Hypertext Markup Language) option tag which defines the document as an html document. You can find more information about this tag at: The html attribute.

Example Code

use Libraries.Web.Page.all
class Main
action main
   WebPage page
   
   Body body
   page:SetBody(body)

   page:AddToBody(body)
   output page:Generate()
end
end

Inherits from: Libraries.Web.Page.WebGenerator, Libraries.Web.Page.AttributeAccepter, Libraries.Language.Object, Libraries.Web.Page.GlobalAttributeAccepter

Actions Documentation

Add(Libraries.Web.Page.Highlight content)

This action places a Highlight object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Highlight highlight
        page:Add(highlight)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Inserted content)

This action places an Inserted object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Inserted inserted
        page:Add(inserted)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.PerformanceGauge content)

This action places a PerformanceGauge object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        PerformanceGauge performanceGauge
        page:Add(performanceGauge)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Article content)

This action places an Article object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Article article
        page:Add(article)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.StrikeThrough content)

This action places a StrikeThrough object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        StrikeThrough strikeThrough
        page:Add(strikeThrough)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.LineBreak content)

This action places a LineBreak object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        LineBreak lineBreak
        page:Add(lineBreak)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.UnderlineText content)

This action places an UnderlineText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        UnderlineText underlineText
        page:Add(underlineText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.DefinitionTerm content)

This action places a DefinitionTerm object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        DefinitionTerm definitionTerm
        page:Add(definitionTerm)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.OwnerAddress content)

This action places an OwnerAddress object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        OwnerAddress ownerAddress
        page:Add(ownerAddress)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Audio content)

This action places an Audio object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Audio audio
        page:Add(audio)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Form content)

This action places a Form object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Form form
        page:Add(form)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.UnorderedList content)

This action places an UnorderedList object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        UnorderedList unorderedList
        page:Add(unorderedList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Heading content)

This action places a Heading object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Heading heading
        page:Add(heading)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Section content)

This action places a Section object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Section section
        page:Add(section)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.StrongText content)

This action places a StrongText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        StrongText strongText
        page:Add(strongText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.SuperscriptText content)

This action places a SuperscriptText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        SuperscriptText superscriptText
        page:Add(superscriptText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Footer content)

This action places a Footer object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Footer footer
        page:Add(footer)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Attribute attribute)

This action adds an attribute to this object. If an attribute with the same name as

Parameters

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

Attribute attribute
attribute:SetName("src")
attribute:SetValue("http://www.google.com")

AttributeAccepter accept
accept:Add(attribute)

Add(Libraries.Web.Page.Select content)

This action places a Select object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Select select
        page:Add(select)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.DefinitionList content)

This action places a DefinitionList object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        DefinitionList definitionList
        page:Add(definitionList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.NavigationDivision content)

This action places a NavigationDivision object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        NavigationDivision navigationDivision
        page:Add(navigationDivision)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Label content)

This action places a Label object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Label label
        page:Add(label)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.KeyboardInput content)

This action places a KeyboardInput object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        KeyboardInput keyboardInput
        page:Add(keyboardInput)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Variable content)

This action places a Variable object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Variable variable
        page:Add(variable)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.ListOptions content)

This action places a ListOptions object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        ListOptions listOptions
        page:Add(listOptions)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Quote content)

This action places a Quote object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Quote quote
        page:Add(quote)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Header content)

This action places a Header object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Header header
        page:Add(header)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.BiDirectionalOverride content)

This action places a BiDirectionalOverride object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        BiDirectionalOverride biDirectionalOverride
        page:Add(biDirectionalOverride)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.CodeBlock content)

This action places a CodeBlock object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        CodeBlock codeBlock
        page:Add(codeBlock)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.OrderedList content)

This action places an OrderedList object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        OrderedList orderedList
        page:Add(orderedList)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.FieldSet content)

This action places a FieldSet object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        FieldSet fieldSet
        page:Add(fieldSet)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.BlockQuote content)

This action places a BlockQuote object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        BlockQuote blockQuote
        page:Add(blockQuote)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.ImageMap content)

This action places an ImageMap object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        ImageMap imageMap
        page:Add(imageMap)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Span content)

This action places a Span object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Span span
        page:Add(span)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Area content)

This action places an Area object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Area area
        page:Add(area)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.KeyGenerator content)

This action places a KeyGenerator object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        KeyGenerator keyGenerator
        page:Add(keyGenerator)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Image content)

This action places an Image object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Image image
        page:Add(image)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Division content)

This action places a Division object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Division division
        page:Add(division)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Figure content)

This action places a Figure object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Figure figure
        page:Add(figure)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Ruby content)

This action places a Ruby object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Ruby ruby
        page:Add(ruby)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Input content)

This action places an Input object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Input input
        page:Add(input)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Embed content)

This action places an Embed object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Embed embed
        page:Add(embed)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Emphasize content)

This action places an Emphasize object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Emphasize emphasize
        page:Add(emphasize)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.SubscriptText content)

This action places a SubscriptText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        SubscriptText subscriptText
        page:Add(subscriptText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.SmallText content)

This action places a SmallText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        SmallText smallText
        page:Add(smallText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.InlineFrame content)

This action places an InlineFrame object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        InlineFrame inlineFrame
        page:Add(inlineFrame)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.NoScript content)

This action places a NoScript object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        NoScript noScript
        page:Add(noScript)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.WebTable content)

This action places a WebTable object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        WebTable webTable
        page:Add(webTable)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Abbreviation content)

This action places a Abbreviation object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Abbreviation abbreviation
        page:Add(abbreviation)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.ProgressBar content)

This action places a ProgressBar object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        ProgressBar progressBar
        page:Add(progressBar)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Bold content)

This action places a Bold object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Bold bold
        page:Add(bold)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Video content)

This action places a Video object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Video video
        page:Add(video)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.HiddenContent content)

This action places a HiddenContent object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        HiddenContent hiddenContent
        page:Add(hiddenContent)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.PreformattedText content)

This action places a PreformattedText object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        PreformattedText preformattedText
        page:Add(preformattedText)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Paragraph content)

This action places a Paragraph object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Paragraph paragraph
        page:Add(paragraph)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.BiDirectionalIsolation content)

This action places a BiDirectionalIsolation object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        BiDirectionalIsolation biDirectionalIsolation
        page:Add(biDirectionalIsolation)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Script content)

This action places a Script object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Script script
        page:Add(script)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.MainContent content)

This action places a MainContent object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        MainContent mainContent
        page:Add(mainContent)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.TextArea content)

This action places a TextArea object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        TextArea textArea
        page:Add(textArea)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Canvas content)

This action places a Canvas object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Canvas canvas
        page:Add(canvas)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Italic content)

This action places an Italic object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Italic italic
        page:Add(italic)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Deleted content)

This action places a Deleted object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Deleted deleted
        page:Add(deleted)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Button content)

This action places a Button object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Button button
        page:Add(button)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Time content)

This action places a Time object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Time time
        page:Add(time)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.SampleOutput content)

This action places a SampleOutput object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        SampleOutput sampleOutput
        page:Add(sampleOutput)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Cite content)

This action places a Cite object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Cite cite
        page:Add(cite)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.PageBreak content)

This action places a PageBreak object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        PageBreak pageBreak
        page:Add(pageBreak)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.Aside content)

This action places an Aside object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Aside aside
        page:Add(aside)

        text value = page:Generate()
        output value
    end
end

This action places a Link object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        Link link
        page:Add(link)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.WordBreak content)

This action places a WordBreak object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        WordBreak wordBreak
        page:Add(wordBreak)

        text value = page:Generate()
        output value
    end
end

Add(Libraries.Web.Page.EmbedContent content)

This action places an EmbedContent object in the body of a WebPage.

Parameters

Example

use Libraries.Web.Page.all

class Main
    action Main
        WebPage page
        

        EmbedContent embedContent
        page:Add(embedContent)

        text value = page:Generate()
        output value
    end
end

AddAttribute(text name, text value)

This action adds an attribute to this object. This action is a helper action, which essentially does the same thing as the Add(Attribute) action. If an attribute with the same name as

Parameters

  • text name: The name of the attribute functions as a key. For example, in a link, we might have a "src" and an actual address, like google.com. In this case, the name would be equivalent to the src.
  • text value: As an example of link, imagine we have a value of "src" and an actual address, like google.com. In this case, the value would be equivalent to google.com.

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")

AddClassAttribute(text value)

Adds to the ClassAttribute attribute. Multiple class names can be listed in the passed text, separated by a space.

Parameters

  • text value: The classes to be added to the element

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
accept:AddClassAttribute("myClass")

AddIcon(text path)

This action adds a link to an icon in the header. This is sometimes referred to as a "favicon".

Parameters

  • text path: The location of the stylesheet being added. The file extension must be .ico

Return

Libraries.Web.Page.HeaderLink: The generated link for any further manipulation

Example

use Libraries.Web.Page.all

WebPage page
page:AddIcon("favicon.ico")

AddMetaData(Libraries.Web.Page.MetaData meta)

This action sets the title of the webpage.

Parameters

Example

use Libraries.Web.Page.WebPage
use Libraries.Web.Page.Attribute

WebPage page
page:SetWebPageTitle("My First Webpage")

AddScript(text path)

This action adds a script in the header.

Parameters

  • text path: The location of the script being added.

Return

Libraries.Web.Page.Script: The generated Script for any further manipulation

Example

use Libraries.Web.Page.all

WebPage page
page:AddScript("script.js")

AddStylesheet(text path)

This action adds a link to a stylesheet in the header.

Parameters

  • text path: The location of the stylesheet being added.

Return

Libraries.Web.Page.HeaderLink: The generated HeaderLink for any further manipulation

Example

use Libraries.Web.Page.all

WebPage page
page:AddStylesheet("style.css")

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Example

Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Example

use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)

Generate()

This action sets the body of the webpage.

Return

text:

Example

use Libraries.Web.Page.WebPage
use Libraries.Web.Page.Body

WebPage page
Body body
page:SetBody(body)

GenerateAttributes()

This action returns a text description of all attributes stored.

Return

text:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
text result = accept:GenerateAttributes()

GetAccessKey()

Returns the AccessKey attribute. Specifies a shortcut key for the web element.

Return

Libraries.Web.Page.Attribute: The current AccessKey attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetAccessKey()

GetAttribute(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Parameters

  • text name

Return

Libraries.Web.Page.Attribute:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
//as we have not set any attribute, this would
//return undefined
Attribute attribute = accept:GetAttribute("src")

GetAttributeValue(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Parameters

  • text name: The key value in this case is described in more detail in the documentation for this class's Add actions.

Return

text:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
text value = accept:GetAttributeValue("src")

GetAttributes()

Returns a list of all attributes on the system.

Return

Libraries.Web.Page.Attributes: The attributes class contains all of the attributes that have been set for this object.

Example



use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attributes

AttributeAccepter accept
Attributes attributes = accept:GetAttributes()

GetBody()

This action gets the body of the webpage.

Return

Libraries.Web.Page.Body: The body of the webpage.

Example

use Libraries.Web.Page.WebPage
use Libraries.Web.Page.Body

WebPage page
Body result = page:GetBody()

GetClassAttribute()

Returns the ClassAttribute attribute.

Return

Libraries.Web.Page.Attribute: The current ClassAttribute attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetClassAttribute()

GetContentEditable()

Returns the ContentEditable attribute.

Return

Libraries.Web.Page.Attribute: The current ContentEditable attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetContentEditable()

GetContextMenu()

Returns the ContextMenu attribute.

Return

Libraries.Web.Page.Attribute: The current ContextMenu attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetContextMenu()

GetDocumentType()

This action gets the type of document.

Return

Libraries.Web.Page.DocumentType: The type of document.

Example

use Libraries.Web.Page.WebPage
use Libraries.Web.Page.DocumentType

WebPage page
DocumentType result = page:GetDocumentType()

GetDraggable()

Returns the Draggable attribute.

Return

Libraries.Web.Page.Attribute: The current Draggable attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetDraggable()

GetDropZone()

Returns the DropZone attribute.

Return

Libraries.Web.Page.Attribute: The current DropZone attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetDropZone()

GetHashCode()

This action gets the hash code for an object.

Return

integer: The integer hash code of the object.

Example

Object o
integer hash = o:GetHashCode()

GetHidden()

Returns the Hidden attribute.

Return

Libraries.Web.Page.Attribute: The current Hidden attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetHidden()

GetIdentifier()

Returns the Identifier attribute.

Return

Libraries.Web.Page.Attribute: The current Identifier attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetIdentifier()

GetIterator()

This action returns an iterator of all attributes stored in this object.

Return

Libraries.Containers.Iterator:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
use Libraries.Containers.Iterator

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")

//output out all of the attributes
Iterator<Attribute> it =  accept:GetIterator()
repeat while it:HasNext()
    Attribute at = it:Next()
    output at:Generate()
end

GetLanguage()

Returns the Language attribute.

Return

Libraries.Web.Page.Attribute: The current Language attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute attribute = accept:GetLanguage()

GetManifest()

This action gets the address of the documents cache.

Return

text: The document cache address.

Example

use Libraries.Web.Page.WebPage
use Libraries.Web.Page.Attribute

WebPage page
text result = page:GetManifest()

GetNumberOfAttributes()

This action returns the number of attributes that are currently stored in this object.

Return

integer:

Example


use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute

AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
integer num = accept:GetNumberOfAttributes()

GetSpellcheck()

Returns the Spellcheck attribute.

Return

Libraries.Web.Page.Attribute: The current Spellcheck attribute.

Example



use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute

GlobalAttributeAccepter accept
Attribute att