|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by classes that traverse a tree.
Method Summary | |
void |
finish()
Cleanly abort the traversal. |
TreeAdapter |
getAdapter()
Get the TreeAdapter of the tree being traversed. |
int |
getIndex()
Get the index of the current node in its parent. |
java.lang.Object |
getNode()
Get the current node of the traversal. |
java.lang.Object |
getParent()
Get the parent node of the traversal. |
java.lang.Object[] |
getPath()
Get the path of the current node realtive to the node the traversal was started at. |
java.lang.Object |
getPreviousSibling()
Get the previous sibling of the current node. |
java.lang.Object |
getUserObject()
Get a user object associated with this traversal. |
void |
setUserObject(java.lang.Object object)
Set a user object associated with this traversal. |
Method Detail |
public TreeAdapter getAdapter()
public java.lang.Object getNode()
public java.lang.Object getParent()
public int getIndex()
TreeAdapter.getIndexOfChildNode
.public java.lang.Object[] getPath()
public java.lang.Object getPreviousSibling()
public void finish()
public java.lang.Object getUserObject()
public void setUserObject(java.lang.Object object)
object
- The user object to set.
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |