Package ch.bailu.gtk.gtk
Klasse SectionModel
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.type.Interface
ch.bailu.gtk.gtk.SectionModel
- Alle implementierten Schnittstellen:
PointerInterface
An interface that adds support for sections to list models.
A `GtkSectionModel` groups successive items into so-called sections. List widgets
like `GtkListView` and `GtkGridView` then allow displaying section headers for
these sections by installing a header factory.
Many GTK list models support sections inherently, or they pass through the sections
of a model they are wrapping.
When the section groupings of a model change, the model will emit the
[signal@Gtk.SectionModel::sections-changed] signal by calling the
[method@Gtk.SectionModel.sections_changed] function. All sections in the given range
then need to be queried again.
The [signal@Gio.ListModel::items-changed] signal has the same effect, all sections in
that range are invalidated, too.
A `GtkSectionModel` groups successive items into so-called sections. List widgets
like `GtkListView` and `GtkGridView` then allow displaying section headers for
these sections by installing a header factory.
Many GTK list models support sections inherently, or they pass through the sections
of a model they are wrapping.
When the section groupings of a model change, the model will emit the
[signal@Gtk.SectionModel::sections-changed] signal by calling the
[method@Gtk.SectionModel.sections_changed] function. All sections in the given range
then need to be queried again.
The [signal@Gio.ListModel::items-changed] signal has the same effect, all sections in
that range are invalidated, too.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
FelderVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeConnect to signal "sections-changed".voidsectionsChanged(int position, int n_items) This function emits the [signal@Gtk.SectionModel::sections-changed]
signal to notify about changes to sections.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_SECTIONS_CHANGED
- Siehe auch:
-
-
Konstruktordetails
-
SectionModel
-
-
Methodendetails
-
getClassHandler
-
sectionsChanged
public void sectionsChanged(int position, int n_items) This function emits the [signal@Gtk.SectionModel::sections-changed]
signal to notify about changes to sections.
It must cover all positions that used to be a section start or that
are now a section start. It does not have to cover all positions for
which the section has changed.
The [signal@Gio.ListModel::items-changed] implies the effect of the
[signal@Gtk.SectionModel::sections-changed] signal for all the items
it covers.
It is recommended that when changes to the items cause section changes
in a larger range, that the larger range is included in the emission
of the [signal@Gio.ListModel::items-changed] instead of emitting
two signals.- Parameter:
position- the first changed itemn_items- the number of changed items
-
onSectionsChanged
Connect to signal "sections-changed".
SeeSectionModel.OnSectionsChanged.onSectionsChanged(int, int)for signal description.
FieldSIGNAL_ON_SECTIONS_CHANGEDcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-