Enum Class ComponentSize

java.lang.Object
java.lang.Enum<ComponentSize>
com.vaadin.featurepack.desktop.layouts.form.ComponentSize
All Implemented Interfaces:
Size, Serializable, Comparable<ComponentSize>, Constable

public enum ComponentSize extends Enum<ComponentSize> implements Size
A Size implementation for the component sizes: min, pref, default.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    In Swing, this means using the maximum of all component sizes as column or row size; measures preferred sizes when asked for the preferred size and minimum sizes when asked for the minimum size.
    In Swing, this means using the maximum of all component minimum sizes as column or row size.
    In Swing, this means using the maximum of all component preferred sizes as column or row size.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a parseable string representation of this ComponentSize.
     
    Returns the enum constant of this class with the specified name.
    static ComponentSize[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MINIMUM

      public static final ComponentSize MINIMUM
      In Swing, this means using the maximum of all component minimum sizes as column or row size.
    • PREFERRED

      public static final ComponentSize PREFERRED
      In Swing, this means using the maximum of all component preferred sizes as column or row size.
    • DEFAULT

      public static final ComponentSize DEFAULT
      In Swing, this means using the maximum of all component sizes as column or row size; measures preferred sizes when asked for the preferred size and minimum sizes when asked for the minimum size.
  • Method Details

    • values

      public static ComponentSize[] 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 ComponentSize 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ComponentSize>
    • encode

      public String encode()
      Returns a parseable string representation of this ComponentSize.
      Specified by:
      encode in interface Size
      Returns:
      a String that can be parsed by the Forms parser