org.gnu.gtk

Class TreeIter

public class TreeIter 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.TreeIter. 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.

A tree iterator refers to a particular row of a TreeView object. They are used internally by many methods, but don't have any useful methods themselves.
Constructor Summary
TreeIter(Handle handle, TreeModel model)
construct iter from handle to native resources.
Method Summary
TreeItergetChild(int index)
Returns an iterator for the child of the given parent at a position identified by index.
intgetChildCount()
Returns the number of children that iter has
TreeItergetFirstChild()
Returns an iterator for the first child of the given iterator, or null if the iter has no children.
booleangetHasChild()
Returns TRUE if iter has children, FALSE otherwise.
TreeModelgetModel()
Returns the TreeModel which this Iter is associated with
TreeItergetNextIter()
Returns the next iter pointing to the node following the TreeIter provided at the same level.
TreeItergetParent()
Return the parent iterator of the given child.
TreePathgetPath()
Returns a newly-created TreePath referenced by this iter.
static TypegetType()
Retrieve the runtime type used by the GLib library.
StringtoString()
Generates a string representation of the iter.

Constructor Detail

TreeIter

public TreeIter(Handle handle, TreeModel model)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

construct iter from handle to native resources.

Method Detail

getChild

public TreeIter getChild(int index)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns an iterator for the child of the given parent at a position identified by index.

getChildCount

public int getChildCount()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the number of children that iter has

getFirstChild

public TreeIter getFirstChild()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns an iterator for the first child of the given iterator, or null if the iter has no children.

getHasChild

public boolean getHasChild()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns TRUE if iter has children, FALSE otherwise.

getModel

public TreeModel getModel()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the TreeModel which this Iter is associated with

getNextIter

public TreeIter getNextIter()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the next iter pointing to the node following the TreeIter provided at the same level. If there is no next iter it will return null.

Use this in combination with getFirstIter to loop through all values in the model.

getParent

public TreeIter getParent()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Return the parent iterator of the given child.

getPath

public TreePath getPath()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns a newly-created TreePath referenced by this iter.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

toString

public String toString()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Generates a string representation of the iter. This string is a ':' separated list of numbers. For example, "4:10:0:3" would be an acceptable return value for this string.