|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--grendel.widgets.TreePath
Object that represents the path through a tree to a node. Provides equals and hash methods to ensure expected behaviors.
Constructor Summary | |
TreePath(java.lang.Object[] aPath)
Constructs a TreePath from an array of nodes |
|
TreePath(java.util.Vector aPath)
Constructs a TreePath from a Vector of nodes |
Method Summary | |
boolean |
equals(java.lang.Object aObject)
Overloaded so that different objects with same contents are considered equal. |
int |
getLength()
Returns the length of the path |
java.lang.Object[] |
getPath()
Returns the tree path associated with this object. |
java.lang.Object |
getTip()
Returns the last node in the path |
int |
hashCode()
Overloaded so different objects with the same contents hash to the same value |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TreePath(java.lang.Object[] aPath)
public TreePath(java.util.Vector aPath)
Method Detail |
public java.lang.Object[] getPath()
public java.lang.Object getTip()
public int getLength()
public boolean equals(java.lang.Object aObject)
public int hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |