| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Text | |
| public String | getWholeText()
Implements org. Returns all text of |
| pack-priv static native String | |
| public boolean | isElementContentWhitespace()
Implements org. Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace". |
| public Text | replaceWholeText(String
The content of the replacing content)Text node.Implements org. Replaces the text of the current node and all logically-adjacent text nodes with the specified text. |
| pack-priv static native long | |
| public Text | splitText(int
The 16-bit unit offset at which to split, starting from
offset)0.Implements org. Breaks this node into two nodes at the specified |
| pack-priv static native long |
| TextImpl | back to summary |
|---|---|
| pack-priv TextImpl(long peer) | |
| getImpl | back to summary |
|---|---|
| pack-priv static Text getImpl(long peer) | |
| getWholeText | back to summary |
|---|---|
| public String getWholeText() Implements org. Doc from org. Returns all text of
+-----+
| <p> |
+-----+
/\
/ \
/-----\ +-------+
| bar | | &ent; |
\-----/ +-------+
|
|
/-----\
| foo |
\-----/
Figure: barTextNode.wholeText value is "barfoo"
| |
| getWholeTextImpl | back to summary |
|---|---|
| pack-priv static native String getWholeTextImpl(long peer) | |
| isElementContentWhitespace | back to summary |
|---|---|
| public boolean isElementContentWhitespace() Implements org. Doc from org. Returns whether this text node contains
element content whitespace, often abusively called "ignorable whitespace". The text node is
determined to contain whitespace in element content during the load
of the document or if validation occurs while using
| |
| replaceWholeText | back to summary |
|---|---|
| public Text replaceWholeText(String content) throws DOMException Implements org. Doc from org. Replaces the text of the current node and all logically-adjacent text nodes with the specified text. All logically-adjacent text nodes are removed including the current node unless it was the recipient of the replacement text. This method returns the node which received the replacement text. The returned node is:
For instance, in the above example calling
+-----+
| <p> |
+-----+
|
|
/-----\
| yo |
\-----/
Figure: barTextNode.replaceWholeText("yo") modifies the
textual content of barTextNode with "yo"
Where the nodes to be removed are read-only descendants of an
For instance, in the example below calling
| |
| replaceWholeTextImpl | back to summary |
|---|---|
| pack-priv static native long replaceWholeTextImpl(long peer, String content) | |
| splitText | back to summary |
|---|---|
| public Text splitText(int offset) throws DOMException Implements org. Doc from org. Breaks this node into two nodes at the specified
| |
| splitTextImpl | back to summary |
|---|---|
| pack-priv static native long splitTextImpl(long peer, int offset) | |