com.vaadin.flow.component.grid.
Enum GridVariant
- java.lang.Object
-
- java.lang.Enum<GridVariant>
-
- com.vaadin.flow.component.grid.GridVariant
-
All Implemented Interfaces:
@Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.1-SNAPSHOT","WebComponent: Vaadin.GridElement#5.1.0","Flow#1.1-SNAPSHOT"}) public enum GridVariant extends Enum<GridVariant>
Set of theme variants applicable for
vaadin-grid
component.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description LUMO_COLUMN_BORDERS
LUMO_COMPACT
LUMO_NO_BORDER
LUMO_NO_ROW_BORDERS
LUMO_ROW_STRIPES
LUMO_WRAP_CELL_CONTENT
MATERIAL_COLUMN_DIVIDERS
-
Method Summary
All Methods Modifier and Type Method and Description String
getVariantName()
Gets the variant name.
static GridVariant
valueOf(String name)
Returns the enum constant of this type with the specified name.
static GridVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LUMO_NO_BORDER
public static final GridVariant LUMO_NO_BORDER
-
LUMO_NO_ROW_BORDERS
public static final GridVariant LUMO_NO_ROW_BORDERS
-
LUMO_COLUMN_BORDERS
public static final GridVariant LUMO_COLUMN_BORDERS
-
LUMO_ROW_STRIPES
public static final GridVariant LUMO_ROW_STRIPES
-
LUMO_COMPACT
public static final GridVariant LUMO_COMPACT
-
LUMO_WRAP_CELL_CONTENT
public static final GridVariant LUMO_WRAP_CELL_CONTENT
-
MATERIAL_COLUMN_DIVIDERS
public static final GridVariant MATERIAL_COLUMN_DIVIDERS
-
-
Method Detail
-
values
public static GridVariant[] 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 (GridVariant c : GridVariant.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridVariant 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
-
getVariantName
public String getVariantName()
Gets the variant name.
Returns:
variant name
-
-