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

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


    getElement().setId("notifications-body");
    Label notifyLabel = new Label ("Subscription notifications:");
    notifyLabel.setStyleName("portlet-form-field-label");
    add(notifyLabel);
   
      textArea = new TextArea();
      textArea.setCharacterWidth(50);
      textArea.setVisibleLines(50);
      add(textArea);
  }
View Full Code Here


        addAttribute( constants.Detail(),
                      details( body ) );
    }

    private Widget details(String body) {
        TextArea area = new TextArea();
        area.setStyleName( "editable-Surface" );
        area.setVisibleLines( 12 );
        area.setText( body );
        area.setWidth( "100%" );
        return area;
    }
View Full Code Here

    public DSLRuleEditor(RuleAsset asset) {

        RuleContentText cont = (RuleContentText) asset.getContent();

        this.data = cont;
        text = new TextArea();
        text.setWidth( "100%" );
        text.setVisibleLines( 16 );
        text.setText( data.content );

        SuggestionCompletionEngine eng = SuggestionCompletionCache.getInstance().getEngineFromCache( asset.getMetaData().getPackageName() );
View Full Code Here

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

        text = new TextArea();
        text.setWidth( "100%" );
        text.setVisibleLines( 16 );
        text.setText( data.content );

        text.setStyleName( "default-text-Area" );
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

        inputBox = new TextBox();
        inputBox.addStyleName("ResultBox");
        dockPanel.add(inputBox, DockPanel.NORTH);

        ticker = new TextArea();
        ticker.setSize("7em", "140px");

        MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
        oracle.add("Jill");
        oracle.add("Jeff");
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected Object createComponentInstance(Object parent, DomNode element)
    {
        TextArea tb = new TextArea();  
        DOM.setAttribute(tb.getElement(), "overflow", "visible");
        return tb;
    }
View Full Code Here

  }
 
  /** 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

        return true;
      }
    };
    popup.setText("Table of terms in CSV format");
   
    final TextArea textArea = popup.addTextArea(null);
    textArea.setReadOnly(true);
    textArea.setText(termTable.getCsv(null, ","));
   
    textArea.setSize("800", "270");

   
    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(10);
    popup.getDockPanel().add(vp, DockPanel.NORTH);
    vp.add(new HTML(
        "Select the separator character for your CSV formatted contents. "
        )
    );
   
    CellPanel separatorPanel = new SeparatorPanel() {
      public void onClick(Widget sender) {
        super.onClick(sender);
        textArea.setText(termTable.getCsv(null, getSelectedSeparator()));
      }
    };
    vp.add(separatorPanel);
   
    popup.center();
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.