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