Enum Class ToolbarLayoutVariant
java.lang.Object
java.lang.Enum<ToolbarLayoutVariant>
org.vaadin.addons.componentfactory.toolbarlayout.ToolbarLayoutVariant
- All Implemented Interfaces:
com.vaadin.flow.component.shared.ThemeVariant,Serializable,Comparable<ToolbarLayoutVariant>,java.lang.constant.Constable
public enum ToolbarLayoutVariant
extends Enum<ToolbarLayoutVariant>
implements com.vaadin.flow.component.shared.ThemeVariant
Theme variants for
ToolbarLayout.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFixed spacing on the left side of each item in the overflow menu so that the text of each item is aligned.Icons forButtonandMenuBarentries are hidden in the overflow menu. -
Method Summary
Modifier and TypeMethodDescriptionGets the variant name.static ToolbarLayoutVariantReturns the enum constant of this class with the specified name.static ToolbarLayoutVariant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED_WIDTH_PREFIX
Fixed spacing on the left side of each item in the overflow menu so that the text of each item is aligned. This works for items with, or without, a prefix component/icon. -
HIDE_ICONS
Icons forButtonandMenuBarentries are hidden in the overflow menu. The icons are still visible in the toolbar.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getVariantName
Gets the variant name.- Specified by:
getVariantNamein interfacecom.vaadin.flow.component.shared.ThemeVariant- Returns:
- variant name
-