/** * Looks up and returns the row specification of the current row. * * @return the row specification of the current row */ private RowSpec getCursorRowSpec() { return getLayout().getRowSpec(getRow()); }
/** * Dumps the layout's row specifications to the console. * * @param layout the <code>FormLayout</code> to inspect */ public static void dumpRowSpecs(FormLayout layout) { System.out.print("ROW SPECS: "); for (int row = 1; row <= layout.getRowCount(); row++) { RowSpec rowSpec = layout.getRowSpec(row); System.out.print(rowSpec.toShortString()); if (row < layout.getRowCount()) System.out.print(", "); } System.out.println(); }
/** * Looks up and answers the row specification of the current row. * * @return the row specification of the current row */ private RowSpec getCursorRowSpec() { return getLayout().getRowSpec(getRow()); }
/** * Looks up and returns the row specification of the current row. * * @return the row specification of the current row */ private RowSpec getCursorRowSpec() { return getLayout().getRowSpec(getRow()); }
/** * Looks up and returns the row specification of the current row. * * @return the row specification of the current row */ private RowSpec getCursorRowSpec() { return getLayout().getRowSpec(getRow()); }
/** * Looks up and answers the row specification of the current row. * * @return the row specification of the current row */ private RowSpec getCursorRowSpec() { return getLayout().getRowSpec(getRow()); }
/** * Dumps the layout's row specifications to the console. * * @param layout the {@code FormLayout} to inspect */ public static void dumpRowSpecs(FormLayout layout) { System.out.print("ROW SPECS: "); for (int row = 1; row <= layout.getRowCount(); row++) { RowSpec rowSpec = layout.getRowSpec(row); System.out.print(rowSpec.toShortString()); if (row < layout.getRowCount()) { System.out.print(", "); } } System.out.println(); }
/** * Dumps the layout's row specifications to the console. * * @param layout * the <code>FormLayout</code> to inspect */ public static void dumpRowSpecs(FormLayout layout) { System.out.print("ROW SPECS: "); for (int row = 1; row <= layout.getRowCount(); row++) { RowSpec rowSpec = layout.getRowSpec(row); System.out.print(rowSpec.toShortString()); if (row < layout.getRowCount()) System.out.print(", "); } System.out.println(); }
/** * Returns the row spec for the specified row. * * @param row * the 1-based row * @return the RowSpec for the given row. */ public RowSpec getRowSpec(int row) { FormUtils.safeAssert(row >= 1 && row <= getRowCount()); return m_formlayout.getRowSpec(row); }
if (vAlign == DEFAULT && layout != null) { buffer.append('='); RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; buffer.append(concreteAlignment(vAlign, rowSpec).abbreviation());
buffer.append('='); RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; buffer.append(concreteAlignment(vAlign, rowSpec).abbreviation());
buffer.append('='); RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; buffer.append(concreteAlignment(vAlign, rowSpec).abbreviation());
rowSpecs[row - 1] = layout.getRowSpec(row);
FormLayout.Measure prefWidthMeasure, FormLayout.Measure prefHeightMeasure) { ColumnSpec colSpec = gridWidth == 1 ? layout.getColumnSpec(gridX) : null; RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; Alignment concreteHAlign = concreteAlignment(this.hAlign, colSpec); Alignment concreteVAlign = concreteAlignment(this.vAlign, rowSpec);
FormLayout.Measure prefHeightMeasure) { ColumnSpec colSpec = gridWidth == 1 ? layout.getColumnSpec(gridX) : null; RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; Alignment concreteHAlign = concreteAlignment(this.hAlign, colSpec); Alignment concreteVAlign = concreteAlignment(this.vAlign, rowSpec);
FormLayout.Measure prefHeightMeasure) { ColumnSpec colSpec = gridWidth == 1 ? layout.getColumnSpec(gridX) : null; RowSpec rowSpec = gridHeight == 1 ? layout.getRowSpec(gridY) : null; Alignment concreteHAlign = concreteAlignment(this.hAlign, colSpec); Alignment concreteVAlign = concreteAlignment(this.vAlign, rowSpec);
public void actionPerformed(ActionEvent evt) { GridComponent gc = getCurrentEditor().getSelectedComponent(); if (gc != null) { GridView view = gc.getParentView(); if (view != null) { int row = gc.getRow(); // temporary dialog RowSpec oldspec = view.getFormLayout().getRowSpec(row); String newspec = javax.swing.JOptionPane.showInputDialog(m_frame, I18N.getLocalizedMessage("Row Spec:"), oldspec.toString()); if (newspec != null) { EditRowSpecCommand cmd = new EditRowSpecCommand(view.getParentForm(), row, new RowSpec(newspec), oldspec); CommandUtils.invoke(cmd, getCurrentEditor()); } } } } }
public void actionPerformed(ActionEvent evt) { GridComponent gc = getCurrentEditor().getSelectedComponent(); if (gc != null) { GridView view = gc.getParentView(); if (view != null) { int row = gc.getRow(); RowSpec oldspec = view.getFormLayout().getRowSpec(row); float resize_weight = m_growable ? 1.0f : 0.0f; RowSpec newspec = new RowSpec(RowSpec.FILL, oldspec.getSize(), resize_weight); EditRowSpecCommand cmd = new EditRowSpecCommand(view.getParentForm(), row, newspec, oldspec); CommandUtils.invoke(cmd, getCurrentEditor()); } } } }
public void actionPerformed(ActionEvent evt) { GridComponent gc = getCurrentEditor().getSelectedComponent(); if (gc != null) { GridView view = gc.getParentView(); if (view != null) { int row = gc.getRow(); RowSpec oldspec = view.getFormLayout().getRowSpec(row); RowSpec newspec = new RowSpec(oldspec.getDefaultAlignment(), Sizes.PREFERRED, oldspec.getResizeWeight()); EditRowSpecCommand cmd = new EditRowSpecCommand(view.getParentForm(), row, newspec, oldspec); CommandUtils.invoke(cmd, getCurrentEditor()); } } } }
row_cache.put(irow, new FillMarker(bm, formlayout.getRowSpec(irow.intValue()))); row_cache.put(irow, new FillMarker(bm, formlayout.getRowSpec(irow.intValue())));