org.apache.myfaces.tobago.model
Class TreePath
java.lang.Object
org.apache.myfaces.tobago.model.TreePath
- All Implemented Interfaces:
- Serializable
public class TreePath
- extends Object
- implements Serializable
Handles a path in a tree from the root node to the position inside this tree.
Date: 02.12.2008
- See Also:
- Serialized Form
TreePath
public TreePath(int... path)
TreePath
public TreePath(List<Integer> pathList)
TreePath
public TreePath(TreePath position,
int addendum)
TreePath
public TreePath(String string)
throws NumberFormatException
- Throws:
NumberFormatException
getPath
public int[] getPath()
getLength
public int getLength()
getPathString
public String getPathString()
getParentPathString
@Deprecated
public String getParentPathString()
- Deprecated.
getNode
public DefaultMutableTreeNode getNode(DefaultMutableTreeNode tree)
- Returns the node at the position of this NodePath applied to the parameter node.
- Parameters:
tree
- The start node.
- Returns:
- The node applied to the given path.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.