public class

TreePath

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.myfaces.tobago.model.TreePath

Class Overview

Handles a path in a tree from the root node to the position inside this tree. Date: 02.12.2008

Summary

Public Constructors
TreePath(int... path)
TreePath(String string)
TreePath(List<Integer> pathList)
TreePath(TreePath position, int addendum)
Public Methods
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()
This method is deprecated. No replacement.
int[] getPath()
String getPathString()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TreePath (int... path)

public TreePath (String string)

public TreePath (List<Integer> pathList)

public TreePath (TreePath position, int addendum)

Public Methods

public boolean equals (Object o)

public int getLength ()

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.

public String getParentPathString ()

This method is deprecated.
No replacement.

public int[] getPath ()

public String getPathString ()

public int hashCode ()

public String toString ()