public class TreePath
extends java.lang.Object
implements java.io.Serializable
TreeChip,
TreeModel,
Serialized Form| Constructor and Description |
|---|
TreePath(java.util.List components)
Constructor.
|
TreePath(java.lang.Object element)
Constructor.
|
TreePath(TreePath path,
java.lang.Object element)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
java.lang.Object |
getLastPathComponent()
Returns the last component in the path.
|
TreePath |
getParentPath()
Returns the parent path.
|
java.util.List |
getPath()
Get this path as list of components.
|
java.lang.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(java.lang.Object element) |
java.lang.String |
toString() |
public TreePath(java.util.List components)
components - the path components.public TreePath(java.lang.Object element)
element - the path element.public TreePath(TreePath path, java.lang.Object element)
path - the parent pathelement - the last path component.public TreePath getParentPath()
public java.lang.Object getLastPathComponent()
public java.util.List getPath()
public java.lang.Object getPathComponent(int level)
public int getPathLength()
public TreePath pathByAddingChild(java.lang.Object element)
public boolean equals(java.lang.Object object)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic boolean isDescendant(TreePath path)
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2017 SAP SE. All Rights Reserved.