|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Node
com.google.gwt.dom.client.Text
org.xwiki.gwt.dom.client.Text
public final class Text
Extends the text implementation provided by GWT to add useful methods. All of them should be removed as soon as they make their way into GWT's API.
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.dom.client.Node |
|---|
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE |
| Constructor Summary | |
|---|---|
protected |
Text()
Default constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.google.gwt.dom.client.Text |
|---|
getData, getLength, setData |
| Methods inherited from class com.google.gwt.dom.client.Node |
|---|
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Text()
| Method Detail |
|---|
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 end
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||