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.
-
path
- Path this instance represents.
-
TreePath(Object)
- Constructor when singlePath is the only item in the path.
-
TreePath(Object[])
- Represents the path, path, as returned from the model.
-
equals(Object)
- Equality is tested by checking each element of the paths for
equality.
-
getLastPathComponent()
- Returns the last component of the path this object represents.
-
getPath()
- Returns the path the reciever represents.
-
isDescendant(TreePath)
- Returns true if
aTreePath
is a descendant of the reciever.
-
toString()
-
path
protected transient Object path[]
- Path this instance represents.
TreePath
public TreePath(Object path[])
- Represents the path, path, as returned from the model.
TreePath
public TreePath(Object singlePath)
- Constructor when singlePath is the only item in the path.
getPath
public Object[] getPath()
- Returns the path the reciever represents.
getLastPathComponent
public Object getLastPathComponent()
- Returns the last component of the path this object represents.
equals
public boolean equals(Object o)
- Equality is tested by checking each element of the paths for
equality.
- Overrides:
- equals in class Object
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.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index