|
java-gnome version 4.0.7 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectorg.freedesktop.bindings.Proxy
org.gnome.glib.Boxed
org.gnome.gtk.TreeIter
public class TreeIter
A temporary pointer to a row in a TreeModel. TreeIters are used to indicate a row in a TreeModel, either the "current" row if you are iterating over the data, or as an indication of which row a given event occurred on.
To obtain a new TreeIter, use one of the following:
appendRow() (to add a new
record to the end of the data set in the model);
getIterFirst() (to start
iterating through the rows in the model); or
getSelected()
(allowing you to identify the selected row and subsequently read data from
it, usually with TreeModel's
getValue().
Like other iterators in Java, a TreeIter becomes invalid the moment the
underlying model changes. If you need a persistent pointer to a particular
row, create a TreeRowReference.
Note that although one use case for TreeIter is to iterate through all
the rows in a model, more often they are used to point to a single row (the
one you are presently adding data to, or the one that was selected by the
user); these aren't java.util.Iterators.
| Method Summary | |
|---|---|
boolean |
iterNext()
Change this TreeIter to point to the row following the current one. |
| Methods inherited from class org.freedesktop.bindings.Proxy |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean iterNext()
getIterFirst() to
iterate through the entire model. In a TreeStore, however, it will
return the next row at this level.
true if it was able to change this
TreeIter to the next row.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||