com.vaadin.shared.ui.grid.
Enum GridState.SharedSelectionMode
- java.lang.Object
-
- java.lang.Enum<GridState.SharedSelectionMode>
-
- com.vaadin.shared.ui.grid.GridState.SharedSelectionMode
-
All Implemented Interfaces:
Enclosing class:
public static enum GridState.SharedSelectionMode extends Enum<GridState.SharedSelectionMode>
A description of which of the three bundled SelectionModels is currently in use.
Used as a data transfer object instead of the client/server ones, because they don't know about each others classes.
See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode
,com.vaadin.client.ui.grid.Grid.SelectionMode
-
-
Method Summary
All Methods Modifier and Type Method Description static GridState.SharedSelectionMode
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static GridState.SharedSelectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final GridState.SharedSelectionMode SINGLE
Representation of a single selection mode
See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#SINGLE
,com.vaadin.client.ui.grid.Grid.SelectionMode#SINGLE
-
MULTI
public static final GridState.SharedSelectionMode MULTI
Representation of a multiselection mode
See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#MULTI
,com.vaadin.client.ui.grid.Grid.SelectionMode#MULTI
-
NONE
public static final GridState.SharedSelectionMode NONE
Representation of a no-selection mode
See Also:
com.vaadin.ui.components.grid.Grid.SelectionMode#NONE
,com.vaadin.client.ui.grid.Grid.SelectionMode#NONE
-
-
Method Detail
-
values
public static GridState.SharedSelectionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GridState.SharedSelectionMode c : GridState.SharedSelectionMode.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridState.SharedSelectionMode valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name
- the name of the enum constant to be returned.Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-