|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.TreeModel
org.gnu.gtk.TreeModelFilter
Class for filtering the visible rows of a base TreeModel
.
This class allows the underlying TreeModel to be filtered in 2 ways:
setVisibleColumn(org.gnu.gtk.DataColumnBoolean)
- designates a boolean data column
in the underlying TreeModel that serves as "visible" marker each row.
If the column's value is true, the row will be visible. If the column's
value is false, the row will not be visible.setVisibleMethod(org.gnu.gtk.TreeModelFilterVisibleMethod)
- designates a special class which
can determine if a given row should be visible.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
protected |
TreeModelFilter(Handle handle)
For internal use only. |
|
TreeModelFilter(TreeModel model)
Create a new TreeModelFilter using the given TreeModel as the underlying data model. |
Method Summary | |
void |
clearCache()
Clear the filter of any cached iterators. |
TreePath |
convertChildPathToPath(TreePath child)
Convert the given child TreePath to a path relative to this filter. |
TreePath |
convertPathToChildPath(TreePath path)
Convert the given TreePath to a path relative to the child model. |
TreeModel |
getModel()
Return the underlying data model. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected boolean |
handleVisibleFunc(Handle model,
Handle iter)
|
void |
refilter()
Re-evaluate the visiblity of each row in the underlying data model. |
void |
setVisibleColumn(DataColumnBoolean column)
Designate a boolean data column in the underlying TreeModel that will serve as the "visible" marker for each row. |
void |
setVisibleMethod(TreeModelFilterVisibleMethod method)
Designate the given TreeModelFilterVisibleMethod object with the reponsibility of determining if the rows in the underlying TreeModel should be visible. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TreeModelFilter(Handle handle)
public TreeModelFilter(TreeModel model)
Method Detail |
public void setVisibleMethod(TreeModelFilterVisibleMethod method)
NOTE: There is no unset method.
protected boolean handleVisibleFunc(Handle model, Handle iter)
public void setVisibleColumn(DataColumnBoolean column)
NOTE: There is no unset method.
public TreeModel getModel()
public void refilter()
public void clearCache()
public TreePath convertChildPathToPath(TreePath child)
public TreePath convertPathToChildPath(TreePath path)
public static Type getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |