aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/shared/ui/textarea/TextAreaState.java
blob: 3b3bd42f8756354ebfd3aff11e8da49b1ee98ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.shared.ui.textarea;

import com.vaadin.shared.ui.textfield.AbstractTextFieldState;

public class TextAreaState extends AbstractTextFieldState {

    /**
     * Number of visible rows in the text area. The default is 5.
     */
    private int rows = 5;

    /**
     * Tells if word-wrapping should be used in the text area.
     */
    private boolean wordwrap = true;

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public boolean isWordwrap() {
        return wordwrap;
    }

    public void setWordwrap(boolean wordwrap) {
        this.wordwrap = wordwrap;
    }

}