Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.TextArea


    panel.add(getSubmitButton());
    initWidget(new ScrollPanel(panel));
  }

  private TextArea getTextBox() {
    final TextArea textArea = new TextArea();
    textArea.setText("Please enter your feedback:");
    textArea.setVisibleLines(10);
    textArea.setWidth("300px");
    return textArea;
  }
View Full Code Here


    return ((TextArea) w).getText();
  }

  @Override
  protected Widget editField() {
    return new TextArea();
  }
View Full Code Here

  /*
   * Constructors
   */

  public TextAreaFormField(String label, boolean required, String helpText, String... regex) {
    super(label, new TextArea(), required, helpText, regex);
    addStyleName("claymus-gwt-FormField-TextArea");
  }
View Full Code Here

* @author Uri Boness
*/
public class LongTextEditor extends AbstractFocusWidgetEditor<String, TextArea> {

    public LongTextEditor() {
        this(new TextArea());
    }
View Full Code Here

    public LongTextEditor(boolean enabled) {
        this("", enabled);
    }

    public LongTextEditor(String defaultText, boolean enabled) {
        this(new TextArea(), defaultText, enabled);
    }
View Full Code Here

        } else {
            RootPanel.get("t2").add(t2);
        }


        final TextArea ta1 = new TextArea();
        ta1.setWidth("100%");
        ta1.setVisibleLines(7);
        ta1.setText(t1.toString());
        RootPanel.get().add(ta1);

        final TextArea ta2 = new TextArea();
        ta2.setWidth("100%");
        ta2.setVisibleLines(7);
        ta2.setText(t2.toString());
        RootPanel.get().add(ta2);
    }
View Full Code Here

      assertEquals(textBox, editor.getTextBox());
    }

    // Use a text area
    {
      TextArea textArea = new TextArea();
      TextCellEditor editor = new TextCellEditor(textArea);
      assertEquals(textArea, editor.getTextBox());
    }

    // Use a password field
View Full Code Here

    TextBox textBox = new TextBox();
    TextCellEditor<Object> editor1 = new TextCellEditor<Object>(textBox);
    assertEquals(textBox, editor1.getTextBox());

    // Use a text area
    TextArea textArea = new TextArea();
    TextCellEditor<Object> editor2 = new TextCellEditor<Object>(textArea);
    assertEquals(textArea, editor2.getTextBox());

    // Use a password field
    PasswordTextBox passBox = new PasswordTextBox();
View Full Code Here

    ListBox lb = new ListBox();
    for (int i = 0; i < 100; i++) {
      lb.addItem(i + "");
    }
    item.addItem(lb);
    item.addItem(new TextArea());

    return t;
  }
View Full Code Here

    aXb.addItem("a grand child");
    FastTreeItem widgetBranch = a.addItem(new CheckBox("A checkbox child"));
    FastTreeItem textBoxParent = widgetBranch.addItem("A TextBox parent");
    textBoxParent.addItem(new TextBox());
    textBoxParent.addItem("and another one...");
    textBoxParent.addItem(new TextArea());

    ListBox lb = new ListBox();
    for (int i = 0; i < 100; i++) {
      lb.addItem(i + "");
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.TextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.