com.vaadin.flow.component.details.
Enum DetailsVariant
- java.lang.Object
-
- java.lang.Enum<DetailsVariant>
-
- com.vaadin.flow.component.details.DetailsVariant
-
All Implemented Interfaces:
public enum DetailsVariant extends Enum<DetailsVariant>
The set of theme variants applicable to the
vaadin-details
component.
-
-
Method Summary
All Methods Modifier and Type Method and Description String
getVariantName()
Gets the variant name.
static DetailsVariant
valueOf(String name)
Returns the enum constant of this type with the specified name.
static DetailsVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILLED
public static final DetailsVariant FILLED
-
REVERSE
public static final DetailsVariant REVERSE
-
SMALL
public static final DetailsVariant SMALL
-
-
Method Detail
-
values
public static DetailsVariant[] 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 (DetailsVariant c : DetailsVariant.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DetailsVariant 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
-
-