/** * Sets the number of visible rows. The row value will be forced to the boundaries of the range [minRows ... * maxRows] if it is outside that range. * * @param rows The number of rows to show */ @Override public void setRows(int rows) { int oldRow = super.getRows(); int newRow = clipRowCount(rows); super.setRows(newRow); numberOfRowsUpdated(oldRow, newRow); }
/** * Sets the maximum number of rows that will be displayed. * * @param maxRows The maximum number of rows. */ public void setMaxRows(int maxRows) { _maxRows = maxRows; setRows(clipRowCount(getRows())); }
/** * Sets the minimum number of rows that will be displayed * * @param minRows The minimum number of rows. */ public void setMinRows(int minRows) { _minRows = minRows; setRows(clipRowCount(getRows())); }