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.
  • Enum Constant Details

    • FIXED_WIDTH_PREFIX

      public static final ToolbarLayoutVariant 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

      public static final ToolbarLayoutVariant HIDE_ICONS
      Icons for Button and MenuBar entries are hidden in the overflow menu. The icons are still visible in the toolbar.
  • Method Details

    • values

      public static ToolbarLayoutVariant[] 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

      public static ToolbarLayoutVariant valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getVariantName

      public String getVariantName()
      Gets the variant name.
      Specified by:
      getVariantName in interface com.vaadin.flow.component.shared.ThemeVariant
      Returns:
      variant name