/** * 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); }