Class DomBuilderImpl
- java.lang.Object
-
- com.google.gwt.dom.builder.shared.ElementBuilderImpl
-
- com.google.gwt.dom.builder.client.DomBuilderImpl
-
class DomBuilderImpl extends ElementBuilderImpl
Implementation of methods inElementBuilderBase
used to render Elements using DOM manipulation.
-
-
Constructor Summary
Constructors Constructor Description DomBuilderImpl()
-
Method Summary
-
Methods inherited from class com.google.gwt.dom.builder.shared.ElementBuilderImpl
assertCanAddAttributeImpl, assertCanAddStylePropertyImpl, assertValidTagName, end, end, endAllTags, endStyle, finish, getDepth, html, onStart, text
-
-
-
-
Method Detail
-
startAnchor
public DomAnchorBuilder startAnchor()
-
startArea
public DomAreaBuilder startArea()
-
startAudio
public DomAudioBuilder startAudio()
-
startBase
public DomBaseBuilder startBase()
-
startBlockQuote
public DomQuoteBuilder startBlockQuote()
-
startBody
public DomBodyBuilder startBody()
-
startBR
public DomBRBuilder startBR()
-
startButtonInput
public InputBuilder startButtonInput()
-
startCanvas
public DomCanvasBuilder startCanvas()
-
startCheckboxInput
public InputBuilder startCheckboxInput()
-
startCol
public DomTableColBuilder startCol()
-
startColGroup
public DomTableColBuilder startColGroup()
-
startDiv
public DomDivBuilder startDiv()
-
startDList
public DomDListBuilder startDList()
-
startFieldSet
public DomFieldSetBuilder startFieldSet()
-
startFileInput
public InputBuilder startFileInput()
-
startForm
public DomFormBuilder startForm()
-
startFrame
public DomFrameBuilder startFrame()
-
startFrameSet
public DomFrameSetBuilder startFrameSet()
-
startH1
public DomHeadingBuilder startH1()
-
startH2
public DomHeadingBuilder startH2()
-
startH3
public DomHeadingBuilder startH3()
-
startH4
public DomHeadingBuilder startH4()
-
startH5
public DomHeadingBuilder startH5()
-
startH6
public DomHeadingBuilder startH6()
-
startHead
public DomHeadBuilder startHead()
-
startHiddenInput
public InputBuilder startHiddenInput()
-
startHR
public DomHRBuilder startHR()
-
startIFrame
public DomIFrameBuilder startIFrame()
-
startImage
public DomImageBuilder startImage()
-
startImageInput
public InputBuilder startImageInput()
-
startInput
public DomInputBuilder startInput(InputElement input)
Start an input using the specified InputElement.
-
startLabel
public DomLabelBuilder startLabel()
-
startLegend
public DomLegendBuilder startLegend()
-
startLI
public DomLIBuilder startLI()
-
startLink
public DomLinkBuilder startLink()
-
startMap
public DomMapBuilder startMap()
-
startMeta
public DomMetaBuilder startMeta()
-
startOList
public DomOListBuilder startOList()
-
startOptGroup
public DomOptGroupBuilder startOptGroup()
-
startOption
public DomOptionBuilder startOption()
-
startParagraph
public DomParagraphBuilder startParagraph()
-
startParam
public DomParamBuilder startParam()
-
startPasswordInput
public InputBuilder startPasswordInput()
-
startPre
public DomPreBuilder startPre()
-
startPushButton
public DomButtonBuilder startPushButton()
-
startQuote
public DomQuoteBuilder startQuote()
-
startRadioInput
public InputBuilder startRadioInput(java.lang.String name)
-
startResetButton
public DomButtonBuilder startResetButton()
-
startResetInput
public InputBuilder startResetInput()
-
startScript
public DomScriptBuilder startScript()
-
startSelect
public DomSelectBuilder startSelect()
-
startSource
public DomSourceBuilder startSource()
-
startSpan
public DomSpanBuilder startSpan()
-
startStyle
public DomStyleBuilder startStyle()
-
startSubmitButton
public DomButtonBuilder startSubmitButton()
-
startSubmitInput
public InputBuilder startSubmitInput()
-
startTable
public DomTableBuilder startTable()
-
startTableCaption
public DomTableCaptionBuilder startTableCaption()
-
startTBody
public DomTableSectionBuilder startTBody()
-
startTD
public DomTableCellBuilder startTD()
-
startTextArea
public DomTextAreaBuilder startTextArea()
-
startTFoot
public DomTableSectionBuilder startTFoot()
-
startTH
public DomTableCellBuilder startTH()
-
startTHead
public DomTableSectionBuilder startTHead()
-
startTR
public DomTableRowBuilder startTR()
-
startUList
public DomUListBuilder startUList()
-
startVideo
public DomVideoBuilder startVideo()
-
style
public StylesBuilder style()
Description copied from class:ElementBuilderImpl
Get theStylesBuilder
used to add style properties to the current element.- Specified by:
style
in classElementBuilderImpl
- Returns:
- a
StylesBuilder
-
trustedStart
public DomElementBuilder trustedStart(java.lang.String tagName)
-
doCloseStartTagImpl
protected void doCloseStartTagImpl()
Description copied from class:ElementBuilderImpl
Close the start tag.- Specified by:
doCloseStartTagImpl
in classElementBuilderImpl
-
doCloseStyleAttributeImpl
protected void doCloseStyleAttributeImpl()
Description copied from class:ElementBuilderImpl
Close the style attribute.- Specified by:
doCloseStyleAttributeImpl
in classElementBuilderImpl
-
doEndStartTagImpl
protected void doEndStartTagImpl()
Description copied from class:ElementBuilderImpl
Self-close the start tag. This method is called for elements that forbid the end tag.- Specified by:
doEndStartTagImpl
in classElementBuilderImpl
-
doEndTagImpl
protected void doEndTagImpl(java.lang.String tagName)
Description copied from class:ElementBuilderImpl
End the specified tag.- Specified by:
doEndTagImpl
in classElementBuilderImpl
- Parameters:
tagName
- the name of the tag to end
-
doFinishImpl
protected Element doFinishImpl()
Description copied from class:ElementBuilderImpl
Return the build element.- Specified by:
doFinishImpl
in classElementBuilderImpl
- Returns:
- the element
-
doHtmlImpl
protected void doHtmlImpl(SafeHtml html)
Description copied from class:ElementBuilderImpl
Set the specified html as the inner HTML of the current element.- Specified by:
doHtmlImpl
in classElementBuilderImpl
- Parameters:
html
- the HTML to set
-
doOpenStyleImpl
protected void doOpenStyleImpl()
Description copied from class:ElementBuilderImpl
Open the style attribute.- Specified by:
doOpenStyleImpl
in classElementBuilderImpl
-
doTextImpl
protected void doTextImpl(java.lang.String text)
Description copied from class:ElementBuilderImpl
Set the specified text as the inner text of the current element.- Specified by:
doTextImpl
in classElementBuilderImpl
- Parameters:
text
- the text to set
-
lockCurrentElement
protected void lockCurrentElement()
Description copied from class:ElementBuilderImpl
Lock the current element, preventing any additional changes to it. The only valid option is to callElementBuilderImpl.end()
.- Overrides:
lockCurrentElement
in classElementBuilderImpl
-
assertCanAddAttribute
Element 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
-
assertCanAddStyleProperty
Style assertCanAddStyleProperty()
Assert that the builder is in a state where a style property can be added.- Returns:
- the
Style
on which the property can be set
-
getCurrentElement
Element getCurrentElement()
Get the element current being built.
-
startTextInput
InputBuilder startTextInput()
-
-