org.lobobrowser.html.domimpl

Class TextImpl

Implemented Interfaces:
CharacterData, Node, Text, ModelNode, ScriptableDelegate
Known Direct Subclasses:
CDataSectionImpl

public class TextImpl
extends CharacterDataImpl
implements Text

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

Constructor Summary

TextImpl()
TextImpl(String text)

Method Summary

protected Node
createSimilarNode()
Should create a node with some cloned properties, like the node name, but not attributes or children.
String
getLocalName()
String
getNodeName()
short
getNodeType()
String
getNodeValue()
String
getWholeText()
boolean
isElementContentWhitespace()
Text
replaceWholeText(String content)
void
setNodeValue(String nodeValue)
void
setTextContent(String textContent)
Text
splitText(int offset)
String
toString()

Methods inherited from class org.lobobrowser.html.domimpl.CharacterDataImpl

appendData, cloneNode, deleteData, getClassName, getData, getLength, getTextContent, insertData, replaceData, setData, setTextContent, substringData, toString

Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl

appendChild, cloneNode, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setTextContent, setUINode, setUserData, toString, warn, warn

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

TextImpl

public TextImpl()

TextImpl

public TextImpl(String text)

Method Details

createSimilarNode

protected Node createSimilarNode()
Should create a node with some cloned properties, like the node name, but not attributes or children.
Overrides:
createSimilarNode in interface NodeImpl

getLocalName

public String getLocalName()
Overrides:
getLocalName in interface NodeImpl

getNodeName

public String getNodeName()
Overrides:
getNodeName in interface NodeImpl

getNodeType

public short getNodeType()
Overrides:
getNodeType in interface NodeImpl

getNodeValue

public String getNodeValue()
            throws DOMException
Overrides:
getNodeValue in interface NodeImpl

getWholeText

public String getWholeText()

isElementContentWhitespace

public boolean isElementContentWhitespace()

replaceWholeText

public Text replaceWholeText(String content)
            throws DOMException

setNodeValue

public void setNodeValue(String nodeValue)
            throws DOMException
Overrides:
setNodeValue in interface NodeImpl

setTextContent

public void setTextContent(String textContent)
            throws DOMException
Overrides:
setTextContent in interface CharacterDataImpl

splitText

public Text splitText(int offset)
            throws DOMException

toString

public String toString()
Overrides:
toString in interface CharacterDataImpl