T - the type of items in gridpublic interface GridMultiSelectionModel<T> extends GridSelectionModel<T>, com.vaadin.flow.data.selection.SelectionModel.Multi<Grid<T>,T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
GridMultiSelectionModel.SelectAllCheckboxVisibility
State for showing the select all checkbox in the grid's default header
row for the selection column.
|
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>| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addMultiSelectionListener(com.vaadin.flow.data.selection.MultiSelectionListener<Grid<T>,T> listener)
Adds a selection listener that will be called when the selection is
changed either by the user or programmatically.
|
com.vaadin.flow.data.selection.MultiSelect<Grid<T>,T> |
asMultiSelect()
Gets a wrapper to use this multiselection model as a multiselect in
Binder. |
GridMultiSelectionModel.SelectAllCheckboxVisibility |
getSelectAllCheckboxVisibility()
Gets the current mode for the select all checkbox visibility.
|
boolean |
isSelectAllCheckboxVisible()
Returns whether the select all checkbox will be visible with the current
setting of
setSelectAllCheckboxVisibility(SelectAllCheckboxVisibility). |
boolean |
isSelectionColumnFrozen()
Gets the the selection column's frozen state.
|
void |
setSelectAllCheckboxVisibility(GridMultiSelectionModel.SelectAllCheckboxVisibility selectAllCheckBoxVisibility)
Sets the select all checkbox visibility mode.
|
void |
setSelectionColumnFrozen(boolean frozen)
Sets the selection column's frozen state.
|
deselectFromClient, selectFromClientcom.vaadin.flow.data.selection.MultiSelect<Grid<T>,T> asMultiSelect()
Binder.com.vaadin.flow.shared.Registration addMultiSelectionListener(com.vaadin.flow.data.selection.MultiSelectionListener<Grid<T>,T> listener)
listener - the multi selection listener, not nullvoid setSelectAllCheckboxVisibility(GridMultiSelectionModel.SelectAllCheckboxVisibility selectAllCheckBoxVisibility)
The default value is GridMultiSelectionModel.SelectAllCheckboxVisibility.DEFAULT, which
means that the checkbox is only visible if the grid's data provider is
in- memory.
selectAllCheckBoxVisibility - the visiblity mode to useGridMultiSelectionModel.SelectAllCheckboxVisibilityGridMultiSelectionModel.SelectAllCheckboxVisibility getSelectAllCheckboxVisibility()
GridMultiSelectionModel.SelectAllCheckboxVisibility,
isSelectAllCheckboxVisible()boolean isSelectAllCheckboxVisible()
setSelectAllCheckboxVisibility(SelectAllCheckboxVisibility).true if the checkbox will be visible with the current
settingsGridMultiSelectionModel.SelectAllCheckboxVisibility,
setSelectAllCheckboxVisibility(SelectAllCheckboxVisibility)void setSelectionColumnFrozen(boolean frozen)
frozen - whether to freeze or unfreeze the selection columnboolean isSelectionColumnFrozen()
Copyright © 2020. All rights reserved.