All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.tree.TreePath

java.lang.Object
   |
   +----com.sun.java.swing.tree.TreePath

public class TreePath
extends Object
implements Serializable
Represents a path. TreePath is Serializable, but if any components of the path are not serializable, it will not be written out.


Variable Index

 o path
Path this instance represents.

Constructor Index

 o TreePath(Object)
Constructor when singlePath is the only item in the path.
 o TreePath(Object[])
Represents the path, path, as returned from the model.

Method Index

 o equals(Object)
Equality is tested by checking each element of the paths for equality.
 o getLastPathComponent()
Returns the last component of the path this object represents.
 o getPath()
Returns the path the reciever represents.
 o isDescendant(TreePath)
Returns true if aTreePath is a descendant of the reciever.
 o toString()

Variables

 o path
 protected transient Object path[]
Path this instance represents.

Constructors

 o TreePath
 public TreePath(Object path[])
Represents the path, path, as returned from the model.

 o TreePath
 public TreePath(Object singlePath)
Constructor when singlePath is the only item in the path.

Methods

 o getPath
 public Object[] getPath()
Returns the path the reciever represents.

 o getLastPathComponent
 public Object getLastPathComponent()
Returns the last component of the path this object represents.

 o equals
 public boolean equals(Object o)
Equality is tested by checking each element of the paths for equality.

Overrides:
equals in class Object
 o isDescendant
 public boolean isDescendant(TreePath aTreePath)
Returns true if aTreePath is a descendant of the reciever. A TreePath, child, is a descendent of another TreePath, parent, if child contains all of the components that make up parents path.

Returns:
true if aTreePath is a descendant of the receiver.
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index