/** * Creates a textarea with the specified minimum and maximum number of rows. * * @param minRows The minimum number of rows that this textarea can have. * @param maxRows The maximum number of rows that this textarea can have. */ public AutoResizingTextArea(int minRows, int maxRows) { super(); setMinRows(minRows); setMaxRows(maxRows); setRows(minRows); }
/** * 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())); }
/** * 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())); }