Class DomElementBuilderBase<R extends ElementBuilderBase<?>,E extends Element>

java.lang.Object
com.google.gwt.dom.builder.shared.AbstractElementBuilderBase<R>
com.google.gwt.dom.builder.client.DomElementBuilderBase<R,E>
Type Parameters:
R - the builder type returned from build methods
E - the Element type
All Implemented Interfaces:
ElementBuilderBase<R>
Direct Known Subclasses:
DomAnchorBuilder, DomAreaBuilder, DomBaseBuilder, DomBodyBuilder, DomBRBuilder, DomButtonBuilder, DomCanvasBuilder, DomDivBuilder, DomDListBuilder, DomElementBuilder, DomFieldSetBuilder, DomFormBuilder, DomFrameBuilder, DomFrameSetBuilder, DomHeadBuilder, DomHeadingBuilder, DomHRBuilder, DomIFrameBuilder, DomImageBuilder, DomInputBuilder, DomLabelBuilder, DomLegendBuilder, DomLIBuilder, DomLinkBuilder, DomMapBuilder, DomMediaBuilderBase, DomMetaBuilder, DomModBuilder, DomOListBuilder, DomOptGroupBuilder, DomOptionBuilder, DomParagraphBuilder, DomParamBuilder, DomPreBuilder, DomQuoteBuilder, DomScriptBuilder, DomSelectBuilder, DomSourceBuilder, DomSpanBuilder, DomStyleBuilder, DomTableBuilder, DomTableCaptionBuilder, DomTableCellBuilder, DomTableColBuilder, DomTableRowBuilder, DomTableSectionBuilder, DomTextAreaBuilder, DomUListBuilder

public class DomElementBuilderBase<R extends ElementBuilderBase<?>,E extends Element> extends AbstractElementBuilderBase<R>
Implementation of ElementBuilderBase that delegates to a DomBuilderImpl.

Subclasses of DomElementBuilderBase operate directly on the Element being built.

  • Constructor Details

    • DomElementBuilderBase

      DomElementBuilderBase(DomBuilderImpl delegate)
      Construct a new DomElementBuilderBase.
      Parameters:
      delegate - the delegate that builds the element
    • DomElementBuilderBase

      DomElementBuilderBase(DomBuilderImpl delegate, boolean isEndTagForbidden)
      Construct a new DomElementBuilderBase.
      Parameters:
      delegate - the delegate that builds the element
      isEndTagForbidden - true if the end tag is forbidden for this element
  • Method Details

    • attribute

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

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

      public R className(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:
    • dir

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

      public R draggable(String draggable)
      Description copied from interface: ElementBuilderBase
      Changes the draggable attribute to one of Element.DRAGGABLE_AUTO, Element.DRAGGABLE_FALSE, or Element.DRAGGABLE_TRUE.
      Parameters:
      draggable - a String constant
      Returns:
      this builder
    • id

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

      public R 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(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
    • startTBody

      public TableSectionBuilder startTBody()
      Description copied from interface: ElementBuilderBase
      Append a tbody element.
      Returns:
      the builder for the new element
    • startTD

      public TableCellBuilder startTD()
      Description copied from interface: ElementBuilderBase
      Append a td 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
    • startTFoot

      public TableSectionBuilder startTFoot()
      Description copied from interface: ElementBuilderBase
      Append a tfoot element.
      Returns:
      the builder for the new element
    • startTH

      public TableCellBuilder startTH()
      Description copied from interface: ElementBuilderBase
      Append a th element.
      Returns:
      the builder for the new element
    • startTHead

      public TableSectionBuilder startTHead()
      Description copied from interface: ElementBuilderBase
      Append a thead 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(String title)
      Description copied from interface: ElementBuilderBase
      The element's advisory title.
      Returns:
      this builder
    • trustedStart

      public ElementBuilder trustedStart(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
    • assertCanAddAttribute

      protected E assertCanAddAttribute()
      Assert that the builder is in a state where an attribute can be added.
      Returns:
      the element on which the attribute can be set
    • getDelegate

      DomBuilderImpl getDelegate()