You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TextAreaState.java 713B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.shared.ui.textarea;
  5. import com.vaadin.shared.ui.textfield.AbstractTextFieldState;
  6. public class TextAreaState extends AbstractTextFieldState {
  7. /**
  8. * Number of visible rows in the text area. The default is 5.
  9. */
  10. private int rows = 5;
  11. /**
  12. * Tells if word-wrapping should be used in the text area.
  13. */
  14. private boolean wordwrap = true;
  15. public int getRows() {
  16. return rows;
  17. }
  18. public void setRows(int rows) {
  19. this.rows = rows;
  20. }
  21. public boolean isWordwrap() {
  22. return wordwrap;
  23. }
  24. public void setWordwrap(boolean wordwrap) {
  25. this.wordwrap = wordwrap;
  26. }
  27. }