|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.tobago.model.TreePath
public class TreePath
Handles a path in a tree from the root node to the position inside this tree. The position of the root node is dropped in the list, because it would always be zero. The path of the root node as length 0.
Example:+ Root Path: [] | +-+ Node Path: [0] | | | +-+ Sub-Node Path: [0, 0] | | | +-+ Sub-Node Path: [0, 1] | +-+ Node Path: [1] | +-+ Sub-Node Path: [1, 0] | +-+ Sub-Node Path: [1, 1] | +-+ Sub-Node Path: [1, 2]
Constructor Summary | |
---|---|
TreePath(int... path)
|
|
TreePath(List<Integer> pathList)
|
|
TreePath(String string)
Deprecated. since 2.0.0 |
|
TreePath(TreeNode node)
|
|
TreePath(TreePath position,
int addendum)
Deprecated. since 2.0.0 |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getLength()
|
DefaultMutableTreeNode |
getNode(DefaultMutableTreeNode tree)
Deprecated. since 2.0.0 |
String |
getParentPathString()
Deprecated. since 1.5.0 |
int[] |
getPath()
|
String |
getPathString()
Deprecated. since 2.0.0 |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TreePath(int... path)
public TreePath(List<Integer> pathList)
@Deprecated public TreePath(TreePath position, int addendum)
@Deprecated public TreePath(String string) throws NumberFormatException
NumberFormatException
public TreePath(TreeNode node)
Method Detail |
---|
public int[] getPath()
public int getLength()
public String getPathString()
@Deprecated public String getParentPathString()
@Deprecated public DefaultMutableTreeNode getNode(DefaultMutableTreeNode tree)
tree
- The start node.
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |