textbender.o.rhinohide.core
Class RhiText
java.lang.Object
Rhinohide
RhiEventTarget
RhiNode
RhiCharacterData
RhiText
- All Implemented Interfaces:
- CharacterData, EventTarget, Node, Text
- Direct Known Subclasses:
- RhiCDATASection
@ThreadSafe
class RhiText
- extends RhiCharacterData
- implements Text
A text node implemented as an overlay of a JavaScript text node.
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 |
RhiText(RhiWindow window,
netscape.javascript.JSObject jsObject)
|
Methods inherited from class RhiNode |
appendChild, cloneNode, compareDocumentPosition, ensureNodeType, equals, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, wrapNode, wrapNode |
Methods inherited from class Rhinohide |
call, callV, checkV, eval, evalV, getMember, getMemberV, jsObject, setMember, toJSObject, toString, window |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
RhiText
RhiText(RhiWindow window,
netscape.javascript.JSObject jsObject)
wrapText
public static RhiText wrapText(RhiWindow window,
netscape.javascript.JSObject jsObject)
- Creates a RhiText.
- Parameters:
window
- global objectjsObject
- bridge to underlying JavaScript text node,
per jsObject()
- Returns:
- text node, or null if jsObject is null
- Throws:
IllegalArgumentException
- if jsObject is neither null
nor a text node
wrapText
static RhiText wrapText(RhiWindow window,
netscape.javascript.JSObject jsObject,
boolean doTypeCheck)
getWholeText
public final String getWholeText()
- Not yet coded.
- Specified by:
getWholeText
in interface Text
- Throws:
UnsupportedOperationException
isElementContentWhitespace
public final boolean isElementContentWhitespace()
- Not yet coded.
- Specified by:
isElementContentWhitespace
in interface Text
- Throws:
UnsupportedOperationException
replaceWholeText
public final Text replaceWholeText(String content)
- Not yet coded.
- Specified by:
replaceWholeText
in interface Text
- Throws:
UnsupportedOperationException
splitText
public final Text splitText(int offset)
- Specified by:
splitText
in interface Text