public final class TreePath extends Boxed
Paths in ListStores are quite simple. They are a simple number,
incrementing from zero, indicating the row number. For example,
TreePath("8") is the ninth row in the model.
Paths for TreeStores are more complex. They are of the form
"first:second:third:..." where each of first, second, and third denote the
number of steps in from the first at each level of the hierarchy. For
TreePath("2:4:0") represents the first third level
element in the fifth second level element in the third row.
TreePaths are given to you as a row address in signals like
TreeView.RowActivated. Usually you need the row expressed as a
TreeIter (ie to get a value out of the row);to do that call the underlying
|Constructor and Description|
Create a TreePath object from the String form.
|Modifier and Type||Method and Description|
Returns the depth of node identified by this TreePath within the tree.
Returns the indices the path consists of as an array of integer.
Return the text form represented by this TreePath.
public TreePath(String path)
IllegalArgumentException- if the
pathfails to parse as a valid TreePath.
public boolean equals(Object other)
trueof this TreePath represents the same logical path as the
public int getDepth()
public int getIndices()
nullif nothing is selected.
public String toString()