|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.text.Node
public abstract class Node
Abstract base class for document nodes.
| Constructor Summary | |
|---|---|
Node()
|
|
| Method Summary | |
|---|---|
abstract Node |
duplicate(boolean recursive)
Creates a copy of this node. |
abstract char |
getCharacterAt(int offset)
Returns the character at the given offset. |
abstract int |
getCharacterCount()
Returns the number of characters in this node. |
int |
getDocumentOffset()
Returns the node's offset within the document. |
org.apache.pivot.util.ListenerList<NodeListener> |
getNodeListeners()
Returns the node listener list. |
int |
getOffset()
Returns the node's offset within its parent. |
Element |
getParent()
Returns the parent element of this node. |
abstract Node |
getRange(int offset,
int characterCount)
Returns a range from the node. |
abstract void |
insertRange(Node range,
int offset)
Inserts a range into the node. |
protected void |
nodeInserted(int offset)
Called to notify a node that a child node has been inserted. |
protected void |
nodesRemoved(org.apache.pivot.collections.Sequence<Node> removed,
int offset)
Called to notify a node that some child nodes has been removed. |
protected void |
rangeInserted(int offset,
int characterCount)
Called to notify a node that a range has been inserted. |
protected void |
rangeRemoved(int offset,
int characterCount)
Called to notify a node that a range has been removed. |
abstract Node |
removeRange(int offset,
int characterCount)
Removes a range from the node. |
Node |
replaceRange(int offset,
int characterCount,
Node range)
Replaces an existing range with a new range. |
protected void |
setOffset(int offset)
|
protected void |
setParent(Element parent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public Element getParent()
protected void setParent(Element parent)
public int getOffset()
protected void setOffset(int offset)
public int getDocumentOffset()
public abstract void insertRange(Node range,
int offset)
range - offset -
public abstract Node removeRange(int offset,
int characterCount)
offset - characterCount -
public Node replaceRange(int offset,
int characterCount,
Node range)
offset - characterCount - range -
public abstract Node getRange(int offset,
int characterCount)
offset - characterCount -
public abstract char getCharacterAt(int offset)
offset - public abstract int getCharacterCount()
public abstract Node duplicate(boolean recursive)
recursive -
protected void rangeInserted(int offset,
int characterCount)
offset - characterCount -
protected void rangeRemoved(int offset,
int characterCount)
offset - characterCount -
protected void nodesRemoved(org.apache.pivot.collections.Sequence<Node> removed,
int offset)
removed - offset - protected void nodeInserted(int offset)
offset - public org.apache.pivot.util.ListenerList<NodeListener> getNodeListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||