public class SvgScript extends SvgElement implements ScriptElement
script
.DomElement.ChildElementsIterator
DomNode.ChildIterator, DomNode.DescendantDomElementsIterator, DomNode.DescendantDomNodesIterator, DomNode.DescendantElementsIterator<T extends DomNode>, DomNode.DescendantHtmlElementsIterator
Modifier and Type | Field and Description |
---|---|
static String |
TAG_NAME
The tag represented by this element.
|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, ID_ATTRIBUTE, NAME_ATTRIBUTE, SRC_ATTRIBUTE, TYPE_ATTRIBUTE, VALUE_ATTRIBUTE
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
String |
getCharsetAttribute()
Returns the value of the attribute
charset . |
String |
getDeferAttribute()
Returns the value of the attribute
defer . |
String |
getScriptCharset() |
String |
getScriptSource() |
String |
getSrcAttribute()
Returns the value of the attribute
src . |
protected String |
getSrcAttributeNormalized()
Helper for src retrieval and normalization.
|
boolean |
isDeferred()
Returns
true if this script is deferred. |
boolean |
isExecuted()
Returns if executed.
|
void |
markAsCreatedByDomParser()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
onAllChildrenAddedToPage(boolean postponed)
Executes the
onreadystatechange handler as well as executing
the script itself, if necessary. |
void |
setExecuted(boolean executed)
Sets if executed.
|
boolean |
wasCreatedByDomParser()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
blur, click, click, click, click, click, cloneNode, dblClick, dblClick, doClickFireChangeEvent, doClickFireClickEvent, doClickStateUpdate, fireEvent, fireEvent, focus, getAttribute, getAttributeDirect, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesMap, getChildElementCount, getChildElements, getElementsByTagName, getElementsByTagNameNS, getEventTargetElement, getFirstElementChild, getId, getLastElementChild, getNodeName, getNodeType, getSchemaTypeInfo, getStaticElementsByTagName, getStyleElement, getStyleElementCaseInSensitive, getStyleMap, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isAttributeCaseSensitive, isDisabledElementAndDisabled, isEmptyXmlTagExpanded, isMouseOver, isStateUpdateFirst, matches, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, preventDefault, printOpeningTagContentAsXml, printXml, propagateClickStateUpdateToParent, removeAttribute, removeAttributeNode, removeAttributeNS, removeFocus, removeStyleAttribute, replaceStyleAttribute, rightClick, rightClick, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNS, setDefaults, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHtml, setNodeValue, toString, writeStyleToElement
getLocalName, getLowercaseName, getNamespaceURI, getPrefix, getQualifiedName, processImportNode, setPrefix
addCharacterDataChangeListener, addDomChangeListener, appendChild, asNormalizedText, asXml, basicRemove, checkChildHierarchy, closest, compareDocumentPosition, detach, fireCharacterDataChanged, fireNodeAdded, fireNodeDeleted, getAncestors, getBaseURI, getByXPath, getByXPath, getCanonicalXPath, getChildNodes, getChildren, getDescendants, getDomElementDescendants, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstByXPath, getFirstChild, getHtmlElementDescendants, getHtmlPageOrNull, getIndex, getLastChild, getNextElementSibling, getNextSibling, getNodeValue, getOwnerDocument, getPage, getParentNode, getPreviousElementSibling, getPreviousSibling, getReadyState, getScriptableObject, getSelectorList, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, getVisibleText, handles, hasChildNodes, hasFeature, insertBefore, insertBefore, isAncestorOf, isAncestorOfAny, isAttachedToPage, isDefaultNamespace, isDisplayed, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, mayBeDisplayed, normalize, notifyIncorrectness, onAddedToDocumentFragment, onAddedToPage, parseHtmlSnippet, printChildrenAsXml, querySelector, querySelectorAll, quietlyRemoveAndMoveChildrenTo, remove, removeAllChildren, removeCharacterDataChangeListener, removeChild, removeDomChangeListener, replace, replaceChild, setEndLocation, setParentNode, setReadyState, setScriptableObject, setStartLocation, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData
public static final String TAG_NAME
public boolean isExecuted()
isExecuted
in interface ScriptElement
public void setExecuted(boolean executed)
setExecuted
in interface ScriptElement
executed
- if executedpublic final String getSrcAttribute()
src
. Refer to the
HTML 4.01
documentation for details on the use of this attribute.src
or an empty string if that attribute isn't defined.public final String getScriptSource()
getScriptSource
in interface ScriptElement
protected final String getSrcAttributeNormalized()
src
with all line breaks removed
or an empty string if that attribute isn't defined.public final String getCharsetAttribute()
charset
. Refer to the
HTML 4.01
documentation for details on the use of this attribute.charset
or an empty string if that attribute isn't defined.public final String getScriptCharset()
getScriptCharset
in interface ScriptElement
public final String getDeferAttribute()
defer
. Refer to the
HTML 4.01
documentation for details on the use of this attribute.defer
or an empty string if that attribute isn't defined.public boolean isDeferred()
true
if this script is deferred.isDeferred
in interface ScriptElement
true
if this script is deferredpublic void onAllChildrenAddedToPage(boolean postponed)
onreadystatechange
handler as well as executing
the script itself, if necessary. Lifecycle method invoked after a node and all its children have been added to a page, during
parsing of the HTML. Intended to be overridden by nodes which need to perform custom logic
after they and all their child nodes have been processed by the HTML parser. This method is
not recursive, and the default implementation is empty, so there is no need to call
super.onAllChildrenAddedToPage()
if you implement this method.onAllChildrenAddedToPage
in class DomNode
postponed
- whether to use PostponedAction
or nopublic void markAsCreatedByDomParser()
markAsCreatedByDomParser
in interface ScriptElement
public boolean wasCreatedByDomParser()
wasCreatedByDomParser
in interface ScriptElement
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.