Package com.extjs.gxt.ui.client.widget.form

Examples of com.extjs.gxt.ui.client.widget.form.TextArea


        }
      }
    });
    serviceField.setValue(serviceDisco.getGateWays().get(0));

    msgField = new TextArea()
    msgField.setPreventScrollbars(true);
    msgField.setFieldLabel(JabberApp.getConstants().MSG());
    msgField.setHeight(100);
    //msgField.setHideLabel(true);
    fieldSet.add(msgField);
View Full Code Here


            textBox.getFocusSupport().setNextId(fbar.getId());
            fbar.getFocusSupport().setPreviousId(textBox.getId());
            fbar.getFocusSupport().setNextId(textBox.getId());
            icon = null;
          } else if (type == MessageBoxType.MULTIPROMPT) {
            textArea = new TextArea();
            textArea.getAriaSupport().setLabelledBy(getId() + "-content");
            textArea.setHeight(defaultTextHeight);
            dialog.setFocusWidget(textArea);
            textArea.render(contentEl, 2);
            textArea.getFocusSupport().setNextId(fbar.getId());
View Full Code Here

    devers.add("de");
    devers.add("vers");
    devers.setFieldLabel("De/Vers");
   
    formPanel.add(devers, new FormData(ANCHOR_SPEC));
    TextArea comment = new TextArea();
    comment.setName(LigTransfertppModel.COMMENTAIRES);
    formPanel.add(comment, new FormData(ANCHOR_SPEC));
    comment.setFieldLabel(messages.comment());
    add(formPanel);
    NumberField quantity = createIntegerField(null, true);
    quantity.setName(LigTransfertppModel.QUANTITY);
    formPanel.add(quantity, new FormData(ANCHOR_SPEC));
    quantity.setFieldLabel("Quantite");
View Full Code Here

    label1.setMaxLength(MAX_LENGTH_1);
    label1.setName(GestionDto.LABEL);
    formPanel.add(label1, new FormData(ANCHOR_SPEC));
    label1.setFieldLabel(messages.label());

    TextArea comment = new TextArea();
    comment.setName(GestionDto.COMMENT);
    formPanel.add(comment, new FormData(ANCHOR_SPEC));
    comment.setFieldLabel(messages.comment());

    NumberField amount1 = createNumberField(null);
    amount1.setName(GestionDto.AMOUNT);
    formPanel.add(amount1, new FormData(ANCHOR_SPEC));
    amount1.setFieldLabel(messages.amount());
View Full Code Here

    radioGroup2.add(radio4);
    radioGroup2.addPlugin(plugin);
    radioGroup2.setData("text", "Select you favorite fruit");
    simple.add(radioGroup2, formData);

    TextArea description = new TextArea();
    description.setPreventScrollbars(true);
    description.setFieldLabel("Description");
    simple.add(description, formData);

    Button b = new Button("Submit");
    simple.addButton(b);
    simple.addButton(new Button("Cancel"));
View Full Code Here

  column.setFixed(true);
  column.setSortable(false);
  column.setMenuDisabled(true);
  column.setResizable(false);

  TextArea comment = new TextArea();
  comment.setHeight(100);
  comment.setMaxLength(MAX_LENGTH_5);
  column.setEditor(new CellEditor(comment));
  column.setRenderer(createTextAreaRenderer());
  configs.add(column);
  ColumnModel cm = new ColumnModel(configs);
  storeLig = new GroupingStore<LigTransfertppModel>();
View Full Code Here

    cm.getColumn(2).setRenderer(createNumberRendererWithPermission(width2 - PADDING_2, role, user));
    NumberField numberField = createNumberField(null);
    cm.getColumn(2).setEditor(new CellEditor(numberField));

    cm.getColumn(3).setRenderer(textAreaRenderer);
    cm.getColumn(3).setEditor(new CellEditor(new TextArea()));

    ListStore<PenaltyDto> store = new ListStore<PenaltyDto>();
    penaltyGrid = new CustomEditorGrid<PenaltyDto>(store, cm);
    penaltyGrid.getView().setAutoFill(true);
    penaltyGrid.setHeight("210px");
View Full Code Here

    NumberField amount = createNumberField(messages.amount());
    amount.setName(PenaltyDto.AMOUNT);
    formPanel.add(amount, new FormData(ANCHOR_SPEC));

    TextArea comment = new TextArea();
    comment.setFieldLabel(messages.comment());
    comment.setName(PenaltyDto.COMMENT);
    formPanel.add(comment, new FormData(ANCHOR_SPEC));

    add(formPanel);

    PenaltyDto dataModel = new PenaltyDto();
View Full Code Here

    cpanel.setBodyStyleName("pad-text");
   
    final Html html = new Html();
    html.setStyleName("pad-text");

    final TextArea area = new TextArea();
    area.setSize(485, 150);
   
    toolBar = new ToolBar();
    toolBar.add(new Button("Apply Template", new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        String template = area.getValue();
        XTemplate tpl = XTemplate.create(template);
        tpl.overwrite(html.getElement(), Util.getJsObject(person, 3));
      }
    }));
    cpanel.setTopComponent(toolBar);
   
    StringBuilder sb = new StringBuilder();
    sb.append("<p>Name: {name}</p>\r\n");
    sb.append("<p>Company: {company}</p>\r\n");
    sb.append("<p>Location: {location}</p>\r\n");
    sb.append("<p>Salary: {income:currency}</p>\r\n");
    sb.append("<p>Kids:</p>\r\n");
    sb.append("<tpl for=\"kids\" if=\"name==\'Darrell Meyer\'\">\r\n");
    sb.append("<tpl if=\"age &gt; 1\"><p>{#}. {parent.name}\'s kid - {name} - {bday:date(\"M/d/yyyy\")}</p></tpl>");
    sb.append("</tpl>\r\n");
   

    area.setValue(sb.toString());
    cpanel.add(area);
    cpanel.add(html);

    vp.add(panel);
    vp.add(xpanel);
View Full Code Here

    form.setHeading("Status Toolbar");
    form.setSize(450, 300);
    form.setPadding(5);
   
    form.setBottomComponent(toolBar);
    TextArea textArea = new TextArea();
    textArea.setHideLabel(true);
    textArea.addListener(Events.OnKeyPress, new Listener<FieldEvent>() {

      public void handleEvent(FieldEvent be) {
        status.setBusy("writing...");
        TextArea t = (TextArea) be.getField();
        String value = t.getValue();
        int length = value != null ? value.length() : 0;
        charCount.setText(length + (length == 1 ? " Char" : " Chars"));

        if (value != null) {
          int wc = getWordCount(value);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.form.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.