public static enum Grid.SelectionMode extends Enum<Grid.SelectionMode>
These enums can be used in Grid.setSelectionMode(SelectionMode)
to easily switch between the build-in selection models.
Enum Constant and Description |
---|
MULTI
Multiselection mode that maps to build-in
MultiSelectionModel
. |
NONE
Selection model that doesn't allow selection.
|
SINGLE
Single selection mode that maps to build-in
SingleSelectionModel . |
Modifier and Type | Method and Description |
---|---|
protected abstract <T> GridSelectionModel<T> |
createModel()
Creates the selection model to use with this enum.
|
static Grid.SelectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Grid.SelectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Grid.SelectionMode SINGLE
SingleSelectionModel
.SingleSelectionModelImpl
public static final Grid.SelectionMode MULTI
MultiSelectionModel
.MultiSelectionModelImpl
public static final Grid.SelectionMode NONE
NoSelectionModel
public static Grid.SelectionMode[] values()
for (Grid.SelectionMode c : Grid.SelectionMode.values()) System.out.println(c);
public static Grid.SelectionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract <T> GridSelectionModel<T> createModel()
T
- the type of items in the gridCopyright © 2019 Vaadin Ltd. All rights reserved.