org.gnu.gtk
Class TreeModelSort
- TreeSortable
public class TreeModelSort
TreeModelSort(TreeModel model) - Create a new TreeModelSort using the given TreeModel as the underlying
data model.
|
addListener , getColumnCount , getDataBlockCount , getEventListenerClass , getEventType , getFirstIter , getIter , getIter , getType , getValue , getValue , getValue , getValue , getValue , getValue , getValue , getValue , getValue , removeListener |
TreeModelSort
public TreeModelSort(TreeModel model)
Create a new TreeModelSort using the given TreeModel as the underlying
data model.
convertChildPathToPath
public TreePath convertChildPathToPath(TreePath childPath)
Converts childPath to a path relative to the TreeModelSort.
That is, childPath points to a path in the child model.
The returned path will point to the same row in the sorted
model. If childPath isn't a valid path on the child model,
then NULL is returned.
childPath
- A TreePath to convert.
convertPathToChildPath
public TreePath convertPathToChildPath(TreePath sortedPath)
Converts sortedPath to a path on the child model of
the TreeModelSort. That is, sortedPath points to a location
in the TreeModelSort.
The returned path will point to the same location in the
model not being sorted. If sortedPath does not point to a
location in the child model, NULL is returned.
sortedPath
- A TreePath to convert.
getModel
public TreeModel getModel()
Return the underlying data model.
getSortColumn
public DataColumn getSortColumn()
Get a DataColumn object representing the currently sorted column. This is
not the same DataColumn used to create the store. It is only of type
DataColumn (not DataColumnString, etc). It can be compared with another
DataColumn object using the
DataColumn.equals(DataColumn)
method.
- getSortColumn in interface TreeSortable
- A DataColumn object representing the currently sorted column or
null if there is no column currently sorted.
getSortOrder
public SortType getSortOrder()
Get the current sorting order of the store.
- getSortOrder in interface TreeSortable
- A SortType object defining the current sorting order of the store
or null if there is no current sort order.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
handleCompareFunc
public int handleCompareFunc(Handle model,
Handle aIter,
Handle bIter,
int col)
Call-back method invoked by the JNI code when sorting is required. This
is for internal use only.
- handleCompareFunc in interface TreeSortable