Package ch.bailu.gtk.gtk
Klasse ColumnViewSorter
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.Sorter
ch.bailu.gtk.gtk.ColumnViewSorter
- Alle implementierten Schnittstellen:
PointerInterface
Sorts [class@Gtk.ColumnView] columns.
The sorter returned by [method@Gtk.ColumnView.get_sorter] is
a `GtkColumnViewSorter`.
In column views, sorting can be configured by associating
sorters with columns, and users can invert sort order by clicking
on column headers. The API of `GtkColumnViewSorter` is designed
to allow saving and restoring this configuration.
If you are only interested in the primary sort column (i.e. the
column where a sort indicator is shown in the header), then
you can just look at [property@Gtk.ColumnViewSorter:primary-sort-column]
and [property@Gtk.ColumnViewSorter:primary-sort-order].
If you want to store the full sort configuration, including
secondary sort columns that are used for tie breaking, then
you can use [method@Gtk.ColumnViewSorter.get_nth_sort_column].
To get notified about changes, use [signal@Gtk.Sorter::changed].
To restore a saved sort configuration on a `GtkColumnView`,
use code like:
```
sorter = gtk_column_view_get_sorter (view);
for (i = gtk_column_view_sorter_get_n_sort_columns (sorter) - 1; i >= 0; i--)
{
column = gtk_column_view_sorter_get_nth_sort_column (sorter, i, &order);
gtk_column_view_sort_by_column (view, column, order);
}
```
The sorter returned by [method@Gtk.ColumnView.get_sorter] is
a `GtkColumnViewSorter`.
In column views, sorting can be configured by associating
sorters with columns, and users can invert sort order by clicking
on column headers. The API of `GtkColumnViewSorter` is designed
to allow saving and restoring this configuration.
If you are only interested in the primary sort column (i.e. the
column where a sort indicator is shown in the header), then
you can just look at [property@Gtk.ColumnViewSorter:primary-sort-column]
and [property@Gtk.ColumnViewSorter:primary-sort-order].
If you want to store the full sort configuration, including
secondary sort columns that are used for tie breaking, then
you can use [method@Gtk.ColumnViewSorter.get_nth_sort_column].
To get notified about changes, use [signal@Gtk.Sorter::changed].
To restore a saved sort configuration on a `GtkColumnView`,
use code like:
```
sorter = gtk_column_view_get_sorter (view);
for (i = gtk_column_view_sorter_get_n_sort_columns (sorter) - 1; i >= 0; i--)
{
column = gtk_column_view_sorter_get_nth_sort_column (sorter, i, &order);
gtk_column_view_sort_by_column (view, column, order);
}
```
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gtk.Sorter
Sorter.OnChanged
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gtk.Sorter
SIGNAL_ON_CHANGED
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
int
Returns the number of columns by which the sorter sorts.getNthSortColumn
(int position, Int sort_order) Gets the @position'th sort column and its associated sort order.static long
static TypeSystem.TypeSize
Returns the primary sort column.int
Returns the primary sort order.static long
static TypeSystem.TypeSize
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ColumnViewSorter
-
-
Methodendetails
-
getClassHandler
-
getNSortColumns
public int getNSortColumns()Returns the number of columns by which the sorter sorts.
If the sorter of the primary sort column does not determine
a total order, then the secondary sorters are consulted to
break the ties.
Use the [signal@Gtk.Sorter::changed] signal to get notified
when the number of sort columns changes.- Gibt zurück:
- the number of sort columns
-
getNthSortColumn
Gets the @position'th sort column and its associated sort order.
Use the [signal@Gtk.Sorter::changed] signal to get notified
when sort columns change.- Parameter:
position
- the position of the sort column to retrieve (0 for the primary sort column)sort_order
- return location for the sort order- Gibt zurück:
- the @positions sort column
-
getPrimarySortColumn
Returns the primary sort column.
The primary sort column is the one that displays the triangle
in a column view header.- Gibt zurück:
- the primary sort column
-
getPrimarySortOrder
public int getPrimarySortOrder()Returns the primary sort order.
The primary sort order determines whether the triangle displayed
in the column view header of the primary sort column points upwards
or downwards.
If there is no primary sort column, then this function returns
`GTK_SORT_ASCENDING`.- Gibt zurück:
- the primary sort order
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-