|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.tree.model.TreePath
public final class TreePath
| Constructor Summary | |
|---|---|
|
TreePath(Object[] pathElements)
Construct a pathElements from an array of Objects |
protected |
TreePath(Object[] pathElements,
int length)
Construct a new TreePath from an array of objects. |
protected |
TreePath(TreePath parent,
Object lastElement)
Construct a new TreePath, which is the path identified by parent ending in lastElement. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Test two TreePaths for equality by checking each element of the paths for equality. |
Object |
getLastPathComponent()
Returns the last component of this path. |
TreePath |
getParentPath()
Return a path containing all the elements of this object, except the last path component. |
Object[] |
getPath()
Return an array of Objects containing the components of this TreePath. |
Object |
getPathComponent(int index)
Return the path component at the specified index. |
int |
getPathCount()
Return the number of elements in the path. |
int |
hashCode()
Return the hashCode for the object. |
boolean |
isDescendant(TreePath path)
Return true if path is a
descendant of this
TreePath. |
TreePath |
pathByAddingChild(Object child)
Return a new path by appending child to this path. |
String |
toString()
Return a string that displays and identifies this object's properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreePath(Object[] pathElements)
pathElements - an array of Objects representing the pathElements to a node
protected TreePath(TreePath parent,
Object lastElement)
protected TreePath(Object[] pathElements,
int length)
pathElements - path elementslength - lenght of the new path| Method Detail |
|---|
public Object[] getPath()
public Object getLastPathComponent()
public int getPathCount()
public Object getPathComponent(int index)
index - int specifying an index in the path
IllegalArgumentException - if the index is beyond the length
of the pathpublic boolean equals(Object o)
equals in class Objecto - the Object to comparepublic int hashCode()
hashCode in class Objectpublic boolean isDescendant(TreePath path)
path is a
descendant of this
TreePath. A TreePath P1 is a descendent of a TreePath P2
if P1 contains all of the components that make up
P2's path. If P1 and P2 are equal P2 is not considered a descendant of
P1.
path is a descendant of this pathpublic TreePath pathByAddingChild(Object child)
child - element to append
NullPointerException - if child is nullpublic TreePath getParentPath()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||