Example usage for com.vaadin.ui TextArea getRows

List of usage examples for com.vaadin.ui TextArea getRows

Introduction

In this page you can find the example usage for com.vaadin.ui TextArea getRows.

Prototype

public int getRows() 

Source Link

Document

Gets the number of rows in the text area.

Usage

From source file:org.opencms.ui.components.extensions.CmsAutoGrowingTextArea.java

License:Open Source License

/**
 * Constructor.<p>//  ww w . jav  a  2s . c  om
 *
 * @param textArea the text area to extend
 * @param maxRows the maximal number of rows (<1 for unlimited)
 */
public CmsAutoGrowingTextArea(TextArea textArea, int maxRows) {
    super.extend(textArea);
    getState().setMaxRows(maxRows);
    getState().setMinRows(textArea.getRows());
}