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

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


   *
   * @param numColumns the number of columns
   */
  public Portal(int numColumns) {
    this.numColumns = numColumns;
    cl = new ColumnLayout();
    cl.setAdjustForScroll(true);
    setLayout(cl);
    setScrollMode(Scroll.AUTO);
    baseStyle = "x-portal";
    enableLayout = true;
View Full Code Here


      @Override
      public Object render(final FicheStDto model, String property,
          com.extjs.gxt.ui.client.widget.grid.ColumnData config, int rowIndex, int colIndex,
          final ListStore<FicheStDto> store, Grid<FicheStDto> grid) {
        LayoutContainer layoutcell = new LayoutContainer();
        layoutcell.setLayout(new ColumnLayout());

        Listener<MessageBoxEvent> callback = new Listener<MessageBoxEvent>() {
          @Override
          public void handleEvent(MessageBoxEvent be) {
            Button btt = be.getButtonClicked();
View Full Code Here

  rl_fieldSet.setAdjustForScroll(true);
  fieldSet.setLayout(rl_fieldSet);

  LayoutContainer layoutContainer = new LayoutContainer();
  layoutContainer.setLayout(new ColumnLayout());
  layoutContainer.setBorders(false);

  LabelField lblfldNouveauxAdministrateur = new LabelField(messages.newAdmin());

  layoutContainer.add(lblfldNouveauxAdministrateur);
View Full Code Here

  fieldSet.setStyleAttribute("backgroundColor", "#EDF5EA");
  fieldSet.setHeading("Droits d’accès aux chantiers ");
  fieldSet.setHeight(460);
  fieldSet.setWidth(RootPanel.get().getOffsetWidth() / 2 - 20);
  LayoutContainer layoutContainer = new LayoutContainer();
  layoutContainer.setLayout(new ColumnLayout());
  layoutContainer.setBorders(false);
  layoutContainer.setAutoWidth(true);
  LabelField lblfldNouveauxAdministrateur = new LabelField("Nouveaux:");
  layoutContainer.add(lblfldNouveauxAdministrateur);
  layoutContainer.add(new Html("&nbsp"));
  txtChantier = new TextField();
  com.extjs.gxt.ui.client.widget.layout.ColumnData cd_txtChantier = new com.extjs.gxt.ui.client.widget.layout.ColumnData();
  cd_txtChantier.setWidth(0.85);
  layoutContainer.add(txtChantier, cd_txtChantier);
  txtChantier.setFieldLabel("New TextField");
  txtChantier.setWidth("80%");
  txtChantier.addKeyListener(new KeyListener() {

      @Override
      public void componentKeyUp(ComponentEvent event) {
    if (txtChantier.getValue() != null && !txtChantier.getValue().trim().isEmpty() && txtChantier.getValue().toLowerCase().matches("\\b.{0,60}\\\\+.{1,60}")) {
        btnAdd.setEnabled(true);
    } else {
        btnAdd.setEnabled(false);
    }

      }
  });

  txtChantier.setWidth("35%");

  txtChantier.setToolTip("Hint:domain\\loginname");

  SelectionListener<ButtonEvent> add = AddButtonEventGridRole();
  btnAdd = new Button("Ajouter");
  btnAdd.addSelectionListener(add);
  btnAdd.setEnabled(false);
  layoutContainer.add(new Html("&nbsp"));
  layoutContainer.add(btnAdd, new com.extjs.gxt.ui.client.widget.layout.ColumnData(100.0));

  RowLayout rl_fieldSet = new RowLayout(Orientation.VERTICAL);
  rl_fieldSet.setAdjustForScroll(true);
  fieldSet.setLayout(rl_fieldSet);

  LayoutContainer layoutContainer_1 = new LayoutContainer();
  layoutContainer_1.setLayout(new ColumnLayout());
  layoutContainer_1.setBorders(false);
  layoutContainer_1.setAutoWidth(true);
  LabelField lblfldChantier = new LabelField("Chantier:");
  layoutContainer_1.add(lblfldChantier);
  storeChantier = new ListStore<ChantierModel>();
View Full Code Here

      @Override
      public Object render(final ChantierModel model, String property, ColumnData config, int rowIndex, int colIndex, final ListStore<ChantierModel> store, Grid<ChantierModel> grid) {
    layoutcell = new LayoutContainer();
    layoutcell = new LayoutContainer();
    layoutcell.setLayout(new ColumnLayout());
    Listener<MessageBoxEvent> callback = new Listener<MessageBoxEvent>() {
        @Override
        public void handleEvent(MessageBoxEvent be) {
      Button btt = be.getButtonClicked();
      if (Dialog.OK.equals(btt.getItemId())) {
          if (storeChantier == null) {
        return;
          } else {
        storeChantier.remove(model);
        storeChantier.commitChanges();
        service.deleteChantier(model.getId(), new AsyncCallback<Void>() {

            @Override
            public void onFailure(Throwable arg0) {
            }

            @Override
            public void onSuccess(Void arg0) {
            }
        });

          }
      }
        }
    };
    img = createDeleteButton(callback, messages.confirmDelete());
    Image img1 = new Image("./images/imprimer.png");
    img1.setTitle("Imprimer");
    img1.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
      // TODO Auto-generated method stub
      // syn
      List<NameValuePair> params = new ArrayList<NameValuePair>();
      String exportPdfUrl = GWT.getHostPageBaseURL() + "acceuil.pdf";
      params.add(new NameValuePair("chantierId", model.getId() + ""));
      ReportUtil.showReport(exportPdfUrl, params.toArray(new NameValuePair[params.size()]));

        }
    });
    Image img2 = new Image("./images/voir.png");
    img2.setTitle("Voir");
    if (user.getBadmin() != null && user.getBadmin() == true) {
        layoutcell.add(img);
    }
    layoutcell.add(new Html("&nbsp;&nbsp;&nbsp;"));
    layoutcell.add(img1);
    layoutcell.add(new Html("&nbsp;&nbsp;&nbsp;"));
    layoutcell.add(img2);
    layoutcell.add(new Html("&nbsp;&nbsp;&nbsp;"));
    img2.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
      serviceRole.findRoleById(model.getId(), user.getId(), new AsyncCallback<RoleModel>() {
          @Override
          public void onFailure(Throwable arg0) {
          }

          @Override
          public void onSuccess(RoleModel role) {
        if (role != null && role.getBcontributeur() == false && role.getBlecteur() == false && user.getBadmin() == false) {
            GuiUtil.gotoEcran(new ErrorEcran());
        } else {
            GuiUtil.gotoEcran(new SyntheseEcran(model, role, user));
        }
          }
      });
        }
    });
    return layoutcell;
      }
  };

  column = new ColumnConfig("supprimer", "", 150);
  column.setSortable(false);
  column.setMenuDisabled(true);
  column.setGroupable(false);
  column.setFixed(true);
  column.setResizable(false);

  column.setRenderer(deleteBtn);
  column.setAlignment(HorizontalAlignment.LEFT);

  configs.add(column);
  column_1 = new ColumnConfig();
  column_1.setId("nom");
  column_1.setHeader("Nom du chantier");
  column_1.setSortable(false);
  column_1.setMenuDisabled(true);
  column_1.setFixed(true);
  column_1.setAlignment(HorizontalAlignment.LEFT);
  configs.add(column_1);
  storeChantier = new ListStore<ChantierModel>();

  ColumnModel cm = new ColumnModel(configs);
  gridChantier = new CustomEditorGrid<ChantierModel>(storeChantier, cm);
  gridChantier.setAutoExpandColumn("nom");
  gridChantier.setHeight(370);
  gridChantier.setAutoExpandMax(1500);
  gridChantier.setAutoExpandMin(250);
  gridChantier.setWidth(1500);
  FieldSet fsChantier = new CustomFieldSet();
  add(fsChantier);
  fsChantier.setHeading("Chantiers existants");
  fsChantier.setAutoHeight(true);
  // fsChantier.setHeight(400);
  contentChantier.setLayout(new FitLayout());
  contentChantier.setHeaderVisible(false);
  contentChantier.setHeight(200);
  // contentChantier.setAutoHeight(true);
  contentChantier.add(gridChantier);
  fsChantier.add(contentChantier);
  fsNouveauxChantier = new CustomFieldSet();
  fsNouveauxChantier.setCollapsible(false);
  fsNouveauxChantier.setLayout(new ColumnLayout());
  LabelField lblfldNomDuChantier = new LabelField(messages.nameChantier() + ":");
  fsNouveauxChantier.add(lblfldNomDuChantier);
  txtChantier = new TextField<String>();
  txtChantier.addKeyListener(new KeyListener() {
      @Override
View Full Code Here

    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);
View Full Code Here

    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);
View Full Code Here

    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.CENTER)
      panel.setLayout(new FitLayout());
   
    LayoutContainer main = new LayoutContainer()
      main.setLayout(new ColumnLayout())
   
      LayoutContainer left = new LayoutContainer()
   
      FormLayout layout = new FormLayout()
      left.setLayout(layout)
View Full Code Here

   *
   * @param numColumns the number of columns
   */
  public Portal(int numColumns) {
    this.numColumns = numColumns;
    cl = new ColumnLayout();
    cl.setAdjustForScroll(true);
    setLayout(cl);
    setStyleAttribute("overflow", "auto");
    baseStyle = "x-portal";
    enableLayout = true;
View Full Code Here

   *
   * @param numColumns the number of columns
   */
  public Portal(int numColumns) {
    this.numColumns = numColumns;
    cl = new ColumnLayout();
    cl.setAdjustForScroll(true);
    setLayout(cl);
    setScrollMode(Scroll.AUTO);
    baseStyle = "x-portal";
    enableLayout = true;
View Full Code Here

TOP

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

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.