public static enum Grid.SelectionMode extends Enum<Grid.SelectionMode>
SelectionModels that come bundled with Grid.
Passing one of these enums into
Grid.setSelectionMode(SelectionMode) is equivalent to calling
Grid.setSelectionModel(SelectionModel) with one of the built-in
implementations of Grid.SelectionModel.
| Enum Constant and Description |
|---|
MULTI
A SelectionMode that maps to
Grid.MultiSelectionModel |
NONE
A SelectionMode that maps to
Grid.NoSelectionModel |
SINGLE
A SelectionMode that maps to
Grid.SingleSelectionModel |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Grid.SelectionModel |
createModel() |
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
Grid.SingleSelectionModelpublic static final Grid.SelectionMode MULTI
Grid.MultiSelectionModelpublic static final Grid.SelectionMode NONE
Grid.NoSelectionModelpublic 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 Grid.SelectionModel createModel()
Copyright © 2016 Vaadin Ltd. All rights reserved.