Module is.codion.common.model
Package is.codion.common.model.selection
Interface MultiItemSelection<T>
- Type Parameters:
T
- the type of items
- All Superinterfaces:
SingleItemSelection<T>
- All Known Subinterfaces:
FilterTableModel.TableSelection<R>
A selection model
-
Nested Class Summary
Modifier 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.SingleItemSelection
changing, clear, empty, item
-
Method Details
-
multiple
StateObserver multiple()- Returns:
- a
StateObserver
indicating whether multiple items are selected
-
single
StateObserver single()- Returns:
- a
StateObserver
indicating whether a single item is selected
-
singleSelectionMode
State singleSelectionMode()- Returns:
- a State controlling the single selection mode of this selection model
-
index
- Returns:
- a
Mutable
for the index of the selected item, -1 if none is selected and the minimum selected index if more than one item is selected
-
indexes
MultiItemSelection.Indexes indexes()- Returns:
- the seleted
MultiItemSelection.Indexes
-
items
MultiItemSelection.Items<T> items()- Returns:
- the selected
MultiItemSelection.Items
-
selectAll
void selectAll()Selects all items- See Also:
-
count
int count()- Returns:
- the number of selected items.
-