- 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Manages the selected indexes.static interface
Manages the the selected items. -
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:
- the
State
controlling whether single selection mode is enabled
-
index
- Returns:
- the
Value
controlling the selected index, -1 if selection is empty
-
indexes
MultiSelection.Indexes indexes()- Returns:
- the
MultiSelection.Indexes
controlling the selected indexes
-
items
MultiSelection.Items<T> items()- Returns:
- the
MultiSelection.Items
controlling the selected items
-
selectAll
void selectAll()Selects all items- See Also:
-
count
int count()- Returns:
- the number of selected items.
-