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

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


    horizontalPanelPassword.add(verticalPanel_3, td_verticalPanel_3);
    horizontalPanelPassword.setHeight(HORIZONTAL_PANEL_HEIGTH);
    mainLoginPanel.add(horizontalPanelPassword);
   
    Button btnIngresar = new Button("Ingresar");
    mainLoginPanel.add(btnIngresar, new FormData("100%"));
    btnIngresar.addSelectionListener(new SelectionListener<ButtonEvent>(){
      @Override
      public void componentSelected(ButtonEvent ce)
      {
        presionoEnter(ce);
View Full Code Here


    comment.setMaxLength(MAX_LENGTH_5);
    comment.setName(FicheStDto.AVCT_COMMENTAIRES);
    comment.setId("AVANCEMENTSPANEL_COMMENT");
    comment.setHeight("460px");
    comment.setFieldLabel(messages.comment2());
    formPanel.add(comment, new FormData("100%"));
    rightPanel.add(formPanel);
    layoutContainer_3.add(rightPanel, td_rightPanel);

    bus.addHandler(DeductionGridUpdateEvent.TYPE, new DeductionGridUpdateHandler() {
      @Override
View Full Code Here

    fl_layoutContainer_0.setLabelWidth(70);
    layoutContainer_0.setLayout(fl_layoutContainer_0);

    chantierId = new CustomTextField<String>();
    chantierId.hide();
    layoutContainer_0.add(chantierId, new FormData("100%"));

    chantierNameHidden = new CustomTextField<String>();
    chantierNameHidden.hide();
    layoutContainer_0.add(chantierNameHidden, new FormData("100%"));

    chantierName = new LabelField();
    chantierName.setFieldLabel(messages.chantier() + ":");
    layoutContainer_0.add(chantierName, new FormData("100%"));

    societe = new CustomTextField<String>();
    societe.setName(FicheStDto.SOCIETE);
    societe.setMaxLength(MAX_LENGTH_1);
    societe.addListener(Events.KeyUp, new KeyListener(){
      @Override
          public void handleEvent(ComponentEvent e) {
               bus.fireEvent(new SocieteEvent(societe.getValue()));
          }
    });
   
    societe.setId("INFORMATION_PANEL_SOCIETE_ID");
    societe.setAllowBlank(false);
    societe.setFieldLabel(messages.societe());
    layoutContainer_0.add(societe, new FormData("100%"));
    lc1.add(layoutContainer_0);
    layoutContainer_0.setWidth("300px");

    LayoutContainer layoutContainer_1 = new LayoutContainer();
    FormLayout fl_layoutContainer_1 = new FormLayout();
    fl_layoutContainer_1.setLabelWidth(90);
    layoutContainer_1.setLayout(fl_layoutContainer_1);

    lot = new CustomTextField<String>();
    lot.setId("INFORMATION_PANEL_LOT_ID");
    lot.setMaxLength(MAX_LENGTH_3);
    lot.setFieldLabel(messages.lot());
    lot.setAllowBlank(false);
    layoutContainer_1.add(lot, new FormData("100%"));

    initLotTypeData();

    lotType.setId("INFORMATION_PANEL_LOT_TYPE_ID");
    layoutContainer_1.add(lotType, new FormData("100%"));
    layoutContainer_1.setWidth("300px");
    lc1.add(layoutContainer_1, new TableData(HorizontalAlignment.CENTER, VerticalAlignment.MIDDLE));

    LayoutContainer layoutContainer_2 = new LayoutContainer();
    FormLayout fl_layoutContainer_2 = new FormLayout();
    fl_layoutContainer_2.setLabelWidth(160);
    layoutContainer_2.setLayout(fl_layoutContainer_2);

    idSiTravaux = new CustomTextField<String>();            
    idSiTravaux.setMaxLength(30);
    idSiTravaux.setAllowBlank(false);
    idSiTravaux.addListener(Events.OnKeyUp, new KeyListener(){
       @Override
           public void handleEvent(ComponentEvent e) {
                bus.fireEvent(new ConducteurEvent(idSiTravaux.getValue()));
           }
    });
   
    idSiTravaux.setId("INFORMATION_PANEL_SITRAVAUX_ID");
    idSiTravaux.setName(FicheStDto.ID_SI_TRAVAUX);
    idSiTravaux.setFieldLabel(messages.foreman());
    layoutContainer_2.add(idSiTravaux, new FormData("100%"));

    objectif = createNumberField(messages.montant());
    objectif.setId("INFORMATION_PANEL_MONTANT_ID");
    objectif.setName(FicheStDto.OBJECTIF);
    layoutContainer_2.add(objectif, new FormData("100%"));
    lc1.add(layoutContainer_2, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.MIDDLE));
    layoutContainer_2.setWidth("350px");

    LayoutContainer informationFieldSet = new LayoutContainer();
    TableLayout tablelayout2 = new TableLayout(5);
    tablelayout2.setHeight("100%");
    tablelayout2.setWidth("100%");
    informationFieldSet.setLayout(tablelayout2);

    FieldSet conditionFieldSet = new FieldSet();
    conditionFieldSet.setWidth(panel1);
    TableData layoutData = new TableData();
    layoutData.setVerticalAlign(VerticalAlignment.MIDDLE);
    layoutData.setWidth(COLUMNS_WIDTH[0]);
    conditionFieldSet.setLayout(new RowLayout(Orientation.VERTICAL));

    LayoutContainer layoutContainer_4 = new LayoutContainer();
    FormLayout fl_layoutContainer_4 = new FormLayout();
    fl_layoutContainer_4.setLabelWidth(180);
    layoutContainer_4.setLayout(fl_layoutContainer_4);

    initPaymentData();
    layoutContainer_4.add(payment, new FormData(ANCHOR_SPEC_1));

    NumberField rg = createNumberField(messages.rg());
    rg.setName(FicheStDto.RG);
    rg.setMinValue(0);
    rg.setMaxValue(100);
    rg.setId("INFORMATIONAL_PANEL_RG_ID");
    layoutContainer_4.add(rg, new FormData("70%"));

    initDecennaleNecessaireData();
    layoutContainer_4.add(decennaleNecessaire, new FormData(ANCHOR_SPEC_1));

    initDemandeDagrementData();
    layoutContainer_4.add(demandeDagrement, new FormData(ANCHOR_SPEC_1));
    conditionFieldSet.add(layoutContainer_4);

    HTML newLine = new HTML("<br>", true);
    conditionFieldSet.add(newLine);

    LayoutContainer layoutContainer_6 = new LayoutContainer();
    TableLayout tl3 = new TableLayout(3);
    tl3.setWidth("90%");
    layoutContainer_6.setLayout(tl3);

    LayoutContainer layoutContainer_5 = new LayoutContainer();
    FormLayout fl_layoutContainer_5 = new FormLayout();
    fl_layoutContainer_5.setLabelWidth(110);
    layoutContainer_5.setLayout(fl_layoutContainer_5);

    initDgdPresenteData();
    layoutContainer_5.add(dgdPresente, new FormData("65%"));
    dgdPresente.setWidth(50);
    layoutContainer_6.add(layoutContainer_5);

    HTML space4 = new HTML(SPACES_3);
    layoutContainer_6.add(space4);

    LayoutContainer layoutContainer_7 = new LayoutContainer();
    FormLayout fl_layoutContainer_7 = new FormLayout();
    fl_layoutContainer_7.setLabelWidth(50);
    layoutContainer_7.setLayout(fl_layoutContainer_7);
    DateField dgdPresenteDate = new DateField();
    dgdPresenteDate.setId("INFORMATIONAL_PANEL_DGDPRESENTEDATE_ID");
    dgdPresenteDate.setName(FicheStDto.DATEDGDPRESENTE);
    dgdPresenteDate.setWidth(100);
    layoutContainer_7.add(dgdPresenteDate, new FormData("90%"));
    dgdPresenteDate.setFieldLabel(messages.date());
    layoutContainer_6.add(layoutContainer_7);
    conditionFieldSet.add(layoutContainer_6);
    conditionFieldSet.setStyleAttribute("height", HEIGHT_1);
    conditionFieldSet.setHeading(messages.conditions());
    informationFieldSet.add(conditionFieldSet, layoutData);

    HTML space0 = new HTML(SPACES_3);
    TableData tableData2 = new TableData();
    tableData2.setWidth(COLUMNS_WIDTH[1]);
    informationFieldSet.add(space0, tableData2);

    FieldSet prestationsFieldSet = new FieldSet();
    if(RootPanel.get().getOffsetWidth() <= 1900){//Constants.MIN_WIDTH){
      panel3 -= 50;
    }
    prestationsFieldSet.setWidth(panel2);

    prestationsFieldSet.setStyleAttribute("height", HEIGHT_1);
    FormLayout fl_prestationsFieldSet = new FormLayout();
    fl_prestationsFieldSet.setLabelWidth(120);
    prestationsFieldSet.setLayout(fl_prestationsFieldSet);

    NumberField pilotage = addNumberField(
        prestationsFieldSet, messages.pilotage(), FicheStDto.PRESTAPILOTAGE, "INFORMATIONAL_PANEL_PILOTAGE_ID", true);

    NumberField assurances = addNumberField(
        prestationsFieldSet, messages.assurances(), FicheStDto.PRESTAASSURANCES,
        "INFORMATIONAL_PANEL_ASSURANCES_ID", true);

    prorata = addNumberField(
        prestationsFieldSet, messages.prorata(), FicheStDto.PRESTA_PRORATA, "INFORMATIONAL_PANEL_PRORATE_ID", true);
    prorata.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(6, prorata.getValue().doubleValue()));
      }
    });

    canto = addNumberField(prestationsFieldSet, messages.canto(), FicheStDto.PRESTACANTO, "INFORMATIONAL_PANEL_CANTO_ID", false);
    canto.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(0, canto.getValue().doubleValue()));
      }
    });

    badge = addNumberField(prestationsFieldSet, messages.badge(), FicheStDto.PRESTABADGE, "INFORMATIONAL_PANEL_BADGE_ID", false);
    badge.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(1, badge.getValue().doubleValue()));
      }
    });

    grue = addNumberField(prestationsFieldSet, messages.grue(), FicheStDto.PRESTAGRUE, "INFORMATIONAL_PANEL_GRUE_ID", false);
    grue.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(2, grue.getValue().doubleValue()));
      }
    });

    lift = addNumberField(prestationsFieldSet, messages.lift(), FicheStDto.PRESTALIFT, "INFORMATIONAL_PANEL_LIFT_ID", false);
    lift.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(3, lift.getValue().doubleValue()));
      }
    });

    benne = addNumberField(prestationsFieldSet, messages.benne(), FicheStDto.PRESTABENNE, "INFORMATIONAL_PANEL_BENNE_ID", false);
    benne.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(4, benne.getValue().doubleValue()));
      }
    });

    netoyage = addNumberField(
        prestationsFieldSet, messages.nettoyage(), FicheStDto.PRESTANETTOYAGE, "INFORMATIONAL_PANEL_NETOYAGE_ID", false);
    netoyage.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(5, netoyage.getValue().doubleValue()));
      }
    });

    TableData tableData6 = new TableData();
    tableData6.setVerticalAlign(VerticalAlignment.MIDDLE);
    tableData6.setWidth(COLUMNS_WIDTH[2]);
    prestationsFieldSet.setHeading(messages.prestations());
    informationFieldSet.add(prestationsFieldSet, tableData6);

    HTML space1 = new HTML(SPACES_3);
    TableData tableData7 = new TableData();
    tableData7.setWidth(COLUMNS_WIDTH[3]);
    informationFieldSet.add(space1, tableData7);

    FieldSet informationComplementaries = new FieldSet();
    informationComplementaries.setWidth(panel3);
    TableLayout tl_informationComplementaries = new TableLayout(1);
    tl_informationComplementaries.setWidth("96%");
    informationComplementaries.setLayout(tl_informationComplementaries);

    Map<Integer,String> mapConducteurdetravaux = navigation.getContext().getMapConducteurdetravaux();
    String conducteur_ = mapConducteurdetravaux.get(ficheStId_) !=null ? mapConducteurdetravaux.get(ficheStId_) : "";
    final LabelField conducteur = new LabelField(conducteur_);
    bus.addHandler(ConducteurEvent.TYPE, new ConducteurHandler() {   
      @Override
      public void onChangeConducteur(ConducteurEvent conducteurEvent) {
        conducteur.setValue(conducteurEvent.getConducter());
      }
    });
    conducteur.setId("INFORMATIONAL_PANEL_CONDUCTEUR_ID");
    conducteur.setFieldLabel(messages.conducteur() + ":");

    LayoutContainer layoutContainer_8 = new LayoutContainer();
    FormLayout fl_layoutContainer_8 = new FormLayout();
    fl_layoutContainer_8.setLabelWidth(165);
    layoutContainer_8.setLayout(fl_layoutContainer_8);
    layoutContainer_8.add(conducteur, new FormData("100%"));

    DateField dateOfMarket = new DateField();
    dateOfMarket.setName(FicheStDto.DATEMARCHEBASE);
    dateOfMarket.setId("INFORMATIONAL_PANEL_DATEOFMARKET_ID");
    layoutContainer_8.add(dateOfMarket, new FormData("50%"));
    dateOfMarket.setFieldLabel(messages.dateOfMarket());
    TableData layoutData5 = new TableData();
    layoutData5.setWidth("50%");
    informationComplementaries.add(layoutContainer_8, layoutData5);
