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.

ITextArea.java 696B

123456789101112131415161718192021222324252627
  1. package com.itmill.toolkit.terminal.gwt.client.ui;
  2. import com.google.gwt.user.client.DOM;
  3. import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
  4. import com.itmill.toolkit.terminal.gwt.client.UIDL;
  5. /**
  6. * This class represents a multiline textfield (textarea).
  7. *
  8. * @author IT Mill Ltd.
  9. *
  10. */
  11. public class ITextArea extends ITextField {
  12. public ITextArea() {
  13. super(DOM.createTextArea());
  14. }
  15. public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
  16. // Call parent renderer explicitly
  17. super.updateFromUIDL(uidl, client);
  18. if (uidl.hasAttribute("rows"))
  19. setRows(new Integer(uidl.getStringAttribute("rows")).intValue());
  20. }
  21. }