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
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ElementAssert that the builder is in a state where an attribute can be added.(package private) StyleAssert that the builder is in a state where a style property can be added.protected voidClose the start tag.protected voidClose the style attribute.protected voidSelf-close the start tag.protected voiddoEndTagImpl(String tagName) End the specified tag.protected ElementReturn the build element.protected voiddoHtmlImpl(SafeHtml html) Set the specified html as the inner HTML of the current element.protected voidOpen the style attribute.protected voiddoTextImpl(String text) Set the specified text as the inner text of the current element.(package private) ElementGet the element current being built.protected voidLock 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) InputBuilderstartTH()startTR()style()Get theStylesBuilderused 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:ElementBuilderImplGet theStylesBuilderused to add style properties to the current element.- Specified by:
stylein classElementBuilderImpl- Returns:
- a
StylesBuilder
-
trustedStart
-
doCloseStartTagImpl
protected void doCloseStartTagImpl()Description copied from class:ElementBuilderImplClose the start tag.- Specified by:
doCloseStartTagImplin classElementBuilderImpl
-
doCloseStyleAttributeImpl
protected void doCloseStyleAttributeImpl()Description copied from class:ElementBuilderImplClose the style attribute.- Specified by:
doCloseStyleAttributeImplin classElementBuilderImpl
-
doEndStartTagImpl
protected void doEndStartTagImpl()Description copied from class:ElementBuilderImplSelf-close the start tag. This method is called for elements that forbid the end tag.- Specified by:
doEndStartTagImplin classElementBuilderImpl
-
doEndTagImpl
Description copied from class:ElementBuilderImplEnd the specified tag.- Specified by:
doEndTagImplin classElementBuilderImpl- Parameters:
tagName- the name of the tag to end
-
doFinishImpl
Description copied from class:ElementBuilderImplReturn the build element.- Specified by:
doFinishImplin classElementBuilderImpl- Returns:
- the element
-
doOpenStyleImpl
protected void doOpenStyleImpl()Description copied from class:ElementBuilderImplOpen the style attribute.- Specified by:
doOpenStyleImplin classElementBuilderImpl
-
doTextImpl
Description copied from class:ElementBuilderImplSet the specified text as the inner text of the current element.- Specified by:
doTextImplin classElementBuilderImpl- Parameters:
text- the text to set
-
lockCurrentElement
protected void lockCurrentElement()Description copied from class:ElementBuilderImplLock the current element, preventing any additional changes to it. The only valid option is to callElementBuilderImpl.end().- Overrides:
lockCurrentElementin 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
Styleon which the property can be set
-
getCurrentElement
Element getCurrentElement()Get the element current being built. -
startTextInput
InputBuilder startTextInput()
-