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

Examples of com.extjs.gxt.ui.client.widget.layout.FormData


    final TextField<String> devis = new CustomTextField<String>();
    devis.setName(GestionDto.DEVIS);
    devis.setFieldLabel(messages.devis());
    devis.setMaxLength(60);
    formPanel.add(devis, new FormData(ANCHOR_SPEC));

    status = new CustomComboBox<SimpleDto>();
    status.setStore(new ListStore());
    status.setName(GestionDto.STATUT);
    status.setFieldLabel(messages.status());
    loadStatusData();
    formPanel.add(status, new FormData(ANCHOR_SPEC));

    TextField<String> label1 = new CustomTextField<String>();
    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());
    add(formPanel);

    marche = new CustomComboBox<SimpleDto>();
    marche.setName(GestionDto.MARCHE);
    marche.setStore(new ListStore());
    marche.setFieldLabel(messages.marche());
    loadMarcheData();
    formPanel.add(marche, new FormData(ANCHOR_SPEC));

    NumberField avenants = createNumberField(null);
    avenants.setName(GestionDto.TRAITE);
    formPanel.add(avenants, new FormData(ANCHOR_SPEC));
    avenants.setFieldLabel(messages.avenants());

    NumberField arrete = createNumberField(null);
    arrete.setName(GestionDto.ARRETE);
    formPanel.add(arrete, new FormData(ANCHOR_SPEC));
    arrete.setFieldLabel(messages.arrete());

    NumberField nonArrete = createNumberField(null);
    nonArrete.setName(GestionDto.NON_ARRETE);
    formPanel.add(nonArrete, new FormData(ANCHOR_SPEC));
    nonArrete.setFieldLabel(messages.nonArrete());

    NumberField provision = createNumberField(null);
    provision.setName(GestionDto.PROVISION);
    formPanel.add(provision, new FormData(ANCHOR_SPEC));
    provision.setFieldLabel(messages.provision());

    NumberField devisRefuse = createNumberField(null);
    devisRefuse.setName(GestionDto.DEVIS_REFUSE);
    formPanel.add(devisRefuse, new FormData(ANCHOR_SPEC));
    devisRefuse.setFieldLabel(messages.devisRefuse());

    NumberField reelActivite = createNumberField(null);
    reelActivite.setName(GestionDto.REEL_ACTIVITIVE);
    formPanel.add(reelActivite, new FormData(ANCHOR_SPEC));
    reelActivite.setFieldLabel(messages.reelActivitive());
    reelActivite.setMinValue(0);
    reelActivite.setMaxValue(100);

    type = new CustomComboBox<SimpleDto>();
    type.setStore(new ListStore());
    type.setName(GestionDto.TYPE);
    type.setFieldLabel(messages.type());
    loadTypeData();
    formPanel.add(type, new FormData(ANCHOR_SPEC));

    TextField<String> label2 = new CustomTextField<String>();
    label2.setMaxLength(MAX_LENGTH_1);
    label2.setName(GestionDto.LABEL2);
    formPanel.add(label2, new FormData(ANCHOR_SPEC));
    label2.setFieldLabel(messages.label());

    NumberField amount2 = createNumberField(null);
    amount2.setName(GestionDto.AMOUNT2);
    formPanel.add(amount2, new FormData(ANCHOR_SPEC));
    amount2.setFieldLabel(messages.amount());

    final GestionDto dataModel = new GestionDto();
    dataModel.addChangeListener(new ChangeListener() {
      @Override
View Full Code Here


  private FormData formData;

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    formData = new FormData("-20");
    vp = new VerticalPanel();
    vp.setSpacing(10);
    createForm1();
    add(vp);
  }
View Full Code Here

    panel.setFrame(true);
    panel.setHeading("DualListField Example");

    TextField<String> name = new TextField<String>();
    name.setFieldLabel("Name");
    panel.add(name, new FormData("98%"));

    final DualListField<Stock> lists = new DualListField<Stock>();
    lists.setMode(Mode.INSERT);
    lists.setFieldLabel("Stocks");

    ListField<Stock> from = lists.getFromList();
    from.setDisplayField("name");
    ListStore<Stock> store = new ListStore<Stock>();
    store.add(TestData.getShortStocks());
    from.setStore(store);
    ListField<Stock> to = lists.getToList();
    to.setDisplayField("name");
    store = new ListStore<Stock>();
    to.setStore(store);

    panel.add(lists, new FormData("98%"));

    TextField<String> email = new TextField<String>();
    email.setFieldLabel("Email");
    panel.add(email, new FormData("98%"));

    panel.addButton(new Button("Cancel"));
    panel.addButton(new Button("Save"));

    panel.setWidth(550);
View Full Code Here

    tl10.setWidth("100%");
    setLayout(tl10);
    lc1.setLayout(new RowLayout(Orientation.VERTICAL));
    comment.setHeight(height);
    comment.setFieldLabel(messages.comment());
    layoutContainer.add(comment, new FormData("390%"));
    lc1.add(layoutContainer);
    lc1.add(new HTML("<br>"));
    LayoutContainer layoutContainer_1 = new LayoutContainer();
    layoutContainer_1.setWidth("100%");
    layoutContainer_1.setHeight(123);
    setDefaultBackgroundColor(layoutContainer_1);
    FormLayout fl_layoutContainer_1 = new FormLayout();
    fl_layoutContainer_1.setLabelAlign(LabelAlign.TOP);
    layoutContainer_1.setLayout(fl_layoutContainer_1);
    // internalComment.setWidth("120%");
    internalComment.setName(FicheStDto.ACPT_COMMENTAIRES_INTERNES);
    internalComment.setId("ACCOMPTESPANEL_INTERNAL_COMMENT");
    internalComment.setHeight(height);
    internalComment.setFieldLabel(messages.internalComment());
    layoutContainer_1.add(internalComment, new FormData("390%"));
    lc1.add(layoutContainer_1);

    formPanel.add(lc1);
    accomptesPanel3.add(formPanel);
    paymentFieldSet.add(accomptesPanel3);
View Full Code Here

    formPanel.setLayout(fl_formPanel);

    DateField date = new DateField();
    date.setName(PenaltyDto.DATE);
    date.setFieldLabel(messages.date());
    formPanel.add(date, new FormData(ANCHOR_SPEC));

    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();
    dataModel.initData();
View Full Code Here

        task.delay(1000);
      }

    });
    form.add(textArea, new FormData("100% 100%"));
    add(form);
  }
