|
||||||||||
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.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.
Field Summary | |
protected java.util.HashMap |
sortMethods
|
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
protected |
TreeModelSort(Handle handle)
For internal use only. |
|
TreeModelSort(TreeModel model)
Create a new TreeModelSort using the given TreeModel as the underlying data model. |
Method Summary | |
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. |
protected static void |
gtk_tree_model_sort_clear_cache(Handle treeModel)
|
protected static void |
gtk_tree_model_sort_convert_child_iter_to_iter(Handle treeModel,
Handle childIter,
Handle sortIter)
|
protected static Handle |
gtk_tree_model_sort_convert_child_path_to_path(Handle treeModel,
Handle childPath)
|
protected static void |
gtk_tree_model_sort_convert_iter_to_child_iter(Handle treeModel,
Handle childIter,
Handle sortedIter)
|
protected static Handle |
gtk_tree_model_sort_convert_path_to_child_path(Handle treeModel,
Handle sortedPath)
|
protected static Handle |
gtk_tree_model_sort_get_model(Handle treeModel)
|
protected static int |
gtk_tree_model_sort_get_type()
|
protected static Handle |
gtk_tree_model_sort_new_with_model(Handle childModel)
|
int |
handleCompareFunc(Handle model,
Handle aIter,
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gnu.gtk.TreeSortable |
getHandle |
Field Detail |
protected java.util.HashMap sortMethods
Constructor Detail |
protected TreeModelSort(Handle handle)
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(Handle model, Handle aIter, Handle bIter, int col)
handleCompareFunc
in interface TreeSortable
protected static final int gtk_tree_model_sort_get_type()
protected static final Handle gtk_tree_model_sort_new_with_model(Handle childModel)
protected static final Handle gtk_tree_model_sort_get_model(Handle treeModel)
protected static final Handle gtk_tree_model_sort_convert_child_path_to_path(Handle treeModel, Handle childPath)
protected static final void gtk_tree_model_sort_convert_child_iter_to_iter(Handle treeModel, Handle childIter, Handle sortIter)
protected static final Handle gtk_tree_model_sort_convert_path_to_child_path(Handle treeModel, Handle sortedPath)
protected static final void gtk_tree_model_sort_convert_iter_to_child_iter(Handle treeModel, Handle childIter, Handle sortedIter)
protected static final void gtk_tree_model_sort_clear_cache(Handle treeModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |