public class TreePath extends Object implements Serializable
TreeChip,
TreeModel,
Serialized Form| Constructor and Description |
|---|
TreePath(List components)
Constructor.
|
TreePath(Object element)
Constructor.
|
TreePath(TreePath path,
Object element)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
getLastPathComponent()
Returns the last component in the path.
|
TreePath |
getParentPath()
Returns the parent path.
|
List |
getPath()
Get this path as list of components.
|
Object |
getPathComponent(int level)
Get the path component at level
|
int |
getPathLength()
Returns the count of the components in this path.
|
int |
hashCode()
The hash code of a TreePath is the hash code of the last component in the path.
|
boolean |
isDescendant(TreePath path) |
TreePath |
pathByAddingChild(Object element) |
String |
toString() |
public TreePath(List components)
components - the path components.public TreePath(Object element)
element - the path element.public TreePath getParentPath()
public Object getLastPathComponent()
public List getPath()
public Object getPathComponent(int level)
public int getPathLength()
public boolean equals(Object object)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
public boolean isDescendant(TreePath path)
public String toString()
toString in class ObjectObject.toString()Copyright © 2017 SAP SE. All Rights Reserved.