Enum Class LookupFieldVariant

java.lang.Object
java.lang.Enum<LookupFieldVariant>
com.vaadin.componentfactory.lookupfield.LookupFieldVariant
All Implemented Interfaces:
Serializable, Comparable<LookupFieldVariant>, Constable

public enum LookupFieldVariant extends Enum<LookupFieldVariant>
Theme variants that can be applied to the lookup field.
  • Enum Constant Details

    • SIZE_SMALL

      public static final LookupFieldVariant SIZE_SMALL
      Small size variant.
    • SIZE_MEDIUM

      public static final LookupFieldVariant SIZE_MEDIUM
      Medium size variant.
    • SIZE_LARGE

      public static final LookupFieldVariant SIZE_LARGE
      Large size variant.
    • FULL_WIDTH_LABEL

      public static final LookupFieldVariant FULL_WIDTH_LABEL
      Variant that makes the label take the full width.
    • INTEGRATED

      public static final LookupFieldVariant INTEGRATED
      Variant that renders the field in an integrated style.
  • Method Details

    • values

      public static LookupFieldVariant[] 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 LookupFieldVariant 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 theme name used by this variant.
      Returns:
      the variant theme name