/** * Adds the standard horizontal gap for related components. * * @see LayoutStyle#getRelatedComponentsPadX() */ public void addRelatedGap() { appendRelatedComponentsGapColumn(); nextColumn(); }
/** * Adds the standard horizontal gap for unrelated components. * * @see LayoutStyle#getUnrelatedComponentsPadX() */ public void addUnrelatedGap() { appendUnrelatedComponentsGapColumn(); nextColumn(); }
/** * Adds the standard gap for unrelated components. */ public void addUnrelatedGap() { appendUnrelatedComponentsGapColumn(); nextColumn(); }
/** * Adds the standard gap for related components. */ public void addRelatedGap() { appendRelatedComponentsGapColumn(); nextColumn(); }
/** * Adds a glue that will be given the extra space, * if this box is larger than its preferred size. */ public void addGlue() { appendGlueColumn(); nextColumn(); }
/** * Adds a glue that will be given the extra space, if this box is larger * than its preferred size. */ public void addGlue() { appendGlueColumn(); nextColumn(); }
/** * Adds a strut of a specified size. * * @param size * a <code>ConstantSize</code> that describes the gap's size */ public void addStrut(ConstantSize size) { getLayout().appendColumn(new ColumnSpec(ColumnSpec.LEFT, size, ColumnSpec.NO_GROW)); 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 fixed size component. Unlike the gridded components, * this component keeps its individual preferred dimension. * * @param component the component to add */ public void addFixed(JComponent component) { getLayout().appendColumn(FormFactory.PREF_COLSPEC); add(component); nextColumn(); }
/** * Adds a fixed size component. Unlike the gridded components, this * component keeps its individual preferred dimension. * * @param component * the component to add */ public void addFixed(JComponent component) { getLayout().appendColumn(FormFactory.PREF_COLSPEC); add(component); nextColumn(); }
/** * Adds a gridded component, i.e. a component that will get * the same dimension as all other gridded components. * * @param component the component to add */ public void addGridded(JComponent component) { getLayout().appendColumn(FormFactory.BUTTON_COLSPEC); getLayout().addGroupedColumn(getColumn()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextColumn(); }
/** * Adds a gridded component that grows. The component's initial size * (before it grows) is the same as for all other gridded components. * * @param component the component to add */ public void addGriddedGrowing(JComponent component) { getLayout().appendColumn(FormFactory.GROWING_BUTTON_COLSPEC); getLayout().addGroupedColumn(getColumn()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextColumn(); }
/** * Adds a gridded component, i.e. a component that will get the same * dimension as all other gridded components. * * @param component * the component to add */ public void addGridded(JComponent component) { getLayout().appendColumn(FormFactory.BUTTON_COLSPEC); getLayout().addGroupedColumn(getColumn()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextColumn(); }
/** * Adds a gridded component that grows. The component's initial size (before * it grows) is the same as for all other gridded components. * * @param component * the component to add */ public void addGriddedGrowing(JComponent component) { getLayout().appendColumn(FormFactory.GROWING_BUTTON_COLSPEC); getLayout().addGroupedColumn(getColumn()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextColumn(); }
builder.nextColumn(-1); builder.add(overlayedFinish); builder.nextColumn();
builder.nextColumn(-1); builder.add(overlaidFinish); builder.nextColumn();