Package org.gnome.gtk

Class SingleSelection<T extends GObject>

java.lang.Object
All Implemented Interfaces:
Proxy, ListModelJavaList<T>, Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>, ListModel<T>, SectionModel<T>, SelectionModel<T>

@Generated("io.github.jwharm.JavaGI") public class SingleSelection<T extends GObject> extends GObject implements ListModel<T>, SectionModel<T>, SelectionModel<T>
GtkSingleSelection is a GtkSelectionModel that allows selecting a single item.

Note that the selection is persistent -- if the selected item is removed and re-added in the same Gio.ListModel::items-changed emission, it stays selected. In particular, this means that changing the sort order of an underlying sort model will preserve the selection.