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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the HTML as aSafeHtml
string.void
void
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.startBR()
startCol()
startDiv()
startH1()
startH2()
startH3()
startH4()
startH5()
startH6()
startHR()
startLI()
startMap()
startPre()
startRadioInput
(String name) startTD()
startTH()
startTR()
style()
Get theStylesBuilder
used to add style properties to the current element.styleProperty
(SafeStyles style) void
trustedAttribute
(String name, int value) Add a trusted attribute without escaping the name.void
trustedAttribute
(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 aSafeHtml
string. -
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:ElementBuilderImpl
Get theStylesBuilder
used to add style properties to the current element.- Specified by:
style
in 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: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
-