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

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


   
    ContentPanel center = new ContentPanel();
    center.setFrame(false);
    center.setBodyBorder(false);
    center.setHeaderVisible(false);
    BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER,350)
      centerData.setMargins(new Margins(0));
     
    ContentPanel east = new ContentPanel();
    east.setLayout(new FitLayout());
    east.setHeading("Buddys");
    east.setFrame(false);
    east.setBodyBorder(false);
    BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 200)
      eastData.setSplit(true)
      //eastData.setCollapsible(true); 
      eastData.setMargins(new Margins(5));
   
    //the center widgets
    childPanel = new ContentPanel();
    childPanel.addStyleName("message_view");
    childPanel.setHeaderVisible(false);
View Full Code Here


        cancelButton.setText(messages.cancel());
        Button okButton = dialog.getButtonById(Dialog.OK);
        okButton.setText(messages.ok());

        final AddAvancementForm addDataForm = new AddAvancementForm();
        dialog.add(addDataForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent ce) {
            ProgressDto model = addDataForm.getDataModel();
            progressGrid.getStore().add(model);
View Full Code Here

        cancelButton.setText(messages.cancel());
        Button okButton = dialog.getButtonById(Dialog.OK);
        okButton.setText(messages.ok());

        final AddCautionFournieForm addCautionFournieForm = new AddCautionFournieForm();
        dialog.add(addCautionFournieForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent ce) {
            CautionFournieDto model = addCautionFournieForm.getDataModel();
            cautionFournieGrid.getStore().add(model);
View Full Code Here

    LayoutContainer linksPanel = new LayoutContainer();
    linksPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    LayoutContainer topPanel = new LayoutContainer();
    topPanel.setHeight(25);
    topPanel.setLayout(new BorderLayout());
    topPanel.add(linksPanel, new BorderLayoutData(LayoutRegion.EAST, 645));
    topPanel.add(formPanel2, new BorderLayoutData(LayoutRegion.WEST, 500));
    fldstNewFieldset_1.add(topPanel);
    fldstNewFieldset_1.add(new HTML("<br>"));
    saveLayout = new LayoutContainer();

    HTML save = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveSynthese(), false);
    save.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    save.setStyleName("actionHTML");
    saveLayout.add(save);
    saveLayout.setEnabled(false);
    save.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SyntheseEvent());
        saveLayout.setEnabled(false);
        bus.fireEvent(new IsEditEvent(false));
      }
    });
    linksPanel.add(saveLayout);
    if( isAdminOrContributor(role, user) ) {
      save.setVisible(true);
      chatierName.enable();
      prorataTheorique.enable();
    }
    else {
      save.setVisible(false);
      chatierName.disable();
      prorataTheorique.disable();
    }

    HTML printSubcontractor = new HTML("<img src='./images/imprimer.png'/> " + messages.printSubcontractor(), false);
    printSubcontractor.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    printSubcontractor.setStyleName("actionHTML");
    linksPanel.add(new HTML(LINKS_SPACE, false));
    linksPanel.add(printSubcontractor);
    printSubcontractor.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        List<FicheStDto> allModels = new ArrayList<FicheStDto>();
        allModels.addAll(ficheStGrid1.getStore().getModels());
        allModels.addAll(ficheStGrid2.getStore().getModels());
        CreateFicheSTPopUpReportWindow popUpReport = new CreateFicheSTPopUpReportWindow(bus, allModels, true);
        popUpReport.show();
      }
    });

    HTML printRefacturations = new HTML("<img src='./images/imprimer.png'/> " + messages.printRefacturations(), false);
    printRefacturations.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    printRefacturations.setStyleName("actionHTML");
    linksPanel.add(new HTML(LINKS_SPACE, false));
    linksPanel.add(printRefacturations);
    printRefacturations.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        List<FicheStDto> allModels = new ArrayList<FicheStDto>();
        allModels.addAll(ficheStGrid1.getStore().getModels());
        allModels.addAll(ficheStGrid2.getStore().getModels());
        CreateFicheSTPopUpReportWindow popUpReport = new CreateFicheSTPopUpReportWindow(bus, allModels, false);
        popUpReport.show();
      }
    });

    ficheStGrid1 = createFicheStGrid(messages.totalSt());
    fldstNewFieldset_1.add(ficheStGrid1);

    // Honoraires lot type
    ficheStGrid2 = createFicheStGrid("Honoraires");
    ficheStGrid2.hideHeader();

    // Hide it. Only show it if having data (check at loadFicheStData() method)
    ficheStGrid2.hide();
    fldstNewFieldset_1.add(ficheStGrid2);
    loadFicheStData();
    if( isAdminOrContributor(role, user) ) {
      FlexTable ft1 = new FlexTable();
      ft1.setWidget(0, 0, new HTML(SPACES_4));
      HTML addRow = new HTML("<img src='./images/ajouter.png'/> " + messages.newSubcontractor(), false);
      addRow.setStyleName("actionHTML2");
      ft1.setWidget(0, 1, addRow);
      addRow.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          GuiUtil.gotoEcran(new FicheSTEcran(chantier, null, role, user));
          /* bus.fireEvent(new LoadFichestEcranEvent(chantier)); */
        }
      });

      fldstNewFieldset_1.add(ft1);
    }

    FieldSet transferPpFieldSet = new CustomFieldSet();
    transferPpFieldSet.setHeading("SYNTHESE DES TRANSFERT PP");
    transferPpFieldSet.setLayout(new BorderLayout());
    setDefaultBackgroundColor(transferPpFieldSet);
    saveLayout2 = new LayoutContainer();
    HTML save2 = new HTML("<img src='./images/sauvegarder.png'/> Sauvegarder la synthèse", false);
    save2.setStyleName("actionHTML");
    save2.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    save2.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        if( !formPanel2.isValid() ) {
          return;
        }

        bus.fireEvent(new SyntheseEvent());
        saveLayout2.setEnabled(false);
      }
    });
    saveLayout2.add(save2);
    saveLayout2.setEnabled(false);
    transferPpFieldSet.add(saveLayout2, new BorderLayoutData(LayoutRegion.EAST));
    if( isAdminOrContributor(role, user) ) {
      save2.setVisible(true);
    }
    else {
      save2.setVisible(false);
    }

    createTransfertPpGrid(role, user, chantier);
    transferPpFieldSet.add(transfertPpGrid, new BorderLayoutData(LayoutRegion.WEST, 1000));
    add(transferPpFieldSet);
    transferPpFieldSet.setHeight("430");

    transfertPpGrid.addListener(Events.BeforeEdit, new Listener<GridEvent<TransfertPpSummaryDto>>() {
      @Override
View Full Code Here

      @Override
      public void onClick(ClickEvent arg0) {
        GuiUtil.gotoEcran(new SyntheseEcran(chantierModel, role, user));
      }
    });
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 500.0f));
    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    HTML saveFicheSt = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm());
    saveFicheSt.setStyleName("actionHTML");
    /* eastPanel.add(saveFicheSt); */
    saveFicheSt.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SaveFicheStEvent());
      }
    });
   
    HTML space = new HTML("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", true);
    eastPanel.add(space);
   
    HTML printAll = new HTML("<img src='./images/imprimer.png'/> " + messages.printAll());
    printAll.setStyleName("actionHTML");
   
    /* eastPanel.add(printAll); */
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 390.0f));
   
    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));
   
    HTML html = new HTML("<br>", true);
    centerPanel.add(html);
    Label pageTitle = new Label("Fiche de Transfert PP");
    centerPanel.add(pageTitle);
    pageTitle.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    setPadding(centerPanel);
    add(centerPanel, new BorderLayoutData(LayoutRegion.CENTER));
  }
