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

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


  }
 
  /** convenience method */
  public TextArea addTextArea(TextArea ta) {
    if ( ta == null ) {
      ta = new TextArea();
    }
    this.ta = ta;
    ta.setSize("720", "450");
    ta.setReadOnly(true);
    dockPanel.add(ta, DockPanel.CENTER);
View Full Code Here


     * @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(3);
        setRequired(required);
    }

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

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

    TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
    tabPanel.setAnimationDuration(1000);
    tabPanel.getElement().getStyle().setMarginBottom(10.0, Unit.PX);
   
    SimplePanel rawDataPanel = new SimplePanel();
    TextArea rawData = new TextArea();
    rawData.setText("The raw XML data will display here.");
    rawDataPanel.add(rawData);
    tabPanel.add(rawDataPanel, "Raw XML");
   
    tabPanel.add(new SimplePanel(), "Interactive data");
    //decorPanel.add(tabPanel);
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

            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

            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

    panel.add(optionsPanel);

    VerticalPanel rhs = new VerticalPanel();
    rhs.add(new HTML("XML to insert at current cursor location.<br/>" +
        "Ensure there is no extra whitespace anywhere between your tags!"));
    final TextArea contentInput = new TextArea();
    contentInput.setVisibleLines(10);
    contentInput.setCharacterWidth(40);
    rhs.add(contentInput);
    final Label errorLabel = new Label("");
    Button insertXmlButton = new Button("Insert");
    insertXmlButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        editor.focus(true);
        ContentRange selection = editor.getSelectionHelper().getOrderedSelectionPoints();
        if (selection == null) {
          errorLabel.setText("Don't know where to insert this");
          return;
        }

        XmlStringBuilder xml;
        try {
           xml = XmlStringBuilder.innerXml(DocProviders.POJO.parse(contentInput.getText()));
        } catch (RuntimeException e) {
          errorLabel.setText("Ill formed XML");
          return;
        }
View Full Code Here

    RootPanel.get().add(harness, 0, 0);
    return harness;
  }

  void initContentText() {
    contentBox = new TextArea();
    contentBox.getElement().setId("content-box");
  }
View Full Code Here

        eventTestLog.setInnerHTML("");
      }
    });
    clearButton.getElement().setId(TestConstants.CLEAR_EVENT_LOG);
    FlowPanel eventMain = new FlowPanel();
    TextArea eventText = new TextArea();
    eventText.getElement().setId(TestConstants.EVENT_INPUT);
    eventTestLog.setId(TestConstants.EVENT_SIGNAL_LOG);
    eventTestLog.getStyle().setBorderColor("black");
    eventTestLog.getStyle().setBorderWidth(1, Unit.PX);
    eventTestLog.getStyle().setBorderStyle(BorderStyle.SOLID);
    for (String event : new String[] {"keydown", "keypress", "keyup"}) {
      DomHelper.registerEventHandler(eventText.getElement(), event, new JavaScriptEventListener() {
        public void onJavaScriptEvent(String name, Event event) {
          SignalEvent signal = SignalEventImpl.create(event, true);
          if (signal == null) {
            return;
          }
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.