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

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


    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


    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());

    // Add an item with basic elements inside of it
    {
      final TextBox textBox = new TextBox();
      Hyperlink link = new Hyperlink("change focus", "blah");
View Full Code Here

        scrollPanel = new ScrollPanel();
        scrollPanel.scrollToBottom();
        flexTable.setWidget(row, col, scrollPanel);
        scrollPanel.setWidth("100%");
       
        textArea = new TextArea();
        scrollPanel.setWidget(textArea);
        textArea.setSize("99%", "400px");
        flexTable.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);
        flexTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
    }
View Full Code Here

    {
       if (appScreen == null)
       {
           return;
       }
       TextArea logTextArea = appScreen.getTextArea();
       Date d = new Date();
       String t = d.toString() + ": " + msg;
       int cW = logTextArea.getCharacterWidth();
       String currentText = logTextArea.getText();
       if (currentText.length() > 0)
       {
           logTextArea.setText(currentText + "\n" + t);
       }
       else
       {
           logTextArea.setText(t);
          
       }
       appScreen.getScrollPanel().scrollToBottom();
       Log.debug(msg);
    }
View Full Code Here

    customerNameField.setHeight("100%");
   
    Label lblAddress = new Label("Address");
    grid.setWidget(1, 0, lblAddress);
   
    addressField = new TextArea();
    this.addressField.setEnabled(false);
    this.addressField.setReadOnly(true);
    grid.setWidget(1, 1, addressField);
    addressField.setSize("170px", "60px");
   
View Full Code Here

    verticalPanel.add(dateBox);
   
    ListBox comboBox = new ListBox();
    verticalPanel.add(comboBox);
   
    TextArea textArea = new TextArea();
    verticalPanel.add(textArea);
    getFlexCellFormatter().setColSpan(1, 0, 3);
    getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
   
    tabPanel.selectTab(1);
View Full Code Here

    public TextAreaRenderer(String[] state, int row, Rydia.ChangeListener changeListener) {
        super(state, row, changeListener);
    }

    public Widget getColumn2() {
        final TextArea ta =  new TextArea();
        ta.setEnabled(isEnabled());
        ta.setText(state[ANSWER]);
        ta.addChangeListener(new ChangeListener() {
            public void onChange(Widget sender) {
                reactToChange(ta.getText());
            }
        });
        ta.addKeyboardListener(new DelayedKeyboardListener(new TimerListener() {
            public void onTimeUp() {
                reactToChange(ta.getText());
            }
        }));
        ta.setVisibleLines(Integer.valueOf(state[ROWS]).intValue());

        return ta;
    }
View Full Code Here

  private TextBox messageBox;
  private Button sendButton;
  private String channelKey;

  public ChatWidget() {
    chat = new TextArea();
    chat.setWidth("400px");
    chat.setHeight("300px");
    messageBox = new TextBox();
    messageBox.addKeyDownHandler(new KeyDownHandler() {
View Full Code Here

  @Override
  public void gwtSetUp() {
    div = new HTML();
    RootPanel.get().add(div);

    textArea1 = new TextArea();
    RootPanel.get().add(textArea1);

    textArea2 = new TextArea();
    RootPanel.get().add(textArea2);
  }
View Full Code Here

  }

  private InfoWindowContent newLocationCreateForm(final LatLng point,
      final LocationHandler handler, final InfoWindow info) {
    final TextBox titleBox = new TextBox();
    final TextArea descriptionBox = new TextArea();
    Button saveButton = new Button("Save");
    saveButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        titleBox.setReadOnly(true);
        descriptionBox.setReadOnly(true);
        Location loc = Location.newInstance();
        loc.setTitle(titleBox.getText());
        loc.setDescription(descriptionBox.getText());
        loc.setLatitude(point.getLatitude());
        loc.setLongitude(point.getLongitude());
        loc.setMilis(Long.toString(new Date().getTime()));
        handler.handle(loc);
        info.close();
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.