org.gnu.gtk
public class TreeModelSort extends TreeModel implements TreeSortable
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(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. |
Parameters: childPath A TreePath to convert.
Returns: TreePath, or NULL
Parameters: sortedPath A TreePath to convert.
Returns: A GtkTreePath, or NULL
Returns: A DataColumn object representing the currently sorted column or null if there is no column currently sorted.
Returns: A SortType object defining the current sorting order of the store or null if there is no current sort order.