|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.text.Node
org.apache.pivot.wtk.text.TextNode
public final class TextNode
Node representing a sequence of characters.
Constructor Summary | |
---|---|
TextNode()
|
|
TextNode(String text)
|
|
TextNode(TextNode textNode)
|
Method Summary | |
---|---|
Node |
duplicate(boolean recursive)
Creates a copy of this node. |
char |
getCharacterAt(int index)
Returns the character at the given offset. |
int |
getCharacterCount()
Returns the number of characters in this node. |
CharSequence |
getCharacters()
|
CharSequence |
getCharacters(int start,
int end)
|
CharSequence |
getCharacters(Span range)
|
Node |
getRange(int offset,
int characterCount)
Returns a range from the node. |
String |
getSubstring(int start,
int end)
|
String |
getSubstring(Span range)
|
String |
getText()
|
String |
getText(int beginIndex,
int endIndex)
|
ListenerList<TextNodeListener> |
getTextNodeListeners()
|
void |
insertRange(Node range,
int offset)
Inserts a range into the node. |
void |
insertText(CharSequence text,
int index)
|
Node |
removeRange(int offset,
int characterCount)
Removes a range from the node. |
void |
removeText(int index,
int count)
|
void |
setText(String text)
|
String |
toString()
|
Methods inherited from class org.apache.pivot.wtk.text.Node |
---|
getDocumentOffset, getDocumentSpan, getNodeListeners, getOffset, getParent, nodeInserted, nodesRemoved, rangeInserted, rangeRemoved, replaceRange, setOffset, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextNode()
public TextNode(TextNode textNode)
public TextNode(String text)
Method Detail |
---|
public String getText()
public String getText(int beginIndex, int endIndex)
public void setText(String text)
public void insertText(CharSequence text, int index)
public void removeText(int index, int count)
public String getSubstring(Span range)
public String getSubstring(int start, int end)
public CharSequence getCharacters()
public CharSequence getCharacters(int start, int end)
public CharSequence getCharacters(Span range)
public char getCharacterAt(int index)
Node
getCharacterAt
in class Node
public int getCharacterCount()
Node
getCharacterCount
in class Node
public void insertRange(Node range, int offset)
Node
insertRange
in class Node
public Node removeRange(int offset, int characterCount)
Node
removeRange
in class Node
public Node getRange(int offset, int characterCount)
Node
getRange
in class Node
public Node duplicate(boolean recursive)
Node
duplicate
in class Node
public String toString()
toString
in class Object
public ListenerList<TextNodeListener> getTextNodeListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |