Module is.codion.common.model
Package is.codion.common.model.selection
Interface MultiSelection.Index
- All Superinterfaces:
Observable<Integer>
,Observer<Integer>
- Enclosing interface:
- MultiSelection<T>
Manages the selected index.
-
Method Summary
Methods inherited from interface is.codion.common.observable.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, isEqualTo, isNotEqualTo, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
get
Integer get()- Specified by:
get
in interfaceObservable<Integer>
- Returns:
- the selected index or -1 in case the selection is empty
-
set
void set(int index) - Parameters:
index
- the index to select
-