public static enum Grid.SelectionMode extends Enum<Grid.SelectionMode>
These enums can be used in Grid.setSelectionMode(SelectionMode)
to easily switch between the built-in selection models.
| Enum Constant and Description |
|---|
MULTI
Multiselection mode that maps to built-in
SelectionModel.Multi. |
NONE
Selection model that doesn't allow selection.
|
SINGLE
Single selection mode that maps to built-in
SelectionModel.Single. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <T> GridSelectionModel<T> |
createModel(Grid<T> grid)
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
SelectionModel.Single.GridSingleSelectionModelpublic static final Grid.SelectionMode MULTI
SelectionModel.Multi.GridMultiSelectionModelpublic static final Grid.SelectionMode NONE
GridNoneSelectionModelpublic 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(Grid<T> grid)
T - the type of items in the gridgrid - the grid to create the selection model forCopyright © 2025. All rights reserved.