org.gnu.gtk
public class TreeRowReference extends Boxed
To create a TreeRowReference you need a reference to a
TreeModel and a TreePath:
TreeRowReference ref = new TreeRowReference(model, path)
TreeModel model = ref.getModel();
TreePath path = ref.getPath();
TreeRowReferences can become invalidated if the node they are pointing to no longer exists, you should check for this by using
ref.isValid()
Constructor Summary | |
---|---|
TreeRowReference(TreeModel model, TreePath path)
Creates a row reference based on path. |
Method Summary | |
---|---|
TreeModel | getModel() |
TreePath | getPath() |
boolean | isValid() |
Parameters: model The model the reference will use path Valid TreePath to the node to keep a reference to
Returns: the model which reference is monitoring in order to appropriately modify the path.
Returns: Returns a path that the row reference currently points to, or NULL if the path pointed to is no longer valid.
Returns: TRUE if the reference refers to a current valid path.