Package org.lobobrowser.html.domimpl
Class CharacterDataImpl
java.lang.Object
org.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.domimpl.NodeImpl
org.lobobrowser.html.domimpl.CharacterDataImpl
- All Implemented Interfaces:
ModelNode
,ScriptableDelegate
,CharacterData
,Node
- Direct Known Subclasses:
CommentImpl
,TextImpl
-
Field Summary
FieldsFields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
Fields inherited from interface org.w3c.dom.Node
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendData
(String arg) cloneNode
(boolean deep) void
deleteData
(int offset, int count) getData()
int
Gets the text content of this node and its descendents.void
insertData
(int offset, String arg) void
replaceData
(int offset, int count, String arg) void
void
setTextContent
(String textContent) substringData
(int offset, int count) toString()
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, htmlEncodeChildText, informDocumentInvalid, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setUINode, setUserData, warn, warn
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData
-
Field Details
-
text
-
-
Constructor Details
-
CharacterDataImpl
public CharacterDataImpl() -
CharacterDataImpl
-
-
Method Details
-
getClassName
-
getTextContent
Description copied from class:NodeImpl
Gets the text content of this node and its descendents.- Specified by:
getTextContent
in interfaceNode
- Overrides:
getTextContent
in classNodeImpl
- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Overrides:
setTextContent
in classNodeImpl
- Throws:
DOMException
-
cloneNode
-
appendData
- Specified by:
appendData
in interfaceCharacterData
- Throws:
DOMException
-
deleteData
- Specified by:
deleteData
in interfaceCharacterData
- Throws:
DOMException
-
getData
- Specified by:
getData
in interfaceCharacterData
- Throws:
DOMException
-
getLength
public int getLength()- Specified by:
getLength
in interfaceCharacterData
-
insertData
- Specified by:
insertData
in interfaceCharacterData
- Throws:
DOMException
-
replaceData
- Specified by:
replaceData
in interfaceCharacterData
- Throws:
DOMException
-
setData
- Specified by:
setData
in interfaceCharacterData
- Throws:
DOMException
-
substringData
- Specified by:
substringData
in interfaceCharacterData
- Throws:
DOMException
-
toString
-