|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.dom.builder.shared.AbstractElementBuilderBase<R> com.google.gwt.dom.builder.client.DomElementBuilderBase<ScriptBuilder,ScriptElement> com.google.gwt.dom.builder.client.DomScriptBuilder
public class DomScriptBuilder
DOM-based implementation of ScriptBuilder
.
Field Summary |
---|
Fields inherited from interface com.google.gwt.dom.builder.shared.ScriptBuilder |
---|
UNSUPPORTED_HTML |
Constructor Summary | |
---|---|
DomScriptBuilder(DomBuilderImpl delegate)
|
Method Summary | |
---|---|
ScriptBuilder |
defer(java.lang.String defer)
Indicates that the user agent can defer processing of the script. |
ScriptBuilder |
html(SafeHtml html)
Append html within the node. |
boolean |
isChildElementSupported()
Check if child elements are supported. |
ScriptBuilder |
src(java.lang.String src)
URI designating an external script. |
ScriptBuilder |
text(java.lang.String text)
Append text within the node. |
ScriptBuilder |
type(java.lang.String type)
The content type of the script language. |
Methods inherited from class com.google.gwt.dom.builder.shared.AbstractElementBuilderBase |
---|
end, end, endAnchor, endArea, endAudio, endBase, endBlockQuote, endBody, endBR, endButton, endCanvas, endCol, endColGroup, endDiv, endDList, endFieldSet, endForm, endFrame, endFrameSet, endH1, endH2, endH3, endH4, endH5, endH6, endHead, endHR, endIFrame, endImage, endInput, endLabel, endLegend, endLI, endLink, endMap, endMeta, endOList, endOptGroup, endOption, endParagraph, endParam, endPre, endQuote, endScript, endSelect, endSource, endSpan, endStyle, endTable, endTableCaption, endTBody, endTD, endTextArea, endTFoot, endTH, endTHead, endTR, endUList, endVideo, finish, getDepth, getReturnBuilder, isEndTagForbidden, style |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DomScriptBuilder(DomBuilderImpl delegate)
Method Detail |
---|
public ScriptBuilder defer(java.lang.String defer)
ScriptBuilder
defer
in interface ScriptBuilder
public ScriptBuilder html(SafeHtml html)
ElementBuilderBase
Once you append HTML to the element, you can no longer set attributes.
html
in interface ElementBuilderBase<ScriptBuilder>
html
in class AbstractElementBuilderBase<ScriptBuilder>
html
- the HTML to append
public boolean isChildElementSupported()
ElementBuilderBase
isChildElementSupported
in interface ElementBuilderBase<ScriptBuilder>
isChildElementSupported
in class AbstractElementBuilderBase<ScriptBuilder>
public ScriptBuilder src(java.lang.String src)
ScriptBuilder
src
in interface ScriptBuilder
public ScriptBuilder text(java.lang.String text)
ElementBuilderBase
Once you append text to the element, you can no longer set attributes.
A string-based implementation will escape the text to prevent HTML/javascript code from executing. DOM based implementations are not required to escape the text if they directly set the innerText of an element.
text
in interface ElementBuilderBase<ScriptBuilder>
text
in class AbstractElementBuilderBase<ScriptBuilder>
text
- the text to append
public ScriptBuilder type(java.lang.String type)
ScriptBuilder
type
in interface ScriptBuilder
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |