|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.qfs.lib.tree.AbstractTraversal
Abstract base class for implementations of the Traversal interface.
Nested Class Summary | |
protected static class |
AbstractTraversal.Level
Structure that holds information about one level of the tree. |
Constructor Summary | |
protected |
AbstractTraversal(TreeAdapter adapter,
java.lang.Object root)
Create a new AbstractTraversal. |
Method Summary | |
TreeAdapter |
getAdapter()
Get the adapter for 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 current node. |
java.lang.Object[] |
getPath()
Get the path of the current node, up to the root of the traversal. |
java.lang.Object |
getPreviousSibling()
Get the previous sibling of the current node. |
java.lang.Object |
getUserObject()
Get a user object assoiated with the traversal, set with setUserObject . |
void |
setUserObject(java.lang.Object object)
Set a user object for the traversal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.qfs.lib.tree.Traversal |
finish |
Constructor Detail |
protected AbstractTraversal(TreeAdapter adapter, java.lang.Object root)
Method Detail |
public TreeAdapter getAdapter()
getAdapter
in interface Traversal
public java.lang.Object getNode()
getNode
in interface Traversal
public int getIndex()
TreeAdapter.getIndexOfChildNode
.
getIndex
in interface Traversal
public java.lang.Object getParent()
getParent
in interface Traversal
public java.lang.Object[] getPath()
TreeUtil.getPath
.
getPath
in interface Traversal
public java.lang.Object getPreviousSibling()
TreeAdapter.getPreviousSibling
.
getPreviousSibling
in interface Traversal
public java.lang.Object getUserObject()
setUserObject
.
getUserObject
in interface Traversal
public void setUserObject(java.lang.Object object)
setUserObject
in interface Traversal
object
- The object to associate with the traversal.
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |