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

public final class FormSpecs extends Object implements Serializable
Provides frequently used column and row specifications.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ColumnSpec
    An unmodifiable ColumnSpec that determines its preferred width by computing the maximum of all column component preferred widths and its minimum width by computing all column component minimum widths.
    static final RowSpec
    An unmodifiable RowSpec that determines its preferred height by computing the maximum of all column component preferred heights and its minimum height by computing all column component minimum heights.
    static final ColumnSpec
    An unmodifiable ColumnSpec that has an initial width of 0 pixels and that grows.
    static final RowSpec
    An unmodifiable RowSpec that has an initial height of 0 pixels and that grows.
    static final ColumnSpec
    Describes a logical horizontal gap between a label and an associated component.
    static final RowSpec
    Describes a logical vertical gap between a label and an associated component.
    static final RowSpec
    Describes the logical vertical default gap between two rows in the grid.
    static final ColumnSpec
    An unmodifiable ColumnSpec that determines its width by computing the maximum of all column component minimum widths.
    static final RowSpec
    An unmodifiable RowSpec that determines its height by computing the maximum of all column component minimum heights.
    static final RowSpec
    Describes a logical vertical narrow gap between two rows in the grid.
    static final RowSpec
    Describes the logical vertical default gap between two paragraphs in the layout grid.
    static final ColumnSpec
    An unmodifiable ColumnSpec that determines its width by computing the maximum of all column component preferred widths.
    static final RowSpec
    An unmodifiable RowSpec that determines its height by computing the maximum of all column component preferred heights.
    static final ColumnSpec
    Describes a logical horizontal gap between two related components.
    static final RowSpec
    Describes a logical vertical gap between two related components.
    static final ColumnSpec
    Describes a logical horizontal gap between two unrelated components.
    static final RowSpec
    Describes a logical vertical gap between two unrelated components.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MIN_COLSPEC

      public static final ColumnSpec MIN_COLSPEC
      An unmodifiable ColumnSpec that determines its width by computing the maximum of all column component minimum widths.
    • PREF_COLSPEC

      public static final ColumnSpec PREF_COLSPEC
      An unmodifiable ColumnSpec that determines its width by computing the maximum of all column component preferred widths.
    • DEFAULT_COLSPEC

      public static final ColumnSpec DEFAULT_COLSPEC
      An unmodifiable ColumnSpec that determines its preferred width by computing the maximum of all column component preferred widths and its minimum width by computing all column component minimum widths.

    • GLUE_COLSPEC

      public static final ColumnSpec GLUE_COLSPEC
      An unmodifiable ColumnSpec that has an initial width of 0 pixels and that grows. Useful to describe glue columns that fill the space between other columns.
      See Also:
    • LABEL_COMPONENT_GAP_COLSPEC

      public static final ColumnSpec LABEL_COMPONENT_GAP_COLSPEC
      Describes a logical horizontal gap between a label and an associated component.
    • UNRELATED_GAP_COLSPEC

      public static final ColumnSpec UNRELATED_GAP_COLSPEC
      Describes a logical horizontal gap between two unrelated components.
    • MIN_ROWSPEC

      public static final RowSpec MIN_ROWSPEC
      An unmodifiable RowSpec that determines its height by computing the maximum of all column component minimum heights.
    • PREF_ROWSPEC

      public static final RowSpec PREF_ROWSPEC
      An unmodifiable RowSpec that determines its height by computing the maximum of all column component preferred heights.
    • DEFAULT_ROWSPEC

      public static final RowSpec DEFAULT_ROWSPEC
      An unmodifiable RowSpec that determines its preferred height by computing the maximum of all column component preferred heights and its minimum height by computing all column component minimum heights.

      Useful to let a column shrink from preferred height to minimum height if the container space gets scarce.

    • GLUE_ROWSPEC

      public static final RowSpec GLUE_ROWSPEC
      An unmodifiable RowSpec that has an initial height of 0 pixels and that grows. Useful to describe glue rows that fill the space between other rows.
    • LABEL_COMPONENT_GAP_ROWSPEC

      public static final RowSpec LABEL_COMPONENT_GAP_ROWSPEC
      Describes a logical vertical gap between a label and an associated component.
    • UNRELATED_GAP_ROWSPEC

      public static final RowSpec UNRELATED_GAP_ROWSPEC
      Describes a logical vertical gap between two unrelated components.

    • NARROW_LINE_GAP_ROWSPEC

      public static final RowSpec NARROW_LINE_GAP_ROWSPEC
      Describes a logical vertical narrow gap between two rows in the grid. Useful if the vertical space is scarce or if an individual vertical gap shall be small than the default line gap.
    • LINE_GAP_ROWSPEC

      public static final RowSpec LINE_GAP_ROWSPEC
      Describes the logical vertical default gap between two rows in the grid. A little bit larger than the narrow line gap.
    • PARAGRAPH_GAP_ROWSPEC

      public static final RowSpec PARAGRAPH_GAP_ROWSPEC
      Describes the logical vertical default gap between two paragraphs in the layout grid. This gap is larger than the default line gap.