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

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


    private void textEditorVersion() {
        layout.clear();

        VerticalPanel main = new VerticalPanel();

        final TextArea area = new TextArea();
        if ( isHistoricalReadOnly ) {
            area.setEnabled( false );
        }
        area.setWidth( "100%" );
        area.setVisibleLines( 8 );

        area.setCharacterWidth( 100 );

        area.setText( this.conf.getHeader() );
        area.addChangeHandler( new ChangeHandler() {
            public void onChange(ChangeEvent event) {
                conf.setHeader( area.getText() );
            }
        } );

        main.add( area );
View Full Code Here


        if ( data.content == null ) {
            data.content = "";
        }

        text = new TextArea();
        text.setWidth( "100%" );
        text.setVisibleLines( (visibleLines == -1) ? 16 : visibleLines );
        text.setText( data.content );

        text.getElement().setAttribute( "spellcheck",
View Full Code Here

        } );
    }

    private void showAddNewComment() {
        newCommentLayout.clear();
        final TextArea comment = new TextArea();
        comment.setWidth( "100%" );
        newCommentLayout.add( comment );

        Button ok = new Button( constants.OK() );
        Button cancel = new Button( constants.Cancel() );

        ok.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent sender) {
                sendNewComment( comment.getText() );
            }
        } );

        cancel.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent sender) {
                showNewCommentButton();
            }
        } );

        HorizontalPanel hp = new HorizontalPanel();
        hp.add( ok );
        hp.add( cancel );

        newCommentLayout.add( hp );

        comment.setFocus( true );
    }
View Full Code Here

    private Command   checkin;

    public CheckinPopup(String message) {
        setTitle( message );
        comment = new TextArea();
        comment.setWidth( "100%" );
        comment.setTitle( constants.AddAnOptionalCheckInComment() );

        save = new Button( constants.CheckIn() );
        addRow( comment );
View Full Code Here

        });
       
        layout.setWidget( 0,
                          0,
                          browser );
        text = new TextArea();
        text.setWidth( "100%" );
        text.setVisibleLines( (visibleLines == -1) ? 25 : visibleLines );
        text.setText( data.content );
        text.getElement().setAttribute( "spellcheck",
                                        "false" ); //NON-NLS
View Full Code Here

                        insertText(pasteValue, true);
                    }
                });

        layout.setWidget(0, 0, browser);
        text = new TextArea();
        text.setWidth("100%");
        text.setVisibleLines((visibleLines == -1) ? 25 : visibleLines);
        text.setText(data.content);
        text.getElement().setAttribute("spellcheck", "false"); // NON-NLS
View Full Code Here

   
    commentDeck = new DeckLayoutPanel();   

    // ----
    editPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));   
    textBox = new TextArea();
    textBox.setCharacterWidth(50);
    textBox.setVisibleLines(2);
    editPanel.add(textBox);
   
    editPanel.add(new Button("Save", new ClickHandler()
View Full Code Here

   
    // label
    HorizontalPanel textPanel = new HorizontalPanel();
    textPanel.add(new HTML(GuiFactory.strings.pasteUrisHere()));
   
    final TextArea uriTextArea = new TextArea();
    HTML demoLink = new HTML("<a href=\"#\"><span style=\"font-size:0.8em; padding-left:4em;\">" + GuiFactory.strings.loadDemos() + "</span></a>");
    demoLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        uriTextArea.setText(demoStrings);
      }
    });
    textPanel.add(demoLink);
    batchUriPanel.add(new HTML("&nbsp;"));
    batchUriPanel.add(textPanel);
   
    // text area       
    uriTextArea.setWidth(Math.floor(Window.getClientWidth() * 0.85) + "px");
    uriTextArea.setHeight("15em");
    batchUriPanel.add(uriTextArea);
       
    // ok button
    HorizontalPanel buttonPanel = new HorizontalPanel();
    Button okButton = new Button(GuiFactory.strings.ok());
    buttonPanel.add(okButton);
    okButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        // start analysis       
        dialogBox.hide();
        if (uriTextArea.getText().length() > 0) {
          HTML indicator = Indicator.getIndicator(GuiFactory.strings.analyzing());
          RootPanel.get().add(indicator);
          if (Window.confirm(GuiFactory.strings.reallyStartBatchAnalysis())) {
            processRequestStrings(uriTextArea.getText().trim());                  
          }
          RootPanel.get().remove(indicator);
        }
        GuiFactory.blockScreen(false);       
      }
View Full Code Here

  public static void show(final String wadlString) {
    final DialogBox dialog = new DialogBox();
    dialog.setText(GuiFactory.strings.wadlAcceptDialog());
   
    VerticalPanel acceptPanel = new VerticalPanel();     
    final TextArea wadlTextArea = new TextArea();
    wadlTextArea.setStyleName("restDescribe-wadlArea");
    wadlTextArea.setHeight(Math.floor(Window.getClientHeight() * 0.75) + "px");
    wadlTextArea.setWidth(Math.floor(Window.getClientWidth() * 0.9) + "px");
    wadlTextArea.setText(wadlString);   
    acceptPanel.add(wadlTextArea);   
   
    Button closeButton = new Button(GuiFactory.strings.close());
    closeButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
View Full Code Here

    uploadPanel.add(new HTML("<br />"));
    HorizontalPanel textPanel = new HorizontalPanel();
    uploadPanel.add(textPanel);   
    textPanel.add(new HTML(GuiFactory.strings.uploadWadlHere()));
      
    final TextArea wadlTextArea = new TextArea();   
    wadlTextArea.setStyleName("restDescribe-wadlArea");
    wadlTextArea.setHeight(Math.floor(Window.getClientHeight() * 0.75) + "px");
    wadlTextArea.setWidth(Math.floor(Window.getClientWidth() * 0.75) + "px");
   
    HTML demoLink = new HTML("<a href=\"#\"><span style=\"font-size:0.8em; padding-left:4em;\">" + GuiFactory.strings.loadWadl() + "</span></a>");
    demoLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        wadlTextArea.setText(deliciousWadl);
      }
    });
    textPanel.add(demoLink);
   
    uploadPanel.add(wadlTextArea);
       
    Button cancelButton = new Button(GuiFactory.strings.cancel());
    cancelButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        dialog.hide();
        GuiFactory.blockScreen(false);
      }
    });
   
    Button okButton = new Button(GuiFactory.strings.ok());
    okButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        dialog.setVisible(false);         
        if (wadlTextArea.getText().length() > 0) {         
          WadlParser wadlParser = new WadlParser();
          wadlParser.parse(wadlTextArea.getText());         
        }
        GuiFactory.blockScreen(false);
      }
    });
   
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.