View Full Code Here

      String fieldId, boolean percentage) {
    NumberField numberField = createNumberField(fieldLabel);
    numberField.setName(fieldName);
    numberField.setId(fieldId);
    numberField.setWidth(70);
    prestationsFieldSet.add(numberField, new FormData(ANCHOR_SPEC_1));
    if( percentage ) {
      numberField.setMinValue(0);
      numberField.setMaxValue(100);
    }
    return numberField;
View Full Code Here

    formPanel2 = new CustomFormPanel();
    formPanel2.setLabelWidth(135);
    formPanel2.add(prorataTheorique);

    chantierInfo.add(formPanel, new FormData("35%"));
    add(chantierInfo);
    chantierInfo.setHeading("INFORMATIONS CHANTIER");

    CustomFieldSet fldstNewFieldset_1 = new CustomFieldSet();
    fldstNewFieldset_1.setLayout(new RowLayout(Orientation.VERTICAL));
View Full Code Here

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

    NumberField canto = createIntegerField(messages.canto());
    canto.setName(DeductionDto.CANTO);
    formPanel.add(canto, new FormData(ANCHOR_SPEC));

    NumberField badge = createIntegerField(messages.badge());
    badge.setName(DeductionDto.BADGE);
    formPanel.add(badge, new FormData(ANCHOR_SPEC));

    NumberField grue = createIntegerField(messages.grue());
    grue.setName(DeductionDto.GRUE);
    formPanel.add(grue, new FormData(ANCHOR_SPEC));

    NumberField lift = createIntegerField(messages.lift());
    lift.setName(DeductionDto.LIFT);
    formPanel.add(lift, new FormData(ANCHOR_SPEC));

    NumberField benne = createIntegerField(messages.benne());
    benne.setName(DeductionDto.BENNE);
    formPanel.add(benne, new FormData(ANCHOR_SPEC));

    NumberField nettoyage = createIntegerField(messages.nettoyage());
    nettoyage.setName(DeductionDto.NETTOYAGE);
    formPanel.add(nettoyage, new FormData(ANCHOR_SPEC));

    NumberField autres = createNumberField(messages.autres());
    autres.setName(DeductionDto.AUTRES);
    formPanel.add(autres, new FormData(ANCHOR_SPEC));

    NumberField prorata = createNumberField(messages.prorata());
    prorata.setName(DeductionDto.PRORATA);
    prorata.setMinValue(0);
    prorata.setMaxValue(100);
    formPanel.add(prorata, new FormData(ANCHOR_SPEC));

    NumberField refacturations = createNumberField(messages.refacturations());
    refacturations.setName(DeductionDto.REFACTURATIONS);
    formPanel.add(refacturations, new FormData(ANCHOR_SPEC));
    add(formPanel);

    DeductionDto dataModel = new DeductionDto();
    dataModel.initData();
    bindModel(formPanel, dataModel);
View Full Code Here

   
    TextField<String> label = new TextField<String>();
    label.setMaxLength(MAX_LENGTH_1);
    label.setName(ProgressDto.LABEL);
    label.setFieldLabel(messages.label());
    formPanel.add(label, new FormData(ANCHOR_SPEC));
   
    DateField date = new DateField();
    date.setName(ProgressDto.DATE);
    date.setFieldLabel(messages.date());
    formPanel.add(date, new FormData(ANCHOR_SPEC));
   
    NumberField cumule1 = createNumberField(messages.cumule() + " avancement");
    cumule1.setName(ProgressDto.CUMULE);
    formPanel.add(cumule1, new FormData(ANCHOR_SPEC));
   
    NumberField cumule2 = createNumberField(messages.cumule() + " reteneus");
    cumule2.setName(ProgressDto.CUMULE2);
    formPanel.add(cumule2, new FormData(ANCHOR_SPEC));
   
    add(formPanel);
   
    ProgressDto dataModel = new ProgressDto();
    bindModel(formPanel, dataModel);
View Full Code Here

    formPanel.setLayout(fl_formPanel);
   
    DateField date = new DateField();
    date.setName(CautionFournieDto.DATE);
    date.setFieldLabel(messages.date());
    formPanel.add(date, new FormData(ANCHOR_SPEC));
   
    NumberField amount = createNumberField(messages.amount());
    amount.setName(CautionFournieDto.AMOUNT);
    formPanel.add(amount, new FormData(ANCHOR_SPEC));
   
    add(formPanel);
   
    CautionFournieDto dataModel = new CautionFournieDto();
    bindModel(formPanel, dataModel);
View Full Code Here

    createColumnForm();
    add(vp);
  }

  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

    typeBudj.setValueField(SimpleDto.ID);
    typeBudj.setForceSelection(true);
    typeBudj.setTriggerAction(TriggerAction.ALL);
    typeBudj.setDisplayField(SimpleDto.LABEL);
    typeBudj.setSimpleValue("Obj");
    formPanel.add(typeBudj, new FormData(ANCHOR_SPEC));
    final TextField<String> lot = createTextField(MAX_LENGTH_4);
    lot.setName(LigTransfertppModel.LOT1);
    lot.setFieldLabel("Lot1");
    formPanel.add(lot, new FormData(ANCHOR_SPEC));
    final TextField<String> lot2 = createTextField(MAX_LENGTH_4);
    lot2.setName(LigTransfertppModel.LOT2);
    lot2.setFieldLabel("Lot2");
    formPanel.add(lot2, new FormData(ANCHOR_SPEC));
    final TextField<String> fieldDevers = new TextField<String>();
    fieldDevers.setAllowBlank(false);
    fieldDevers.setName(LigTransfertppModel.DEVERS);
    fieldDevers.setFieldLabel("Libelle");
   
    formPanel.add(lot2, new FormData(ANCHOR_SPEC));
    devers = new SimpleComboBox<String>();
    devers.setForceSelection(true);
    devers.setTriggerAction(TriggerAction.ALL);
    devers.setAllowBlank(false);
    devers.setEditable(false);
    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");
   
    NumberField pu = createNumberField(null);
    pu.setName(LigTransfertppModel.PU);
    formPanel.add(pu, new FormData(ANCHOR_SPEC));
    pu.setFieldLabel("PU");
    LigTransfertppModel dataModel = new LigTransfertppModel(new SimpleDto(1, "Obj"), "de");
    storeLigModel = new ListStore<LigTransfertppModel>();
    storeLigModel.add(dataModel);
    formPanel.add(typeBudj, new FormData(ANCHOR_SPEC));
    formBinding = new FormBinding(formPanel);
   
    formBinding.setStore(storeLigModel);
    formBinding.addFieldBinding(new FieldBinding(fieldDevers, LigTransfertppModel.DEVERS));
    formBinding.addFieldBinding(new SimpleComboBoxFieldBinding(devers, LigTransfertppModel.DEVERS));
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.