org.apache.myfaces.tobago.model
Class TreePath

java.lang.Object
  extended by 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

Constructor Summary
TreePath(int... path)
           
TreePath(List<Integer> pathList)
           
TreePath(String string)
           
TreePath(TreePath position, int addendum)
           
 
Method Summary
 boolean equals(Object o)
           
 int getLength()
           
 DefaultMutableTreeNode getNode(DefaultMutableTreeNode tree)
          Returns the node at the position of this NodePath applied to the parameter node.
 String getParentPathString()
          Deprecated.  
 int[] getPath()
           
 String getPathString()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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-2014 The Apache Software Foundation. All Rights Reserved.