org.gnu.gtk
public class TreeIter extends Boxed
Constructor Summary | |
---|---|
TreeIter(Handle handle, TreeModel model)
construct iter from handle to native resources. |
Method Summary | |
---|---|
TreeIter | getChild(int index)
Returns an iterator for the child of the given parent at a position
identified by index. |
int | getChildCount()
Returns the number of children that iter has |
TreeIter | getFirstChild()
Returns an iterator for the first child of the given iterator, or
null if the iter has no children. |
boolean | getHasChild()
Returns TRUE if iter has children, FALSE otherwise. |
TreeModel | getModel()
Returns the TreeModel which this Iter is associated with |
TreeIter | getNextIter()
Returns the next iter pointing to the node following the
TreeIter provided at the same level. |
TreeIter | getParent()
Return the parent iterator of the given child. |
TreePath | getPath()
Returns a newly-created TreePath referenced by this iter. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
String | toString()
Generates a string representation of the iter. |
iter
hasnull
if the iter has no children.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.