Class FormFactory
- Version:
- $Revision: 1.13 $
- Author:
- Karsten Lentzsch
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColumnSpec
Describes a logical horizontal column for a fixed size button.static final RowSpec
Describes a logical row for a fixed size button.static final ColumnSpec
An unmodifiableColumnSpec
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 unmodifiableRowSpec
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 unmodifiableColumnSpec
that has an initial width of 0 pixels and that grows.static final RowSpec
An unmodifiableRowSpec
that has an initial height of 0 pixels and that grows.static final ColumnSpec
Describes a logical horizontal column for a growing button.static final ColumnSpec
Describes a logical horizontal 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 unmodifiableColumnSpec
that determines its width by computing the maximum of all column component minimum widths.static final RowSpec
An unmodifiableRowSpec
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 unmodifiableColumnSpec
that determines its width by computing the maximum of all column component preferred widths.static final RowSpec
An unmodifiableRowSpec
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
Modifier and TypeMethodDescriptionstatic ColumnSpec
createGapColumnSpec
(ConstantSize gapWidth) Deprecated.static RowSpec
createGapRowSpec
(ConstantSize gapHeight) Deprecated.Replaced byRowSpec.createGap(ConstantSize)
.
-
Field Details
-
MIN_COLSPEC
An unmodifiableColumnSpec
that determines its width by computing the maximum of all column component minimum widths.- See Also:
-
PREF_COLSPEC
An unmodifiableColumnSpec
that determines its width by computing the maximum of all column component preferred widths.- See Also:
-
DEFAULT_COLSPEC
An unmodifiableColumnSpec
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.Useful to let a column shrink from preferred width to minimum width if the container space gets scarce.
- See Also:
-
GLUE_COLSPEC
An unmodifiableColumnSpec
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
Describes a logical horizontal gap between a label and an associated component. Useful for builders that automatically fill a grid with labels and components.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- Since:
- 1.0.3
-
RELATED_GAP_COLSPEC
Describes a logical horizontal gap between two related components. For example the OK and Cancel buttons are considered related.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
UNRELATED_GAP_COLSPEC
Describes a logical horizontal gap between two unrelated components.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
BUTTON_COLSPEC
Describes a logical horizontal column for a fixed size button. This spec honors the current layout style's default button minimum width.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
GROWING_BUTTON_COLSPEC
Describes a logical horizontal column for a growing button. This spec does not use the layout style's default button minimum width.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
MIN_ROWSPEC
An unmodifiableRowSpec
that determines its height by computing the maximum of all column component minimum heights.- See Also:
-
PREF_ROWSPEC
An unmodifiableRowSpec
that determines its height by computing the maximum of all column component preferred heights.- See Also:
-
DEFAULT_ROWSPEC
An unmodifiableRowSpec
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.
- See Also:
-
GLUE_ROWSPEC
An unmodifiableRowSpec
that has an initial height of 0 pixels and that grows. Useful to describe glue rows that fill the space between other rows.- See Also:
-
RELATED_GAP_ROWSPEC
Describes a logical vertical gap between two related components. For example the OK and Cancel buttons are considered related.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
UNRELATED_GAP_ROWSPEC
Describes a logical vertical gap between two unrelated components.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
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.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
LINE_GAP_ROWSPEC
Describes the logical vertical default gap between two rows in the grid. A little bit larger than the narrow line gap.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
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.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- See Also:
-
BUTTON_ROWSPEC
Describes a logical row for a fixed size button. This spec honors the current layout style's default button minimum height.Note: In a future version this constant will likely be moved to a class
LogicalSize
orStyledSize
.- Since:
- 1.2
-
-
Method Details
-
createGapColumnSpec
Deprecated.Replaced byColumnSpec.createGap(ConstantSize)
. This method will be removed from the next Forms version.Creates and returns aColumnSpec
that represents a gap with the specifiedConstantSize
.- Parameters:
gapWidth
- aConstantSize
that specifies the gap- Returns:
- a
ColumnSpec
that describes a horizontal gap
-
createGapRowSpec
Deprecated.Replaced byRowSpec.createGap(ConstantSize)
. This method will be removed from the next Forms version.Creates and returns aRowSpec
that represents a gap with the specifiedConstantSize
.- Parameters:
gapHeight
- aConstantSize
that specifies the gap- Returns:
- a
RowSpec
that describes a vertical gap
-
ColumnSpec.createGap(ConstantSize)
.