Package org.gnome.gtk
Interface TreeSortable
- All Known Implementing Classes:
ListStore
,TreeModelSort
,TreeSortable.TreeSortableImpl
,TreeStore
@Generated("io.github.jwharm.JavaGI")
@Deprecated
public interface TreeSortable
extends Proxy, TreeModel
Deprecated.
The interface for sortable models used by GtkTreeView
GtkTreeSortable
is an interface to be implemented by tree models which
support sorting. The GtkTreeView
uses the methods provided by this interface
to sort the model.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated.Functional interface declaration of theSortColumnChangedCallback
callback.static class
Deprecated.static class
Deprecated.The TreeSortableImpl type represents a native instance of the TreeSortable interface.Nested classes/interfaces inherited from interface org.gnome.gtk.TreeModel
TreeModel.RowChangedCallback, TreeModel.RowDeletedCallback, TreeModel.RowHasChildToggledCallback, TreeModel.RowInsertedCallback, TreeModel.RowsReorderedCallback, TreeModel.TreeModelIface, TreeModel.TreeModelImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Deprecated.Emits the "sort-column-changed" signal.default boolean
getSortColumnId
(Out<Integer> sortColumnId, Out<SortType> order) Deprecated.static Type
getType()
Deprecated.Get the GType of the TreeSortable classdefault boolean
Deprecated.Deprecated.The ::sort-column-changed signal is emitted when the sort column or sort order ofsortable
is changed.default void
setDefaultSortFunc
(TreeIterCompareFunc sortFunc) Deprecated.default void
setSortColumnId
(int sortColumnId, SortType order) Deprecated.default void
setSortFunc
(int sortColumnId, TreeIterCompareFunc sortFunc) Deprecated.default void
Deprecated.Methods inherited from interface org.gnome.gtk.TreeModel
emitRowChanged, emitRowDeleted, emitRowHasChildToggled, emitRowInserted, emitRowsReordered, filterNew, foreach, get, getColumnType, getFlags, getIter, getIterFirst, getIterFromString, getNColumns, getPath, getStringFromIter, getValue, iterChildren, iterHasChild, iterNChildren, iterNext, iterNthChild, iterParent, iterPrevious, onRowChanged, onRowDeleted, onRowHasChildToggled, onRowInserted, onRowsReordered, refNode, rowChanged, rowDeleted, rowHasChildToggled, rowInserted, rowsReordered, unrefNode
-
Method Details
-
getType
-
getSortColumnId
Deprecated.Fills insortColumnId
andorder
with the current sort column and the order. It returnstrue
unless thesortColumnId
isGTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
orGTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
.- Parameters:
sortColumnId
- The sort column id to be filled inorder
- TheGtkSortType
to be filled in- Returns:
true
if the sort column is not one of the special sort column ids.
-
hasDefaultSortFunc
Deprecated.Returnstrue
if the model has a default sort function. This is used primarily by GtkTreeViewColumns in order to determine if a model can go back to the default state, or not.- Returns:
true
, if the model has a default sort function
-
setDefaultSortFunc
Deprecated.Sets the default comparison function used when sorting to besortFunc
. If the current sort column id of this TreeSortable isGTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
, then the model will sort using this function.If
sortFunc
isnull
, then there will be no default comparison function. This means that once the model has been sorted, it can’t go back to the default state. In this case, when the current sort column id of this TreeSortable isGTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
, the model will be unsorted.- Parameters:
sortFunc
- The comparison function
-
setSortColumnId
Deprecated.Sets the current sort column to besortColumnId
. The this TreeSortable will resort itself to reflect this change, after emitting aGtkTreeSortable::sort-column-changed
signal.sortColumnId
may either be a regular column id, or one of the following special values:GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
: the default sort function will be used, if it is set
GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
: no sorting will occur
- Parameters:
sortColumnId
- the sort column id to setorder
- The sort order of the column
-
setSortFunc
Deprecated.Sets the comparison function used when sorting to besortFunc
. If the current sort column id of this TreeSortable is the same assortColumnId
, then the model will sort using this function.- Parameters:
sortColumnId
- the sort column id to set the function forsortFunc
- The comparison function
-
sortColumnChanged
Deprecated.Emits aGtkTreeSortable::sort-column-changed
signal on this TreeSortable. -
onSortColumnChanged
default SignalConnection<TreeSortable.SortColumnChangedCallback> onSortColumnChanged(TreeSortable.SortColumnChangedCallback handler) Deprecated.The ::sort-column-changed signal is emitted when the sort column or sort order ofsortable
is changed. The signal is emitted before the contents ofsortable
are resorted.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitSortColumnChanged
default void emitSortColumnChanged()Deprecated.Emits the "sort-column-changed" signal. SeeonSortColumnChanged(org.gnome.gtk.TreeSortable.SortColumnChangedCallback)
.
-