|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.dom.client.TextFragment
public class TextFragment
A text fragment is a substring of a text node from a DOM tree. It is uniquely identified by the source text node, the index of the first character and the index of the last character.
| Constructor Summary | |
|---|---|
TextFragment(Text text,
int startIndex,
int endIndex)
Creates a new fragment of the given text node. |
|
| Method Summary | |
|---|---|
int |
getEndIndex()
|
int |
getStartIndex()
|
Text |
getText()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFragment(Text text,
int startIndex,
int endIndex)
text - the source text node.startIndex - the index of fragment's first character, in the source text node.endIndex - the index of fragment's last character, in the source text node.| Method Detail |
|---|
public Text getText()
public int getStartIndex()
public int getEndIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||