aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/shared/ui/textarea/TextAreaState.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/shared/ui/textarea/TextAreaState.java')
-rw-r--r--src/com/vaadin/shared/ui/textarea/TextAreaState.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/vaadin/shared/ui/textarea/TextAreaState.java b/src/com/vaadin/shared/ui/textarea/TextAreaState.java
new file mode 100644
index 0000000000..3b3bd42f87
--- /dev/null
+++ b/src/com/vaadin/shared/ui/textarea/TextAreaState.java
@@ -0,0 +1,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;
+ }
+
+}