Lines Matching defs:columns

70      * The number of columns in the <code>TextArea</code>.
80 int columns;
183 * rows and columns and the empty string as text.
190 * @param columns the number of columns
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.
211 * @param columns the number of columns
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
246 * @param columns the number of columns; if
247 * <code>columns</code> is less than <code>0</code>,
248 * <code>columns</code> is set to <code>0</code>
256 public TextArea(String text, int rows, int columns, int scrollbars)
261 this.columns = (columns >= 0) ? columns : 0;
427 * Returns the number of columns in this text area.
428 * @return the number of columns in the text area
433 return columns;
437 * Sets the number of columns for this text area.
438 * @param columns the number of columns
442 * supplied for <code>columns</code>
446 public void setColumns(int columns) {
447 int oldVal = this.columns;
448 if (columns < 0) {
449 throw new IllegalArgumentException("columns less than zero.");
451 if (columns != oldVal) {
452 this.columns = columns;
481 * number of rows and columns.
483 * @param columns the number of columns
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.
535 * @param columns the number of columns
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) :
612 ",columns=" + columns +
640 // Make sure the state we just read in for columns, rows,
642 if (columns < 0) {
643 columns = 0;