Package com.vaadin.flow.component.grid
Class GridNoneSelectionModel<T>
- java.lang.Object
-
- com.vaadin.flow.component.grid.GridNoneSelectionModel<T>
-
- Type Parameters:
T- the grid bean type
- All Implemented Interfaces:
GridSelectionModel<T>,com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>,Serializable
public class GridNoneSelectionModel<T> extends Object implements GridSelectionModel<T>
Selection model implementation for disabling selection in Grid.- See Also:
- Serialized Form
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description GridNoneSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddSelectionListener(com.vaadin.flow.data.selection.SelectionListener<Grid<T>,T> listener)voiddeselect(T item)voiddeselectAll()voiddeselectFromClient(T item)Handles the deselection of an item that originates from the client.Optional<T>getFirstSelectedItem()Set<T>getSelectedItems()voidselect(T item)voidselectFromClient(T item)Handles the selection of an item that originates from the client.
-
-
-
Method Detail
-
select
public void select(T item)
-
deselect
public void deselect(T item)
-
deselectAll
public void deselectAll()
-
selectFromClient
public void selectFromClient(T item)
Description copied from interface:GridSelectionModelHandles the selection of an item that originates from the client.- Specified by:
selectFromClientin interfaceGridSelectionModel<T>- Parameters:
item- the item being selected
-
deselectFromClient
public void deselectFromClient(T item)
Description copied from interface:GridSelectionModelHandles the deselection of an item that originates from the client.- Specified by:
deselectFromClientin interfaceGridSelectionModel<T>- Parameters:
item- the item being deselected
-
-