Package org.lobobrowser.html.domimpl
Class TextImpl
java.lang.Object
org.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.domimpl.NodeImpl
org.lobobrowser.html.domimpl.CharacterDataImpl
org.lobobrowser.html.domimpl.TextImpl
- All Implemented Interfaces:
ModelNode
,ScriptableDelegate
,CharacterData
,Node
,Text
- Direct Known Subclasses:
CDataSectionImpl
-
Field Summary
Fields inherited from class org.lobobrowser.html.domimpl.CharacterDataImpl
text
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Node
Should create a node with some cloned properties, like the node name, but not attributes or children.short
boolean
replaceWholeText
(String content) void
setNodeValue
(String nodeValue) void
setTextContent
(String textContent) splitText
(int offset) toString()
Methods inherited from class org.lobobrowser.html.domimpl.CharacterDataImpl
appendData, cloneNode, deleteData, getClassName, getData, getLength, getTextContent, insertData, replaceData, setData, substringData
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, compareDocumentPosition, createRenderState, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, 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, 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.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setUserData
-
Constructor Details
-
TextImpl
public TextImpl() -
TextImpl
-
-
Method Details
-
isElementContentWhitespace
public boolean isElementContentWhitespace()- Specified by:
isElementContentWhitespace
in interfaceText
-
replaceWholeText
- Specified by:
replaceWholeText
in interfaceText
- Throws:
DOMException
-
splitText
- Specified by:
splitText
in interfaceText
- Throws:
DOMException
-
getWholeText
- Specified by:
getWholeText
in interfaceText
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
- Specified by:
getLocalName
in classNodeImpl
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
- Specified by:
getNodeName
in classNodeImpl
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
- Specified by:
getNodeType
in classNodeImpl
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Specified by:
getNodeValue
in classNodeImpl
- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- Specified by:
setNodeValue
in classNodeImpl
- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Overrides:
setTextContent
in classCharacterDataImpl
- Throws:
DOMException
-
createSimilarNode
Description copied from class:NodeImpl
Should create a node with some cloned properties, like the node name, but not attributes or children.- Specified by:
createSimilarNode
in classNodeImpl
-
toString
- Overrides:
toString
in classCharacterDataImpl
-