T - the grid bean typepublic class GridNoneSelectionModel<T> extends Object implements GridSelectionModel<T>
com.vaadin.flow.data.selection.SelectionModel.Multi<C extends com.vaadin.flow.component.Component,T>, com.vaadin.flow.data.selection.SelectionModel.Single<C extends com.vaadin.flow.component.Component,T>| Constructor and Description |
|---|
GridNoneSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addSelectionListener(com.vaadin.flow.data.selection.SelectionListener<Grid<T>,T> listener) |
void |
deselect(T item) |
void |
deselectAll() |
void |
deselectFromClient(T item)
Handles the deselection of an item that originates from the client.
|
Optional<T> |
getFirstSelectedItem() |
Set<T> |
getSelectedItems() |
void |
select(T item) |
void |
selectFromClient(T item)
Handles the selection of an item that originates from the client.
|
public void select(T item)
public void deselect(T item)
public void deselectAll()
public void selectFromClient(T item)
GridSelectionModelselectFromClient in interface GridSelectionModel<T>item - the item being selectedpublic void deselectFromClient(T item)
GridSelectionModeldeselectFromClient in interface GridSelectionModel<T>item - the item beign deselectedCopyright © 2022. All rights reserved.