public class Script extends HTMLTag
XMLContainerImpl.sMode
Modifier and Type | Field and Description |
---|---|
static String |
JAVASCRIPT |
static String |
JAVASCRIPT1_1 |
static String |
JAVASCRIPT1_2 |
static String |
JAVASCRIPT1_3 |
static String |
VBSCRIPT |
mContentAndSubtagList
Constructor and Description |
---|
Script() |
Script(CharSequence inContent) |
Script(MimeType inType) |
Script(String inContent) |
Script(XMLNode inXMLNode) |
Modifier and Type | Method and Description |
---|---|
Script |
addContent(CharSequence inContent) |
Script |
appendln(CharSequence inContent) |
void |
clearContent()
Clears content (not subtags).
|
String |
getContent()
The returned content does not contain any embedded subtags.
|
boolean |
hasContent() |
Script |
setCharset(Charset inValue)
Sets the charset.
|
Script |
setContent(CharSequence inContent) |
Script |
setDefer(boolean inValue)
When set, this boolean attribute provides a hint to the user agent that the
script is not going to generate any document content (e.g., no "document.write"
in javascript) and thus, the user agent can continue parsing and rendering.
|
Script |
setLanguage(String inValue)
Deprecated.
Use setType() - The 'language' attribute has been deprecated
in favor of 'type' in the html standard.
|
Script |
setSrc(String inValue)
Specifies the location of an external script.
|
Script |
setType(MimeType inValue)
Sets the script type.
|
Script |
setType(String inValue)
Sets the script type.
|
Script |
useCDATA(boolean inValue)
Defaults to true.
|
addClass, addStyle, applyColorSpec, clone, getClassAttribute, getDraggable, getId, getStyle, initFromXMLNode, removeClass, removeStyleProperty, setAttribute, setAttribute, setClass, setDraggable, setId, setStyle, setStyleColor, toHTML, toHTML, toHTML, toIndentedHTML, toIndentedHTML, toIndentedHTML, toText
addSubtag, addSubtag, addXMLNamespaceDeclaration, compareTo, equals, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toString, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContentWithoutEscaping, addSubtag, addSubtag, addSubtags, clearSubtags, getContentPlusSubtagList, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagById, getRequiredSubtagById, getRequiredSubtagByName, getRequiredSubtagByName, getSubtagByAttribute, getSubtagByAttribute, getSubtags, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByClass, getSubtagsByClass, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContentOrSubtags, indexOf, innerHTML, removeSubtag, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByClass, removeSubtagsByClass, removeSubtagsByName, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setNamespace, setTagName, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContentWithoutEscaping, addSubtag, addSubtags, clearSubtags, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagByName, getRequiredSubtagByName, getSubtags, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, indexOf, removeSubtag, removeSubtagsByName, removeSubtagsByName, setParentNode, setSubtags
toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML
public static final String JAVASCRIPT
public static final String JAVASCRIPT1_1
public static final String JAVASCRIPT1_2
public static final String JAVASCRIPT1_3
public static final String VBSCRIPT
public Script()
public Script(CharSequence inContent)
public Script setLanguage(String inValue)
public Script setCharset(Charset inValue)
inValue
- the charset of the referenced script.public Script setDefer(boolean inValue)
public Script setContent(CharSequence inContent)
setContent
in interface XMLContainer
setContent
in class XMLTag
public Script appendln(CharSequence inContent)
public Script addContent(CharSequence inContent)
addContent
in interface XMLContainer
addContent
in class XMLContainerImpl
public void clearContent()
XMLContainer
clearContent
in interface XMLContainer
clearContent
in class XMLContainerImpl
public boolean hasContent()
hasContent
in interface XMLContainer
hasContent
in class XMLContainerImpl
public String getContent()
XMLContainer
getContent
in interface XMLContainer
getContent
in class XMLContainerImpl