View Full Code Here

    westPanel.add(chantier);

    path = new HTML("&nbsp;> Fiche ST : " + societe);
    path.setWidth("220px");
  /*  westPanel.add(path);*/
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 390.0f));

    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));

    HTML saveFicheSt = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm());
    saveFicheSt.setStyleName("actionHTML");
    /*eastPanel.add(saveFicheSt);*/
    saveFicheSt.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SaveFicheStEvent());
      }
    });

    HTML space = new HTML("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", true);
    eastPanel.add(space);

    HTML printAll = new HTML("<img src='./images/imprimer.png'/> " + messages.printAll());
    printAll.setStyleName("actionHTML");

  /*  eastPanel.add(printAll);*/
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 390.0f));

    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));

    HTML html = new HTML("<br>", true);
    centerPanel.add(html);

    Label pageTitle = new Label("Choix du chantier");
    centerPanel.add(pageTitle);
    pageTitle.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    setPadding(centerPanel);
    add(centerPanel, new BorderLayoutData(LayoutRegion.CENTER));
 
  }
View Full Code Here

   
    com.extjs.gxt.ui.client.widget.Label chantier = new com.extjs.gxt.ui.client.widget.Label("Acceuil");
    chantier.setStyleName("actionHTML5");
    westPanel.add(chantier);
   
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 390.0f));
   
    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    HTML space = new HTML("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", true);
    eastPanel.add(space);
   
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 390.0f));
   
    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));
   
    HTML html = new HTML("<br>", true);
    centerPanel.add(html);
   
    Label pageTitle = new Label("Administration des rôles");
    /* centerPanel.add(pageTitle); */
    pageTitle.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    setPadding(centerPanel);
    add(centerPanel, new BorderLayoutData(LayoutRegion.CENTER));
  }
View Full Code Here

    BorderLayout layout = new BorderLayout();
    layout.setEnableState(false);
    container.setLayout(layout);

    mailListPanel = new MailListPanel();
    container.add(mailListPanel, new BorderLayoutData(LayoutRegion.CENTER));

    mailItemPanel = new MailItemPanel();
    BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, .5f, 200, 1000);
    southData.setSplit(true);
    southData.setMargins(new Margins(5, 0, 0, 0));
    container.add(mailItemPanel, southData);
  }
View Full Code Here

    sb.append("<div id='demo-header' class='x-small-editor'><div id='demo-theme'></div><div id=demo-title>Ext GWT Mail Demo</div></div>");

    HtmlContainer northPanel = new HtmlContainer(sb.toString());
    northPanel.setStateful(false);

    BorderLayoutData data = new BorderLayoutData(LayoutRegion.NORTH, 33);
    data.setMargins(new Margins());
    viewport.add(northPanel, data);
  }
View Full Code Here

    data.setMargins(new Margins());
    viewport.add(northPanel, data);
  }

  private void createWest() {
    BorderLayoutData data = new BorderLayoutData(LayoutRegion.WEST, 200, 150, 350);
    data.setMargins(new Margins(5, 0, 5, 5));

    west = new ContentPanel();
    west.setBodyBorder(false);
    west.setLayout(new AccordionLayout());
    west.setLayoutOnChange(true);
View Full Code Here

TOP

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

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.