Class DomBuilderImpl
java.lang.Object
com.google.gwt.dom.builder.shared.ElementBuilderImpl
com.google.gwt.dom.builder.client.DomBuilderImpl
Implementation of methods in
ElementBuilderBase
used to render
Elements using DOM manipulation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Element
Assert that the builder is in a state where an attribute can be added.(package private) Style
Assert that the builder is in a state where a style property can be added.protected void
Close the start tag.protected void
Close the style attribute.protected void
Self-close the start tag.protected void
doEndTagImpl
(String tagName) End the specified tag.protected Element
Return the build element.protected void
doHtmlImpl
(SafeHtml html) Set the specified html as the inner HTML of the current element.protected void
Open the style attribute.protected void
doTextImpl
(String text) Set the specified text as the inner text of the current element.(package private) Element
Get the element current being built.protected void
Lock the current element, preventing any additional changes to it.startBR()
startCol()
startDiv()
startH1()
startH2()
startH3()
startH4()
startH5()
startH6()
startHR()
startInput
(InputElement input) Start an input using the specified InputElement.startLI()
startMap()
startPre()
startRadioInput
(String name) startTD()
(package private) InputBuilder
startTH()
startTR()
style()
Get theStylesBuilder
used to add style properties to the current element.trustedStart
(String tagName) Methods inherited from class com.google.gwt.dom.builder.shared.ElementBuilderImpl
assertCanAddAttributeImpl, assertCanAddStylePropertyImpl, assertValidTagName, end, end, endAllTags, endStyle, finish, getDepth, html, onStart, text
-
Constructor Details
-
DomBuilderImpl
DomBuilderImpl()
-
-
Method Details
-
startAnchor
-
startArea
-
startAudio
-
startBase
-
startBlockQuote
-
startBody
-
startBR
-
startButtonInput
-
startCanvas
-
startCheckboxInput
-
startCol
-
startColGroup
-
startDiv
-
startDList
-
startFieldSet
-
startFileInput
-
startForm
-
startFrame
-
startFrameSet
-
startH1
-
startH2
-
startH3
-
startH4
-
startH5
-
startH6
-
startHead
-
startHiddenInput
-
startHR
-
startIFrame
-
startImage
-
startImageInput
-
startInput
Start an input using the specified InputElement. -
startLabel
-
startLegend
-
startLI
-
startLink
-
startMap
-
startMeta
-
startOList
-
startOptGroup
-
startOption
-
startParagraph
-
startParam
-
startPasswordInput
-
startPre
-
startPushButton
-
startQuote
-
startRadioInput
-
startResetButton
-
startResetInput
-
startScript
-
startSelect
-
startSource
-
startSpan
-
startStyle
-
startSubmitButton
-
startSubmitInput
-
startTable
-
startTableCaption
-
startTBody
-
startTD
-
startTextArea
-
startTFoot
-
startTH
-
startTHead
-
startTR
-
startUList
-
startVideo
-
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
-
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
Description copied from class:ElementBuilderImpl
End the specified tag.- Specified by:
doEndTagImpl
in classElementBuilderImpl
- Parameters:
tagName
- the name of the tag to end
-
doFinishImpl
Description copied from class:ElementBuilderImpl
Return the build element.- Specified by:
doFinishImpl
in classElementBuilderImpl
- Returns:
- the element
-
doOpenStyleImpl
protected void doOpenStyleImpl()Description copied from class:ElementBuilderImpl
Open the style attribute.- Specified by:
doOpenStyleImpl
in classElementBuilderImpl
-
doTextImpl
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()
-