|
||||||||||
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.ComponentNode
public class ComponentNode
Node representing a live pivot component.
Constructor Summary | |
---|---|
ComponentNode()
|
|
ComponentNode(Component component)
|
|
ComponentNode(ComponentNode componentNode)
|
Method Summary | |
---|---|
Node |
duplicate(boolean recursive)
Creates a copy of this node. |
char |
getCharacterAt(int offset)
Returns the character at the given offset. |
int |
getCharacterCount()
Returns the number of characters in this node. |
CharSequence |
getCharacters(int start,
int end)
|
CharSequence |
getCharacters(Span range)
|
Component |
getComponent()
|
ListenerList<ComponentNodeListener> |
getComponentNodeListeners()
|
Node |
getRange(int offset,
int characterCount)
Returns a range from the node. |
String |
getSubstring(int start,
int end)
|
String |
getSubstring(Span range)
|
String |
getText()
|
void |
insertRange(Node range,
int offset)
Inserts a range into the node. |
Node |
removeRange(int offset,
int span)
Removes a range from the node. |
void |
setComponent(Component component)
|
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, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentNode()
public ComponentNode(ComponentNode componentNode)
public ComponentNode(Component component)
Method Detail |
---|
public Component getComponent()
public void setComponent(Component component)
public String getText()
public String getSubstring(Span range)
public String getSubstring(int start, int end)
public CharSequence getCharacters(Span range)
public CharSequence getCharacters(int start, int end)
public char getCharacterAt(int offset)
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 span)
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 ListenerList<ComponentNodeListener> getComponentNodeListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |