org.lobobrowser.html.domimpl

Class CharacterDataImpl

Implemented Interfaces:
CharacterData, Node, ModelNode, ScriptableDelegate
Known Direct Subclasses:
CommentImpl, TextImpl

public abstract class CharacterDataImpl
extends NodeImpl
implements CharacterData

Field Summary

protected String
text

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

document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode

Constructor Summary

CharacterDataImpl()
CharacterDataImpl(String text)

Method Summary

void
appendData(String arg)
Node
cloneNode(boolean deep)
void
deleteData(int offset, int count)
String
getClassName()
String
getData()
int
getLength()
String
getTextContent()
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
setData(String data)
void
setTextContent(String textContent)
String
substringData(int offset, int count)
String
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

Field Details

text

protected String text

Constructor Details

CharacterDataImpl

public CharacterDataImpl()

CharacterDataImpl

public CharacterDataImpl(String text)

Method Details

appendData

public void appendData(String arg)
            throws DOMException

cloneNode

public Node cloneNode(boolean deep)
Overrides:
cloneNode in interface NodeImpl

deleteData

public void deleteData(int offset,
                       int count)
            throws DOMException

getClassName

public String getClassName()

getData

public String getData()
            throws DOMException

getLength

public int getLength()

getTextContent

public String getTextContent()
            throws DOMException
Gets the text content of this node and its descendents.
Overrides:
getTextContent in interface NodeImpl

insertData

public void insertData(int offset,
                       String arg)
            throws DOMException

replaceData

public void replaceData(int offset,
                        int count,
                        String arg)
            throws DOMException

setData

public void setData(String data)
            throws DOMException

setTextContent

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

substringData

public String substringData(int offset,
                            int count)
            throws DOMException

toString

public String toString()
Overrides:
toString in interface NodeImpl