public final class Text
extends com.google.gwt.dom.client.Text
| Modifier | Constructor and Description |
|---|---|
protected |
Text()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Text |
as(com.google.gwt.dom.client.Node node)
Casts a
Node to an instance of this type. |
void |
crop(int startIndex,
int endIndex)
Keeps the text between the given indexes as the value of this node.
|
int |
getOffset() |
TextFragment |
normalize()
Merges all the neighbor text nodes of this text node and returns a text fragment specifying where is this text
placed in the final text node resulted after the merge.
|
deleteData, getData, getLength, insertData, replaceData, setData, splitTextappendChild, as, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, is, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValueprotected Text()
public static Text as(com.google.gwt.dom.client.Node node)
Node to an instance of this type.node - the instance to be casted to this type.Text.public TextFragment normalize()
public int getOffset()
public void crop(int startIndex,
int endIndex)
startIndex - crop startendIndex - crop endCopyright © 2004–2014 XWiki. All rights reserved.