/** * Appends the given row specification to the builder's layout. * * @param rowSpec the row specification object to append */ protected final void appendRow(RowSpec rowSpec) { getLayout().appendRow(rowSpec); }
/** * Appends the given row specification to the builder's layout. * * @param rowSpec the row specification object to append */ protected final void appendRow(RowSpec rowSpec) { getLayout().appendRow(rowSpec); }
/** * Appends the given row specification to the builder's layout. * * @param rowSpec the row specification object to append * * @see #appendRow(String) */ public final void appendRow(RowSpec rowSpec) { getLayout().appendRow(rowSpec); }
/** * Appends the given row specification to the builder's layout. * * @param rowSpec * the row specification object to append * * @see #appendRow(String) */ public final void appendRow(RowSpec rowSpec) { getLayout().appendRow(rowSpec); }
/** * Appends the given row specification to the builder's layout. * * @param rowSpec the row specification object to append * * @see #appendRow(String) */ public final void appendRow(RowSpec rowSpec) { getLayout().appendRow(rowSpec); }
/** * Insert the specified row into the layout. This accomodates * for the appendColumn/insertColumn API weakness in FormLayout. */ private void insertRow(int index, RowSpec rowSpec) { if(index == formLayout.getRowCount()) formLayout.appendRow(rowSpec); else formLayout.insertRow(index + 1, rowSpec); }
/** * Insert the specified row into the layout. This accomodates * for the appendColumn/insertColumn API weakness in FormLayout. */ private void insertRow(int index, RowSpec rowSpec) { if(index == formLayout.getRowCount()) formLayout.appendRow(rowSpec); else formLayout.insertRow(index + 1, rowSpec); }
/** * Insert the specified row into the layout. This accomodates * for the appendColumn/insertColumn API weakness in FormLayout. */ private void insertRow(int index, RowSpec rowSpec) { if(index == formLayout.getRowCount()) formLayout.appendRow(rowSpec); else formLayout.insertRow(index + 1, rowSpec); }
private void addAddColorButton() { formlayout.appendRow(RowSpec.decode("CENTER:DEFAULT:NONE")); JButton addColor = new JButton(); addColor.addActionListener(new ColorAdder(0)); addColor.setName("addColor"); addColor.setFont(BUTTON_FONT); addColor.setText(ADD); panel.add(addColor, cc.xy(11, 1)); }
/** * Adds a strut of a specified size. * * @param size a constant that describes the gap */ public void addStrut(ConstantSize size) { getLayout().appendRow(new RowSpec(RowSpec.TOP, size, RowSpec.NO_GROW)); nextRow(); }
/** * Adds a fixed size component. * * @param component the component to add */ public void addFixed(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); add(component); nextRow(); }
/** * Adds a fixed size component. * * @param component * the component to add */ public void addFixed(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); add(component); nextRow(); }
/** * Adds a strut of a specified size. * * @param size * a constant that describes the gap */ public void addStrut(ConstantSize size) { getLayout().appendRow(new RowSpec(RowSpec.TOP, size, RowSpec.NO_GROW)); nextRow(); }
/** * Adds a fixed size component. * * @param component the component to add */ public void addFixed(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); add(component); nextRow(); }
/** * Adds a strut of a specified size. * * @param size a constant that describes the gap */ public void addStrut(ConstantSize size) { getLayout().appendRow(new RowSpec(RowSpec.TOP, size, FormSpec.NO_GROW)); nextRow(); }
/** * Adds a gridded component. * * @param component the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }
private void defineLayout () { String colSpec = Panel.makeColumns(3); FormLayout layout = new FormLayout(colSpec, ""); int visibleButtons = Math.min(constants.visibleButtons.getValue(), selector.buttons.size()); for (int i = 0; i < visibleButtons; i++) { if (i != 0) { layout.appendRow(FormSpecs.LINE_GAP_ROWSPEC); } layout.appendRow(FormSpecs.PREF_ROWSPEC); } PanelBuilder builder = new PanelBuilder(layout, getBody()); CellConstraints cst = new CellConstraints(); for (int i = 0; i < visibleButtons; i++) { int r = (2 * i) + 1; // -------------------------------- EvalButton evb = selector.buttons.get(i); builder.add(evb.grade, cst.xy(5, r)); builder.add(isActive ? evb.button : evb.field, cst.xyw(7, r, 5)); } }
/** * Adds a gridded component. * * @param component the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }
/** * Adds a gridded component. * * @param component * the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }