java.lang.Object
com.vaadin.featurepack.desktop.layouts.form.Sizes
All Implemented Interfaces:
Serializable

public final class Sizes extends Object implements Serializable
Consists only of static methods that create constant sizes as required by the FormLayout.
See Also:
  • Method Details

    • constant

      public static ConstantSize constant(String encodedValueAndUnit)
      Creates and returns an instance of ConstantSize from the given encoded size and unit description.
      Parameters:
      encodedValueAndUnit - value and unit in string representation
      Returns:
      a ConstantSize for the given value and unit
    • dluX

      public static ConstantSize dluX(int value)
      Creates and returns a ConstantSize for the specified value in horizontal dialog units.
      Parameters:
      value - size value in horizontal dialog units
      Returns:
      the associated ConstantSize
    • dluY

      public static ConstantSize dluY(int value)
      Creates and returns a ConstantSize for the specified value in vertical dialog units.
      Parameters:
      value - size value in vertical dialog units
      Returns:
      the associated ConstantSize
    • pixel

      public static ConstantSize pixel(int value)
      Creates and returns a ConstantSize for the specified pixel value.
      Parameters:
      value - value in pixel
      Returns:
      the associated ConstantSize