Lines Matching defs:rows

59      * The number of rows in the <code>TextArea</code>.
67 int rows;
183 * rows and columns and the empty string as text.
189 * @param rows the number of rows
195 public TextArea(int rows, int columns) throws HeadlessException {
196 this("", rows, columns, SCROLLBARS_BOTH);
201 * and with the specified number of rows and columns.
210 * @param rows the number of rows
216 public TextArea(String text, int rows, int columns)
218 this(text, rows, columns, SCROLLBARS_BOTH);
223 * and with the rows, columns, and scroll bar visibility
243 * @param rows the number of rows; if
244 * <code>rows</code> is less than <code>0</code>,
245 * <code>rows</code> is set to <code>0</code>
256 public TextArea(String text, int rows, int columns, int scrollbars)
260 this.rows = (rows >= 0) ? rows : 0;
395 * Returns the number of rows in the text area.
396 * @return the number of rows in the text area
402 return rows;
406 * Sets the number of rows for this text area.
407 * @param rows the number of rows
411 * supplied for <code>rows</code>
415 public void setRows(int rows) {
416 int oldVal = this.rows;
417 if (rows < 0) {
418 throw new IllegalArgumentException("rows less than zero.");
420 if (rows != oldVal) {
421 this.rows = rows;
481 * number of rows and columns.
482 * @param rows the number of rows
486 * number of rows and columns
490 public Dimension getPreferredSize(int rows, int columns) {
491 return preferredSize(rows, columns);
499 public Dimension preferredSize(int rows, int columns) {
503 peer.getPreferredSize(rows, columns) :
525 return ((rows > 0) && (columns > 0)) ?
526 preferredSize(rows, columns) :
533 * number of rows and columns.
534 * @param rows the number of rows
538 * number of rows and columns
542 public Dimension getMinimumSize(int rows, int columns) {
543 return minimumSize(rows, columns);
551 public Dimension minimumSize(int rows, int columns) {
555 peer.getMinimumSize(rows, columns) :
577 return ((rows > 0) && (columns > 0)) ?
578 minimumSize(rows, columns) :
611 return super.paramString() + ",rows=" + rows +
640 // Make sure the state we just read in for columns, rows,
645 if (rows < 0) {
646 rows = 0;