/** * Ensures that we have a gap row before the next component row. * Checks if the current row is the given <code>RowSpec</code> * and appends this row spec if necessary. * * @param gapRowSpec the row specification to check for */ private void ensureHasGapRow(RowSpec gapRowSpec) { if ((getRow() == 1) || (getRow() <= getRowCount())) return; if (getRow() <= getRowCount()) { RowSpec rowSpec = getCursorRowSpec(); if ((rowSpec == gapRowSpec)) return; } appendRow(gapRowSpec); nextLine(); }
/** * 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()); }
/** * Ensures that we have a gap row before the next component row. Checks if * the current row is the given <code>RowSpec</code> and appends this row * spec if necessary. * * @param gapRowSpec * the row specification to check for */ private void ensureHasGapRow(RowSpec gapRowSpec) { if ((getRow() == 1) || (getRow() <= getRowCount())) return; if (getRow() <= getRowCount()) { RowSpec rowSpec = getCursorRowSpec(); if ((rowSpec == gapRowSpec)) return; } appendRow(gapRowSpec); nextLine(); }
/** * 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()); }
/** * Ensures that we have a gap row before the next component row. * Checks if the current row is the given {@code RowSpec} * and appends this row spec if necessary. * * @param gapRowSpec the row specification to check for */ private void ensureHasGapRow(RowSpec gapRowSpec) { if (getRow() == 1 || getRow() <= getRowCount()) { return; } if (getRow() <= getRowCount()) { RowSpec rowSpec = getCursorRowSpec(); if (rowSpec == gapRowSpec) { return; } } appendRow(gapRowSpec); nextLine(); }
/** * 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()); }
/** * Ensures that the form has a component row. Adds a component row if the * cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) return; appendRow(FormFactory.PREF_ROWSPEC); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } }
builder.add(progressBar, cc.xyw(1, builder.getRow(), 3));
/** * Ensures that the form has a component row. Adds a component row * if the cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) { return; } appendRow(getDefaultRowSpec()); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } }