Class HtmlElementBuilderBase<R extends ElementBuilderBase<?>>

    • Constructor Detail

      • HtmlElementBuilderBase

        HtmlElementBuilderBase​(HtmlBuilderImpl delegate,
                               boolean isEndTagForbidden)
        Construct a new HtmlElementBuilderBase.
        Parameters:
        delegate - the delegate that builds the element
        isEndTagForbidden - true if the end tag is forbidden for this element
    • Method Detail

      • asSafeHtml

        public SafeHtml asSafeHtml()
        Return the HTML as a SafeHtml string.
      • attribute

        public R attribute​(java.lang.String name,
                           int value)
        Description copied from interface: ElementBuilderBase
        Add an integer attribute to the object.
        Returns:
        this builder
      • attribute

        public R attribute​(java.lang.String name,
                           java.lang.String value)
        Description copied from interface: ElementBuilderBase
        Add a string attribute to the object.
        Returns:
        this builder
      • className

        public R className​(java.lang.String className)
        Description copied from interface: ElementBuilderBase
        The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages.
        Returns:
        this builder
        See Also:
        W3C HTML Specification
      • dir

        public R dir​(java.lang.String dir)
        Description copied from interface: ElementBuilderBase
        Specifies the base direction of directionally neutral text and the directionality of tables.
        Returns:
        this builder
      • id

        public R id​(java.lang.String id)
        Description copied from interface: ElementBuilderBase
        Set the id.
        Parameters:
        id - the id
        Returns:
        this builder
      • lang

        public R lang​(java.lang.String lang)
        Description copied from interface: ElementBuilderBase
        Language code defined in RFC 1766.
        Returns:
        this builder
      • startAnchor

        public AnchorBuilder startAnchor()
        Description copied from interface: ElementBuilderBase
        Append a anchor element.
        Returns:
        the builder for the new element
      • startArea

        public AreaBuilder startArea()
        Description copied from interface: ElementBuilderBase
        Append a area element.
        Returns:
        the builder for the new element
      • startAudio

        public AudioBuilder startAudio()
        Description copied from interface: ElementBuilderBase
        Append a audio element.
        Returns:
        the builder for the new element
      • startBase

        public BaseBuilder startBase()
        Description copied from interface: ElementBuilderBase
        Append a base element.
        Returns:
        the builder for the new element
      • startBlockQuote

        public QuoteBuilder startBlockQuote()
        Description copied from interface: ElementBuilderBase
        Append a block quote element.
        Returns:
        the builder for the new element
      • startBody

        public BodyBuilder startBody()
        Description copied from interface: ElementBuilderBase
        Append a body element.
        Returns:
        the builder for the new element
      • startBR

        public BRBuilder startBR()
        Description copied from interface: ElementBuilderBase
        Append a br element.
        Returns:
        the builder for the new element
      • startButtonInput

        public InputBuilder startButtonInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='button'> element.
        Returns:
        the builder for the new element
      • startCanvas

        public CanvasBuilder startCanvas()
        Description copied from interface: ElementBuilderBase
        Append a canvas element.
        Returns:
        the builder for the new element
      • startCheckboxInput

        public InputBuilder startCheckboxInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='check'> element.
        Returns:
        the builder for the new element
      • startCol

        public TableColBuilder startCol()
        Description copied from interface: ElementBuilderBase
        Append a tablecol element.
        Returns:
        the builder for the new element
      • startColGroup

        public TableColBuilder startColGroup()
        Description copied from interface: ElementBuilderBase
        Append a tablecol element.
        Returns:
        the builder for the new element
      • startDiv

        public DivBuilder startDiv()
        Description copied from interface: ElementBuilderBase
        Append a div element.
        Returns:
        the builder for the new element
      • startDList

        public DListBuilder startDList()
        Description copied from interface: ElementBuilderBase
        Append a dlist element.
        Returns:
        the builder for the new element
      • startFieldSet

        public FieldSetBuilder startFieldSet()
        Description copied from interface: ElementBuilderBase
        Append a fieldset element.
        Returns:
        the builder for the new element
      • startFileInput

        public InputBuilder startFileInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='file'> element.
        Returns:
        the builder for the new element
      • startForm

        public FormBuilder startForm()
        Description copied from interface: ElementBuilderBase
        Append a form element.
        Returns:
        the builder for the new element
      • startFrame

        public FrameBuilder startFrame()
        Description copied from interface: ElementBuilderBase
        Append a frame element.
        Returns:
        the builder for the new element
      • startFrameSet

        public FrameSetBuilder startFrameSet()
        Description copied from interface: ElementBuilderBase
        Append a frameset element.
        Returns:
        the builder for the new element
      • startH1

        public HeadingBuilder startH1()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startH2

        public HeadingBuilder startH2()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startH3

        public HeadingBuilder startH3()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startH4

        public HeadingBuilder startH4()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startH5

        public HeadingBuilder startH5()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startH6

        public HeadingBuilder startH6()
        Description copied from interface: ElementBuilderBase
        Append a heading element.
        Returns:
        the builder for the new element
      • startHead

        public HeadBuilder startHead()
        Description copied from interface: ElementBuilderBase
        Append a head element.
        Returns:
        the builder for the new element
      • startHiddenInput

        public InputBuilder startHiddenInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='hidden'> element.
        Returns:
        the builder for the new element
      • startHR

        public HRBuilder startHR()
        Description copied from interface: ElementBuilderBase
        Append a hr element.
        Returns:
        the builder for the new element
      • startIFrame

        public IFrameBuilder startIFrame()
        Description copied from interface: ElementBuilderBase
        Append a iframe element.
        Returns:
        the builder for the new element
      • startImage

        public ImageBuilder startImage()
        Description copied from interface: ElementBuilderBase
        Append a image element.
        Returns:
        the builder for the new element
      • startImageInput

        public InputBuilder startImageInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='image'> element.
        Returns:
        the builder for the new element
      • startLabel

        public LabelBuilder startLabel()
        Description copied from interface: ElementBuilderBase
        Append a label element.
        Returns:
        the builder for the new element
      • startLegend

        public LegendBuilder startLegend()
        Description copied from interface: ElementBuilderBase
        Append a legend element.
        Returns:
        the builder for the new element
      • startLI

        public LIBuilder startLI()
        Description copied from interface: ElementBuilderBase
        Append a li element.
        Returns:
        the builder for the new element
      • startLink

        public LinkBuilder startLink()
        Description copied from interface: ElementBuilderBase
        Append a link element.
        Returns:
        the builder for the new element
      • startMap

        public MapBuilder startMap()
        Description copied from interface: ElementBuilderBase
        Append a map element.
        Returns:
        the builder for the new element
      • startMeta

        public MetaBuilder startMeta()
        Description copied from interface: ElementBuilderBase
        Append a meta element.
        Returns:
        the builder for the new element
      • startOList

        public OListBuilder startOList()
        Description copied from interface: ElementBuilderBase
        Append a olist element.
        Returns:
        the builder for the new element
      • startOptGroup

        public OptGroupBuilder startOptGroup()
        Description copied from interface: ElementBuilderBase
        Append a optgroup element.
        Returns:
        the builder for the new element
      • startOption

        public OptionBuilder startOption()
        Description copied from interface: ElementBuilderBase
        Append an option element.
        Returns:
        the builder for the new element
      • startParagraph

        public ParagraphBuilder startParagraph()
        Description copied from interface: ElementBuilderBase
        Append a paragraph element.
        Returns:
        the builder for the new element
      • startParam

        public ParamBuilder startParam()
        Description copied from interface: ElementBuilderBase
        Append a param element.
        Returns:
        the builder for the new element
      • startPasswordInput

        public InputBuilder startPasswordInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='password'> element.
        Returns:
        the builder for the new element
      • startPre

        public PreBuilder startPre()
        Description copied from interface: ElementBuilderBase
        Append a pre element.
        Returns:
        the builder for the new element
      • startPushButton

        public ButtonBuilder startPushButton()
        Description copied from interface: ElementBuilderBase
        Append a button element with type "button".
        Returns:
        the builder for the new element
      • startQuote

        public QuoteBuilder startQuote()
        Description copied from interface: ElementBuilderBase
        Append a quote element.
        Returns:
        the builder for the new element
      • startRadioInput

        public InputBuilder startRadioInput​(java.lang.String name)
        Description copied from interface: ElementBuilderBase
        Append an <input type='radio'> element.
        Parameters:
        name - name the name of the radio input (used for grouping)
        Returns:
        the builder for the new element
      • startResetButton

        public ButtonBuilder startResetButton()
        Description copied from interface: ElementBuilderBase
        Append a button element with type "reset".
        Returns:
        the builder for the new element
      • startResetInput

        public InputBuilder startResetInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='reset'> element.
        Returns:
        the builder for the new element
      • startScript

        public ScriptBuilder startScript()
        Description copied from interface: ElementBuilderBase
        Append a script element.
        Returns:
        the builder for the new element
      • startSelect

        public SelectBuilder startSelect()
        Description copied from interface: ElementBuilderBase
        Append a select element.
        Returns:
        the builder for the new element
      • startSource

        public SourceBuilder startSource()
        Description copied from interface: ElementBuilderBase
        Append a source element.
        Returns:
        the builder for the new element
      • startSpan

        public SpanBuilder startSpan()
        Description copied from interface: ElementBuilderBase
        Append a span element.
        Returns:
        the builder for the new element
      • startStyle

        public StyleBuilder startStyle()
        Description copied from interface: ElementBuilderBase
        Append a style element.
        Returns:
        the builder for the new element
      • startSubmitButton

        public ButtonBuilder startSubmitButton()
        Description copied from interface: ElementBuilderBase
        Append a button element with type "submit".
        Returns:
        the builder for the new element
      • startSubmitInput

        public InputBuilder startSubmitInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='submit'> element.
        Returns:
        the builder for the new element
      • startTable

        public TableBuilder startTable()
        Description copied from interface: ElementBuilderBase
        Append a table element.
        Returns:
        the builder for the new element
      • startTableCaption

        public TableCaptionBuilder startTableCaption()
        Description copied from interface: ElementBuilderBase
        Append a table caption element.
        Returns:
        the builder for the new element
      • startTextArea

        public TextAreaBuilder startTextArea()
        Description copied from interface: ElementBuilderBase
        Append a textarea element.
        Returns:
        the builder for the new element
      • startTextInput

        public InputBuilder startTextInput()
        Description copied from interface: ElementBuilderBase
        Append an <input type='text'> element.
        Returns:
        the builder for the new element
      • startTitle

        public TitleBuilder startTitle()
        Append a title element.
        Returns:
        the builder for the new element
      • startTR

        public TableRowBuilder startTR()
        Description copied from interface: ElementBuilderBase
        Append a tablerow element.
        Returns:
        the builder for the new element
      • startUList

        public UListBuilder startUList()
        Description copied from interface: ElementBuilderBase
        Append a ulist element.
        Returns:
        the builder for the new element
      • startVideo

        public VideoBuilder startVideo()
        Description copied from interface: ElementBuilderBase
        Append a video element.
        Returns:
        the builder for the new element
      • tabIndex

        public R tabIndex​(int tabIndex)
        Description copied from interface: ElementBuilderBase
        Set the tab index.
        Parameters:
        tabIndex - the tab index
        Returns:
        this builder
      • title

        public R title​(java.lang.String title)
        Description copied from interface: ElementBuilderBase
        The element's advisory title.
        Returns:
        this builder
      • trustedStart

        public ElementBuilder trustedStart​(java.lang.String tagName)
        Description copied from interface: ElementBuilderBase
        Append a new element with the specified trusted tag name. The tag name will will not be checked or escaped. The calling code should be carefully reviewed to ensure that the provided tag name will not cause a security issue if including in an HTML document. In general, this means limiting the code to HTML tagName constants supported by the HTML specification.
        Parameters:
        tagName - the tag name
        Returns:
        the ElementBuilder for the new element
      • trustedAttribute

        R trustedAttribute​(java.lang.String name,
                           int value)
        Add an attribute with a trusted name.
      • trustedAttribute

        R trustedAttribute​(java.lang.String name,
                           java.lang.String value)
        Add an attribute with a trusted name. The name is still escaped.