Interface GridSingleSelectionModel<T>
- Type Parameters:
T- the type of items in grid
- All Superinterfaces:
GridSelectionModel<T>,com.vaadin.flow.data.selection.SelectionModel<Grid<T>,,T> com.vaadin.flow.data.selection.SelectionModel.Single<Grid<T>,,T> Serializable
- All Known Implementing Classes:
AbstractGridSingleSelectionModel
public interface GridSingleSelectionModel<T>
extends GridSelectionModel<T>, com.vaadin.flow.data.selection.SelectionModel.Single<Grid<T>,T>
Single selection model interface for Grid.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.data.selection.SelectionModel
com.vaadin.flow.data.selection.SelectionModel.Multi<C extends com.vaadin.flow.component.Component,T extends Object>, com.vaadin.flow.data.selection.SelectionModel.Single<C extends com.vaadin.flow.component.Component, T extends Object> -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddSingleSelectionListener(com.vaadin.flow.data.selection.SingleSelectionListener<Grid<T>, T> listener) Adds a selection listener that will be called when the selection is changed either by the user or programmatically.Gets a wrapper to use this single selection model as a single select inBinder.Methods inherited from interface io.jmix.groupgridflowui.kit.vaadin.grid.GridSelectionModel
deselectFromClient, selectFromClientMethods inherited from interface com.vaadin.flow.data.selection.SelectionModel
addSelectionListener, deselect, isSelectedMethods inherited from interface com.vaadin.flow.data.selection.SelectionModel.Single
deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
-
Method Details
-
asSingleSelect
Gets a wrapper to use this single selection model as a single select inBinder.- Returns:
- the single select wrapper
-
addSingleSelectionListener
com.vaadin.flow.shared.Registration addSingleSelectionListener(com.vaadin.flow.data.selection.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
-