public enum ButtonVariant extends Enum<ButtonVariant>
vaadin-button
component.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 |
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.
|
public static final ButtonVariant LUMO_SMALL
public static final ButtonVariant LUMO_LARGE
public static final ButtonVariant LUMO_TERTIARY
public static final ButtonVariant LUMO_TERTIARY_INLINE
public static final ButtonVariant LUMO_PRIMARY
public static final ButtonVariant LUMO_SUCCESS
public static final ButtonVariant LUMO_ERROR
public static final ButtonVariant LUMO_CONTRAST
public static final ButtonVariant LUMO_ICON
public static final ButtonVariant MATERIAL_CONTAINED
public static final ButtonVariant MATERIAL_OUTLINED
public static ButtonVariant[] values()
for (ButtonVariant c : ButtonVariant.values()) System.out.println(c);
public static ButtonVariant valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getVariantName()
Copyright © 2025. All rights reserved.