com.vaadin.flow.component.grid.
Interface GridSingleSelectionModel<T>
-
Type Parameters:
T
- the type of items in gridAll Superinterfaces:
GridSelectionModel<T>, SelectionModel<Grid<T>,T>, SelectionModel.Single<Grid<T>,T>, Serializable
All Known Implementing Classes:
public interface GridSingleSelectionModel<T> extends GridSelectionModel<T>, SelectionModel.Single<Grid<T>,T>
Single selection model interface for Grid.
Author:
Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.flow.data.selection.SelectionModel
SelectionModel.Multi<C extends Component,T>, SelectionModel.Single<C extends Component,T>
-
-
Method Summary
All Methods Modifier and Type Method and Description Registration
addSingleSelectionListener(SingleSelectionListener<Grid<T>,T> listener)
Adds a selection listener that will be called when the selection is changed either by the user or programmatically.
SingleSelect<Grid<T>,T>
asSingleSelect()
Gets a wrapper to use this single selection model as a single select in
Binder
.-
Methods inherited from interface com.vaadin.flow.component.grid.GridSelectionModel
deselectFromClient, selectFromClient
-
Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel.Single
deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
-
Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel
addSelectionListener, deselect, isSelected
-
-
-
-
Method Detail
-
asSingleSelect
SingleSelect<Grid<T>,T> asSingleSelect()
Gets a wrapper to use this single selection model as a single select in
Binder
.Returns:
the single select wrapper
-
addSingleSelectionListener
Registration addSingleSelectionListener(SingleSelectionListener<Grid<T>,T> listener)
Adds a selection listener that will be called when the selection is changed either by the user or programmatically.
Parameters:
listener
- the single selection listener, notnull
Returns:
a registration for the listener
-
-