org.gnu.gtk
public class TreeRowReference extends Boxed
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.TreeRowReference
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
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.