View Full Code Here

    panel.setPadding(5);
    panel.setHeaderVisible(false);

    TextField<String> field = new TextField<String>();
    field.setFieldLabel("Sent To");
    panel.add(field, new FormData("100%"));

    field = new TextField<String>();
    field.setFieldLabel("Subject");
    panel.add(field, new FormData("100%"));

    HtmlEditor html = new HtmlEditor();
    html.setHideLabel(true);
    panel.add(html, new FormData("100% -53"));

    w.addButton(new Button("Send"));
    w.addButton(new Button("Cancel"));
    w.add(panel);
View Full Code Here

  private FormData formData;

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    formData = new FormData("-20");
    vp = new VerticalPanel();
    vp.setSpacing(10);
    createForm1();
    createForm2();
    add(vp);
View Full Code Here

    createTabForm();
    add(vp);
  }

  private void createTabForm() {
    FormData formData = new FormData("100%");
    FormPanel panel = new FormPanel();
    panel.setBodyStyleName("example-bg");
    panel.setPadding(0);
    panel.setFrame(false);
    panel.setHeaderVisible(false);
View Full Code Here

    vp.add(panel);
  }

  private void createColumnForm() {
    FormData formData = new FormData("100%");
    FormPanel panel = new FormPanel();
    panel.setFrame(true);
    panel.setIcon(Resources.ICONS.form());
    panel.setHeading("FormPanel");
    panel.setSize(600, -1);
    panel.setLabelAlign(LabelAlign.TOP);
    panel.setButtonAlign(HorizontalAlignment.CENTER);

    LayoutContainer main = new LayoutContainer();
    main.setLayout(new ColumnLayout());

    LayoutContainer left = new LayoutContainer();
    left.setStyleAttribute("paddingRight", "10px");
    FormLayout layout = new FormLayout();
    layout.setLabelAlign(LabelAlign.TOP);
    left.setLayout(layout);

    TextField<String> first = new TextField<String>();
    first.setFieldLabel("First Name");
    left.add(first, formData);

    TextField<String> company = new TextField<String>();
    company.setFieldLabel("Company");
    left.add(company, formData);

    DateField birthday = new DateField();
    birthday.setFieldLabel("Birthday");
    left.add(birthday, formData);

    LayoutContainer right = new LayoutContainer();
    right.setStyleAttribute("paddingLeft", "10px");
    layout = new FormLayout();
    layout.setLabelAlign(LabelAlign.TOP);
    right.setLayout(layout);

    TextField<String> last = new TextField<String>();
    last.setFieldLabel("Last");
    right.add(last, formData);

    TextField<String> email = new TextField<String>();
    email.setFieldLabel("Email");
    right.add(email, formData);

    Radio radio1 = new Radio();
    radio1.setBoxLabel("Yes");

    Radio radio2 = new Radio();
    radio2.setBoxLabel("No");

    RadioGroup group = new RadioGroup();
    group.setFieldLabel("Ext GWT User");
    group.add(radio1);
    group.add(radio2);
    right.add(group);

    main.add(left, new ColumnData(.5));
    main.add(right, new ColumnData(.5));

    panel.add(main, new FormData("100%"));

    HtmlEditor a = new HtmlEditor();
    a.setFieldLabel("Comment");
    a.setHeight(200);
    panel.add(a, new FormData("100%"));

    panel.addButton(new Button("Cancel"));
    panel.addButton(new Button("Submit"));

    vp.add(panel);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.FormData

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.