/** * Appends the given column specification to the builder's layout. * * @param columnSpec the column specification object to append */ protected final void appendColumn(ColumnSpec columnSpec) { getLayout().appendColumn(columnSpec); }
/** * Appends the given column specification to the builder's layout. * * @param columnSpec the column specification object to append * * @see #appendColumn(String) */ public final void appendColumn(ColumnSpec columnSpec) { getLayout().appendColumn(columnSpec); }
/** * Appends the given column specification to the builder's layout. * * @param columnSpec the column specification object to append * * @see #appendColumn(String) */ public final void appendColumn(ColumnSpec columnSpec) { getLayout().appendColumn(columnSpec); }
/** * Appends the given column specification to the builder's layout. * * @param columnSpec * the column specification object to append * * @see #appendColumn(String) */ public final void appendColumn(ColumnSpec columnSpec) { getLayout().appendColumn(columnSpec); }
/** * Appends the given column specification to the builder's layout. * * @param columnSpec the column specification object to append */ protected final void appendColumn(ColumnSpec columnSpec) { getLayout().appendColumn(columnSpec); }
/** * Insert the specified column into the layout. This accomodates * for the appendRow/insertRow API weakness in FormLayout. */ private void insertColumn(int index, ColumnSpec columnSpec) { if(index == formLayout.getColumnCount()) formLayout.appendColumn(columnSpec); else formLayout.insertColumn(index + 1, columnSpec); }
/** * Insert the specified column into the layout. This accomodates * for the appendRow/insertRow API weakness in FormLayout. */ private void insertColumn(int index, ColumnSpec columnSpec) { if(index == formLayout.getColumnCount()) formLayout.appendColumn(columnSpec); else formLayout.insertColumn(index + 1, columnSpec); }
/** * Insert the specified column into the layout. This accomodates * for the appendRow/insertRow API weakness in FormLayout. */ private void insertColumn(int index, ColumnSpec columnSpec) { if(index == formLayout.getColumnCount()) formLayout.appendColumn(columnSpec); else formLayout.insertColumn(index + 1, columnSpec); }
/** * Adds a fixed size component with narrow margin. Unlike the gridded * components, this component keeps its individual preferred dimension. * * @param component the component to add */ public void addFixed(JComponent component) { component.putClientProperty(NARROW_KEY, Boolean.TRUE); getLayout().appendColumn(FormFactory.PREF_COLSPEC); add(component); nextColumn(); }
/** * Adds a button or other component that grows if the container grows. * The component's initial size (before it grows) is specified * by the {@link LayoutStyle#getDefaultButtonWidth()}. * * @param component the component to add */ public void addGrowing(JComponent component) { getLayout().appendColumn(FormFactory.GROWING_BUTTON_COLSPEC); component.putClientProperty(NARROW_KEY, Boolean.TRUE); 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 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 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 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 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; }
/** * 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(); }