Class TextImpl
- All Implemented Interfaces:
Cloneable,EventTarget,CharacterData,ModelNode,Node,NonDocumentTypeChildNode,Text,ScriptableDelegate
- Direct Known Subclasses:
CDataSectionImpl
TextImpl class.
-
Field Summary
Fields inherited from class org.loboevolution.html.dom.nodeimpl.CharacterDataImpl
textFields inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
document, nodeList, notificationsSuspended, parentNode, uiNodeFields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendChild(Node newChild) appendChild.getAssignedSlot.getLocalName.Returns a string appropriate for the type of node.intReturns the type of node.getNodeValue.Returns the combined data of all direct Text node siblings.booleanReturns true if element has attributes, and false otherwise.booleanisElementContentWhitespace.replaceWholeText(String content) replaceWholeText.voidsetNodeValue(String nodeValue) setNodeValue.voidsetTextContent(String textContent) setTextContent.splitText(int offset) Splits data at the given offset and returns the remainder as Text node.toString()Methods inherited from class org.loboevolution.html.dom.nodeimpl.CharacterDataImpl
appendData, deleteData, getClassName, getData, getLength, getTextContent, insertData, replaceData, setData, substringDataMethods inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
appendChildrenToCollectionImpl, appendInnerHTMLImpl, appendInnerTextImpl, clone, cloneNode, cloneNode, compareDocumentPosition, contains, createRenderState, extractDescendentsArrayImpl, findUINode, forgetRenderState, getATTRIBUTE_NODE, getAttributes, getBaseURI, getCDATA_SECTION_NODE, getChildIndex, getChildNodes, getChildren, getCOMMENT_NODE, getDescendents, getDOCUMENT_FRAGMENT_NODE, getDOCUMENT_NODE, getDOCUMENT_POSITION_CONTAINED_BY, getDOCUMENT_POSITION_CONTAINS, getDOCUMENT_POSITION_DISCONNECTED, getDOCUMENT_POSITION_FOLLOWING, getDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, getDOCUMENT_POSITION_PRECEDING, getDOCUMENT_TYPE_NODE, getDocumentItem, getDocumentNode, getDocumentURL, getELEMENT_NODE, getENTITY_NODE, getENTITY_REFERENCE_NODE, getFeature, getFirstChild, getFirstChildByFilter, getFullURL, getHtmlRendererConfig, getHtmlRendererContext, getLastChild, getNamespaceURI, getNextElementSibling, getNextSibling, getNextTo, getNodeList, getNONE, getNOTATION_NODE, getOwnerDocument, getParentElement, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousElementSibling, getPreviousSibling, getPreviousTo, getPROCESSING_INSTRUCTION_NODE, getRenderState, getRootNode, getTEXT_NODE, getUINode, getUserAgentContext, getUserData, hasChildNodes, htmlEncodeChildText, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, removeChildAt, removeChildrenImpl, removeTableChildren, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setUINode, setUserData, visit, visitImpl, warn, warnMethods inherited from class org.loboevolution.html.dom.nodeimpl.event.EventTargetImpl
addEventListener, addEventListener, dispatchEvent, dispatchEvent, getFunction, removeEventListener, removeEventListenerMethods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.loboevolution.html.node.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNextTo, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
-
Constructor Details
-
TextImpl
public TextImpl()Constructor for TextImpl.
-
TextImpl
Constructor for TextImpl.
- Parameters:
text- aStringobject.
-
-
Method Details
-
appendChild
Description copied from class:NodeImplappendChild.
- Specified by:
appendChildin interfaceNode- Overrides:
appendChildin classNodeImpl- Parameters:
newChild- aNodeobject.- Returns:
- a
Nodeobject.
-
getLocalName
getLocalName.
- Specified by:
getLocalNamein interfaceNode- Specified by:
getLocalNamein classNodeImpl- Returns:
- a
Stringobject.
-
getNodeName
Returns a string appropriate for the type of node.- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl- Returns:
- a
Stringobject.
-
getNodeType
public int getNodeType()Returns the type of node.- Specified by:
getNodeTypein interfaceNode- Specified by:
getNodeTypein classNodeImpl- Returns:
- a
Integerobject.
-
getNodeValue
getNodeValue.
- Specified by:
getNodeValuein interfaceNode- Specified by:
getNodeValuein classNodeImpl- Returns:
- a
Stringobject.
-
getWholeText
Returns the combined data of all direct Text node siblings.- Specified by:
getWholeTextin interfaceText- Returns:
- a
Stringobject.
-
isElementContentWhitespace
public boolean isElementContentWhitespace()isElementContentWhitespace.
- Specified by:
isElementContentWhitespacein interfaceText- Returns:
- a boolean.
-
replaceWholeText
replaceWholeText.
- Specified by:
replaceWholeTextin interfaceText- Parameters:
content- aStringobject.- Returns:
- a
Textobject.
-
setNodeValue
setNodeValue.
- Specified by:
setNodeValuein interfaceNode- Specified by:
setNodeValuein classNodeImpl- Parameters:
nodeValue- aStringobject.
-
setTextContent
setTextContent.
- Specified by:
setTextContentin interfaceNode- Overrides:
setTextContentin classCharacterDataImpl- Parameters:
textContent- aStringobject.
-
splitText
Splits data at the given offset and returns the remainder as Text node. -
getAssignedSlot
getAssignedSlot.
- Specified by:
getAssignedSlotin interfaceText- Returns:
- a
HTMLSlotElementobject.
-
hasAttributes
public boolean hasAttributes()Description copied from interface:NodeReturns true if element has attributes, and false otherwise.- Specified by:
hasAttributesin interfaceNode- Returns:
- a boolean.
-
toString
- Overrides:
toStringin classCharacterDataImpl
-