Package com.vaadin.flow.component.grid
Interface GridSingleSelectionModel<T>
-
- Type Parameters:
T
- the type of items in grid
- All Superinterfaces:
GridSelectionModel<T>
,SelectionModel<Grid<T>,T>
,SelectionModel.Single<Grid<T>,T>
,Serializable
- All Known Implementing Classes:
AbstractGridSingleSelectionModel
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 Instance Methods Abstract Methods Modifier and Type Method 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 inBinder
.-
Methods inherited from interface com.vaadin.flow.component.grid.GridSelectionModel
deselectFromClient, selectFromClient
-
Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel
addSelectionListener, deselect, isSelected
-
Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel.Single
deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
-
-
-
-
Method Detail
-
asSingleSelect
SingleSelect<Grid<T>,T> asSingleSelect()
Gets a wrapper to use this single selection model as a single select inBinder
.- 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
-
-