|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.TreeModel
org.gnu.gtk.TreeModelSort
public class TreeModelSort
Class for sorting the rows of a base TreeModel
. The underlying
TreeModel us sorted using a comparison function. The comparison function is
set with the setSortMethod(org.gnu.gtk.TreeIterComparison, org.gnu.gtk.DataColumn)
method.
Constructor Summary | |
---|---|
TreeModelSort(TreeModel model)
Create a new TreeModelSort using the given TreeModel as the underlying data model. |
Method Summary | |
---|---|
TreePath |
convertChildPathToPath(TreePath childPath)
Converts childPath to a path relative to the TreeModelSort. |
TreePath |
convertPathToChildPath(TreePath sortedPath)
Converts sortedPath to a path on the child model of the TreeModelSort. |
TreeModel |
getModel()
Return the underlying data model. |
DataColumn |
getSortColumn()
Get a DataColumn object representing the currently sorted column. |
SortType |
getSortOrder()
Get the current sorting order of the store. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
int |
handleCompareFunc(org.gnu.glib.Handle model,
org.gnu.glib.Handle aIter,
org.gnu.glib.Handle bIter,
int col)
Call-back method invoked by the JNI code when sorting is required. |
void |
setSortColumn(DataColumn column,
SortType order)
Set the column in the list to sort on. |
void |
setSortMethod(TreeIterComparison method,
DataColumn column)
Set the class used to sort the list according to the values stored in the given DataColumn. |
Methods inherited from class org.gnu.gtk.TreeModel |
---|
addListener, getColumnCount, getDataBlockCount, getEventListenerClass, getEventType, getFirstIter, getIter, getIter, getType, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, removeListener |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gnu.gtk.TreeSortable |
---|
getHandle |
Constructor Detail |
---|
public TreeModelSort(TreeModel model)
Method Detail |
---|
public static Type getType()
public TreeModel getModel()
public void setSortColumn(DataColumn column, SortType order)
setSortColumn
in interface TreeSortable
public DataColumn getSortColumn()
DataColumn.equals(org.gnu.gtk.DataColumn)
method.
getSortColumn
in interface TreeSortable
public SortType getSortOrder()
getSortOrder
in interface TreeSortable
public void setSortMethod(TreeIterComparison method, DataColumn column)
setSortMethod
in interface TreeSortable
public int handleCompareFunc(org.gnu.glib.Handle model, org.gnu.glib.Handle aIter, org.gnu.glib.Handle bIter, int col)
handleCompareFunc
in interface TreeSortable
public TreePath convertChildPathToPath(TreePath childPath)
childPath
- A TreePath to convert.
public TreePath convertPathToChildPath(TreePath sortedPath)
sortedPath
- A TreePath to convert.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |