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

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


     * @param title The displayed title for the item.
     * @param displayOnly If true, never allow editing.
     */
    public ListItem(String name, String title, boolean displayOnly) {
        super(name, title);
        this.textArea = new TextArea();
        this.textArea.setTabIndex(0);

        this.textArea.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
View Full Code Here


        setup();
        setRequired(required);
    }

    private void setup() {
        textArea = new TextArea();
        textArea.setName(name);
        textArea.setTitle(title);
        textArea.setTabIndex(0);

        valueChangeHandler = new ValueChangeHandler<String>() {
View Full Code Here

        setup();
        setRequired(required);
    }

    private void setup() {
        textArea = new TextArea();
        textArea.setName(name);
        textArea.setTitle(title);
        textArea.setTabIndex(0);

        valueChangeHandler = new ValueChangeHandler<String>() {
View Full Code Here

        dialog.setPixelSize(320, 240);
        dialog.setModal(true);
        dialog.setAutoHideEnabled(true);

        VerticalPanel panel = new VerticalPanel();
        final TextArea text = new TextArea();
        panel.add(text);
        panel.add(new Button("Done", new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                dialog.hide();
            }
        }));

        dialog.setWidget(panel);

        dialog.addCloseHandler(new CloseHandler<PopupPanel>() {
            @Override
            public void onClose(CloseEvent<PopupPanel> popupPanelCloseEvent) {
                callback.onSuccess(text.getText());
            }
        });

        dialog.center();
        Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
            @Override
            public void execute() {
                text.setFocus(true);
            }
        });
    }
View Full Code Here

            public void onClose(CloseEvent<PopupPanel> event) {

            }
        });

        TextArea textArea = new TextArea();
        textArea.setStyleName("fill-layout");
        textArea.setText(json);

        window.setWidget(textArea);

        window.setGlassEnabled(true);
        window.center();
View Full Code Here

      //UrlBuilder will encode spaces as '+' which is a valid special character so we replace all spaces with '%20'
      builder.setParameter( "name", getLabelText().replaceAll( "\\s", "%20" ) );
      //the startup string is already encoded with ':' being replaced with '\t' and then encoded again...
      builder.setParameter( "startup-url", startup );

      final TextArea urlbox = new TextArea();
      //encode any space characters
      urlbox.setText( builder.buildString() );
      urlbox.setReadOnly( true );
      urlbox.setVisibleLines( 3 );
      dialogBox.setContent( urlbox );
      urlbox.setHeight( "80px" );
      urlbox.setWidth( "600px" );
      urlbox.addClickHandler( new ClickHandler() {
        public void onClick( ClickEvent event ) {
          urlbox.selectAll();
        }
      } );
      dialogBox.center();
      urlbox.selectAll();
    }
  }
View Full Code Here

        }
      }
    });

    // Let's make an 80x50 text area to go along with the other two.
    TextArea ta = new TextArea();
    ta.setCharacterWidth(80);
    ta.setVisibleLines(50);

    // Add them to the root panel.
    VerticalPanel panel = new VerticalPanel();
    panel.add(tb);
    panel.add(ptb);
View Full Code Here

            public void onClose(CloseEvent<PopupPanel> event) {

            }
        });

        TextArea textArea = new TextArea();
        textArea.setStyleName("fill-layout");
        textArea.setText(json);

        window.setWidget(textArea);

        window.setGlassEnabled(true);
        window.center();
View Full Code Here

      HTML label = new HTML("Press " + cmdText +
                            " to copy the key to the clipboard");
      label.addStyleName(RES.styles().viewPublicKeyLabel());
      panel.add(label);
     
      textArea_ = new TextArea();
      textArea_.setReadOnly(true);
      textArea_.setText(publicKey_);
      textArea_.addStyleName(RES.styles().viewPublicKeyContent());
      textArea_.setSize("400px", "250px");
      textArea_.getElement().setAttribute("spellcheck", "false");
View Full Code Here

  /*
   * Constructors
   */

  public MultiText() {
    this.textarea = new TextArea();

    initWidget(this.textarea);

    setStyleName("claymus-gwt-MultiText");
  }
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.