com.vaadin.ui.components.grid.
Enum MultiSelectionModel.SelectAllCheckBoxVisibility
- java.lang.Object
-
- java.lang.Enum<MultiSelectionModel.SelectAllCheckBoxVisibility>
-
- com.vaadin.ui.components.grid.MultiSelectionModel.SelectAllCheckBoxVisibility
-
All Implemented Interfaces:
Serializable
,Comparable<MultiSelectionModel.SelectAllCheckBoxVisibility>
Enclosing interface:
public static enum MultiSelectionModel.SelectAllCheckBoxVisibility extends Enum<MultiSelectionModel.SelectAllCheckBoxVisibility>
State for showing the select all checkbox in the grid's default header row for the selection column.
Default value is
DEFAULT
, which means that the select all is only visible if an in-memory data provider is usedDataProvider.isInMemory()
.
-
-
Method Summary
All Methods Modifier and Type Method Description static MultiSelectionModel.SelectAllCheckBoxVisibility
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static MultiSelectionModel.SelectAllCheckBoxVisibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VISIBLE
public static final MultiSelectionModel.SelectAllCheckBoxVisibility VISIBLE
Shows the select all checkbox, regardless of data provider used.
For a lazy data provider, selecting all will result in to all rows being fetched from backend to application memory!
-
HIDDEN
public static final MultiSelectionModel.SelectAllCheckBoxVisibility HIDDEN
Never shows the select all checkbox, regardless of data provider used.
-
DEFAULT
public static final MultiSelectionModel.SelectAllCheckBoxVisibility DEFAULT
By default select all checkbox depends on the grid's dataprovider.
- Visible, if the data provider is in-memory
- Hidden, if the data provider is NOT in-memory (lazy)
See Also:
-
-
Method Detail
-
values
public static MultiSelectionModel.SelectAllCheckBoxVisibility[] 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 (MultiSelectionModel.SelectAllCheckBoxVisibility c : MultiSelectionModel.SelectAllCheckBoxVisibility.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiSelectionModel.SelectAllCheckBoxVisibility 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
-
-