/** * Sets the text shown above the right column. * * @param rightColumnCaption * The text to show */ public void setRightColumnCaption(String rightColumnCaption) { this.rightColumnCaption = rightColumnCaption; markAsDirty(); }
/** * Sets the text shown above the left column. * * @param leftColumnCaption * The text to show */ public void setLeftColumnCaption(String leftColumnCaption) { this.leftColumnCaption = leftColumnCaption; markAsDirty(); }
/** * Sets the number of rows in the editor. If the number of rows is set to 0, * the actual number of displayed rows is determined implicitly by the * adapter. * <p> * If a height if set (using {@link #setHeight(String)} or * {@link #setHeight(float, int)}) it overrides the number of rows. Leave * the height undefined to use this method. This is the opposite of how * {@link #setColumns(int)} work. * * * @param rows * the number of rows to set. */ public void setRows(int rows) { if (rows < 0) { rows = 0; } if (this.rows != rows) { this.rows = rows; markAsDirty(); } }
/** * Sets the width of the component so that it displays approximately the * given number of letters in each of the two selects. * <p> * Calling {@code setColumns(10);} is roughly equivalent to calling * {@code setWidth((10*2+4)+"10em");} * </p> * * @deprecated As of 7.0. "Columns" does not reflect the exact number of * characters that will be displayed. It is better to use * setWidth together with "em" to control the width of the * field. * @param columns * the number of columns to set. */ @Deprecated public void setColumns(int columns) { if (columns < 0) { columns = 0; } if (this.columns != columns) { this.columns = columns; markAsDirty(); } }