Class HtmlBuilderImpl
java.lang.Object
com.google.gwt.dom.builder.shared.ElementBuilderImpl
com.google.gwt.dom.builder.shared.HtmlBuilderImpl
Implementation of methods in
ElementBuilderBase used to render HTML
as a string, using innerHtml to generate an element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the HTML as aSafeHtmlstring.voidvoidprotected 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.startBR()startCol()startDiv()startH1()startH2()startH3()startH4()startH5()startH6()startHR()startLI()startMap()startPre()startRadioInput(String name) startTD()startTH()startTR()style()Get theStylesBuilderused to add style properties to the current element.styleProperty(SafeStyles style) voidtrustedAttribute(String name, int value) Add a trusted attribute without escaping the name.voidtrustedAttribute(String name, String value) Add a trusted attribute without escaping the name.trustedStart(String tagName) Methods inherited from class com.google.gwt.dom.builder.shared.ElementBuilderImpl
assertCanAddAttributeImpl, assertCanAddStylePropertyImpl, assertValidTagName, end, end, endAllTags, endStyle, finish, getDepth, html, lockCurrentElement, onStart, text
-
Constructor Details
-
HtmlBuilderImpl
HtmlBuilderImpl()
-
-
Method Details
-
asSafeHtml
Return the HTML as aSafeHtmlstring. -
attribute
-
attribute
-
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
-
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
-
startTextInput
-
startTFoot
-
startTH
-
startTHead
-
startTitle
-
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
-
trustedAttribute
Add a trusted attribute without escaping the name. -
trustedAttribute
Add a trusted attribute without escaping the name. The value is still escaped. -
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
-