com.vaadin.flow.component.button.
Enum ButtonVariant
- java.lang.Object
-
- java.lang.Enum<ButtonVariant>
-
- com.vaadin.flow.component.button.ButtonVariant
-
All Implemented Interfaces:
public enum ButtonVariant extends Enum<ButtonVariant>
Set of theme variants applicable for
vaadin-button
component.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description LUMO_CONTRAST
LUMO_ERROR
LUMO_ICON
LUMO_LARGE
LUMO_PRIMARY
LUMO_SMALL
LUMO_SUCCESS
LUMO_TERTIARY
LUMO_TERTIARY_INLINE
MATERIAL_CONTAINED
MATERIAL_OUTLINED
-
Method Summary
All Methods Modifier and Type Method and Description String
getVariantName()
Gets the variant name.
static ButtonVariant
valueOf(String name)
Returns the enum constant of this type with the specified name.
static ButtonVariant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LUMO_SMALL
public static final ButtonVariant LUMO_SMALL
-
LUMO_LARGE
public static final ButtonVariant LUMO_LARGE
-
LUMO_TERTIARY
public static final ButtonVariant LUMO_TERTIARY
-
LUMO_TERTIARY_INLINE
public static final ButtonVariant LUMO_TERTIARY_INLINE
-
LUMO_PRIMARY
public static final ButtonVariant LUMO_PRIMARY
-
LUMO_SUCCESS
public static final ButtonVariant LUMO_SUCCESS
-
LUMO_ERROR
public static final ButtonVariant LUMO_ERROR
-
LUMO_CONTRAST
public static final ButtonVariant LUMO_CONTRAST
-
LUMO_ICON
public static final ButtonVariant LUMO_ICON
-
MATERIAL_CONTAINED
public static final ButtonVariant MATERIAL_CONTAINED
-
MATERIAL_OUTLINED
public static final ButtonVariant MATERIAL_OUTLINED
-
-
Method Detail
-
values
public static ButtonVariant[] 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 (ButtonVariant c : ButtonVariant.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ButtonVariant 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
-
-