- Type Parameters:
T
- the type of items
- All Superinterfaces:
SingleSelection<T>
- All Known Subinterfaces:
FilterTableModel.TableSelection<R>
A selection model managing multiple selected items.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Manages the selected index.static interface
Manages the selected indexes.static interface
Manages the the selected items.Nested classes/interfaces inherited from interface is.codion.common.model.selection.SingleSelection
SingleSelection.Item<T>
-
Method Summary
Methods inherited from interface is.codion.common.model.selection.SingleSelection
changing, clear, empty, item
-
Method Details
-
multiple
ObservableState multiple()- Returns:
- an
ObservableState
indicating whether multiple items are selected
-
single
ObservableState single()- Returns:
- an
ObservableState
indicating whether a single item is selected
-
singleSelection
State singleSelection()- Returns:
- a State controlling whether single selection mode is enabled
-
index
MultiSelection.Index index()- Returns:
- the selected
MultiSelection.Index
-
indexes
MultiSelection.Indexes indexes()- Returns:
- the seleted
MultiSelection.Indexes
-
items
MultiSelection.Items<T> items()- Returns:
- the selected
MultiSelection.Items
-
selectAll
void selectAll()Selects all items- See Also:
-
count
int count()- Returns:
- the number of selected items.
-