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,org.w3c.dom.CharacterData,org.w3c.dom.Node
- Direct Known Subclasses:
CommentImpl,TextImpl
public abstract class CharacterDataImpl extends NodeImpl implements org.w3c.dom.CharacterData
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringtext-
Fields 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 Constructor Description CharacterDataImpl()CharacterDataImpl(java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendData(java.lang.String arg)org.w3c.dom.NodecloneNode(boolean deep)voiddeleteData(int offset, int count)java.lang.StringgetClassName()java.lang.StringgetData()intgetLength()java.lang.StringgetTextContent()Gets the text content of this node and its descendents.voidinsertData(int offset, java.lang.String arg)voidreplaceData(int offset, int count, java.lang.String arg)voidsetData(java.lang.String data)voidsetTextContent(java.lang.String textContent)java.lang.StringsubstringData(int offset, int count)java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
-
getTextContent
public java.lang.String getTextContent() throws org.w3c.dom.DOMExceptionDescription copied from class:NodeImplGets the text content of this node and its descendents.- Specified by:
getTextContentin interfaceorg.w3c.dom.Node- Overrides:
getTextContentin classNodeImpl- Throws:
org.w3c.dom.DOMException
-
setTextContent
public void setTextContent(java.lang.String textContent) throws org.w3c.dom.DOMException- Specified by:
setTextContentin interfaceorg.w3c.dom.Node- Overrides:
setTextContentin classNodeImpl- Throws:
org.w3c.dom.DOMException
-
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
-
appendData
public void appendData(java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
appendDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
deleteData
public void deleteData(int offset, int count) throws org.w3c.dom.DOMException- Specified by:
deleteDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
getData
public java.lang.String getData() throws org.w3c.dom.DOMException- Specified by:
getDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceorg.w3c.dom.CharacterData
-
insertData
public void insertData(int offset, java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
insertDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
replaceData
public void replaceData(int offset, int count, java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
replaceDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
setData
public void setData(java.lang.String data) throws org.w3c.dom.DOMException- Specified by:
setDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
substringData
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMException- Specified by:
substringDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException
-
-