Package org.gnome.gtk
Interface TreeSortable
- All Known Implementing Classes:
ListStore,TreeModelSort,TreeSortable.TreeSortable$Impl,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.Functional interface declaration of theSortColumnChangedCallbackcallback.static classDeprecated.The TreeSortable$Impl type represents a native instance of the TreeSortable interface.static classDeprecated.Nested classes/interfaces inherited from interface org.gnome.gtk.TreeModel
TreeModel.RowChangedCallback, TreeModel.RowDeletedCallback, TreeModel.RowHasChildToggledCallback, TreeModel.RowInsertedCallback, TreeModel.RowsReorderedCallback, TreeModel.TreeModel$Impl, TreeModel.TreeModelIface -
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeprecated.Emits the "sort-column-changed" signal.default booleangetSortColumnId(Out<Integer> sortColumnId, Out<SortType> order) Deprecated.static TypegetType()Deprecated.Get the GType of the TreeSortable classdefault booleanDeprecated.Deprecated.The ::sort-column-changed signal is emitted when the sort column or sort order ofsortableis changed.default voidsetDefaultSortFunc(TreeIterCompareFunc sortFunc) Deprecated.default voidsetSortColumnId(int sortColumnId, SortType order) Deprecated.default voidsetSortFunc(int sortColumnId, TreeIterCompareFunc sortFunc) Deprecated.default voidDeprecated.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 insortColumnIdandorderwith the current sort column and the order. It returnstrueunless thesortColumnIdisGTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_IDorGTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID.- Parameters:
sortColumnId- The sort column id to be filled inorder- TheGtkSortTypeto be filled in- Returns:
trueif the sort column is not one of the special sort column ids.
-
hasDefaultSortFunc
Deprecated.Returnstrueif 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
sortFuncisnull, 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-changedsignal.sortColumnIdmay 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-changedsignal 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 ofsortableis changed. The signal is emitted before the contents ofsortableare 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).
-
SortListModelto wrap your list model instead