/** * Creates and returns a {@link ColumnSpec} that represents a gap with the * specified {@link ConstantSize}. * * @param gapWidth a <code>ConstantSize</code> that specifies the gap * @return a <code>ColumnSpec</code> that describes a horizontal gap * * @deprecated Replaced by {@link ColumnSpec#createGap(ConstantSize)}. * This method will be removed from the Forms 2.0 API. */ public static ColumnSpec createGapColumnSpec(ConstantSize gapWidth) { return ColumnSpec.createGap(gapWidth); }
/** * Adds a horizontal strut of the specified width. * For related and unrelated components use {@link #addRelatedGap()} * and {@link #addUnrelatedGap()} respectively. * * @param width describes the gap width * * @see ColumnSpec#createGap(ConstantSize) */ public void addStrut(ConstantSize width) { getLayout().appendColumn(ColumnSpec.createGap(width)); nextColumn(); }
/** * Adds a horizontal strut of the specified width. * For related and unrelated components use {@link #addRelatedGap()} * and {@link #addUnrelatedGap()} respectively. * * @param width describes the gap width * * @see ColumnSpec#createGap(ConstantSize) */ public void addStrut(ConstantSize width) { getLayout().appendColumn(ColumnSpec.createGap(width)); nextColumn(); }
/** * Adds a horizontal strut of the specified width. * For related and unrelated components use {@link #addRelatedGap()} * and {@link #addUnrelatedGap()} respectively. * * @param width describes the gap width * * @return this builder * * @see ColumnSpec#createGap(ConstantSize) */ public ButtonBarBuilder2 addStrut(ConstantSize width) { getLayout().appendColumn(ColumnSpec.createGap(width)); nextColumn(); return this; }