public final class TreeRowReference extends Boxed
This class is primarily necessary because a TreeIter instance is no longer usable if the model changes. Neither are TreePaths for that matter; if you change the sorting order then the row pointed at by TreePath "2" will [likely] be different before and after the sort.
Typical usage of this is from a TreeIter as follows:
TreeModel source; TreePath path; TreeIter row; TreeRowReference ref; ... path = source.getPath(row); ref = new TreeRowReference(source, path);
Constructor and Description |
---|
TreeRowReference(TreeModel model,
TreePath path)
Construct a new TreeRowReference for the given TreePath into the given
Model.
|
public TreePath getPath()
null
back if the TreeRowReference is no
longer valid, which would happen if the row has been deleted.