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

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


      {
        if(event.getKeyCode() == 13)
          doSend();
      }
    });
    TableData data = new TableData();
    data.setWidth("100%");
    inputContainer.addInputItem(new AdapterToolItem(input), data);
   
    emoticonButton = new Button();
    emoticonButton.setIconStyle("emoticon_button");
    emoticonButton.setStyleName("x-btn-icon x-btn-focus");
    emoticonButton.setToolTip("Insert a emoticon");
    emoticonButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        showEmoticonPalette(emoticonButton.getElement().getAbsoluteLeft(),emoticonButton.getElement().getAbsoluteTop());
      }
     
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(emoticonButton), data);
   
    sendButton = new Button(JabberApp.getConstants().send());
    sendButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        doSend()
      }
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(sendButton), data);
       
    return inputContainer;
  }
View Full Code Here


      {
        if(event.getKeyCode() == 13)
          doSend();
      }
    });
    TableData data = new TableData();
    data.setWidth("100%");
    inputContainer.addInputItem(new AdapterToolItem(input), data);
   
    emoticonButton = new Button();
    emoticonButton.setIconStyle("emoticon_button");
    emoticonButton.setStyleName("x-btn-icon x-btn-focus");
    emoticonButton.setToolTip("Insert a emoticon");
    emoticonButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        showEmoticonPalette(emoticonButton.getElement().getAbsoluteLeft(),emoticonButton.getElement().getAbsoluteTop());
      }
     
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(emoticonButton), data);
   
    sendButton = new Button(JabberApp.getConstants().send());
    sendButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        doSend()
      }
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(sendButton), data);
       
    return inputContainer;
  }
View Full Code Here

    VerticalPanel verticalPanel = new VerticalPanel();
    VerticalPanel verticalPanel_1 = new VerticalPanel();
   
    LabelField labelUsuario = new LabelField("Usuario");
    labelUsuario.setWidth(LABEL_WIDTH);
    TableData td_labelUsuario = new TableData();
    td_labelUsuario.setHorizontalAlign(HorizontalAlignment.CENTER);
    verticalPanel.add(labelUsuario, td_labelUsuario);
    verticalPanel.setWidth(VERTICAL_PANEL_WIDTH);
    horizontalPanelUsuario.add(verticalPanel);
   
//    textUsuario.addKeyListener(new KeyListener() {
//      public void componentKeyPress(ComponentEvent event) {
//        presionoEnter(event);
//      }
//    });
    textUsuario.setAllowBlank(Boolean.FALSE);
    textUsuario.setWidth(TEXT_BOX_WIDTH);
    verticalPanel_1.add(textUsuario);
    verticalPanel_1.setWidth(VERTICAL_PANEL_WIDTH);
    TableData td_verticalPanel_1 = new TableData();
    td_verticalPanel_1.setHorizontalAlign(HorizontalAlignment.CENTER);
    horizontalPanelUsuario.add(verticalPanel_1, td_verticalPanel_1);
    mainLoginPanel.add(horizontalPanelUsuario);

   
    HorizontalPanel horizontalPanelPassword = new HorizontalPanel();
   
    VerticalPanel verticalPanel_2 = new VerticalPanel();
   
    LabelField labelPassword = new LabelField("Password");
    labelPassword.setWidth(LABEL_WIDTH);
    TableData td_labelPassword = new TableData();
    td_labelPassword.setHorizontalAlign(HorizontalAlignment.CENTER);
    verticalPanel_2.add(labelPassword, td_labelPassword);
    verticalPanel_2.setWidth(VERTICAL_PANEL_WIDTH);
    horizontalPanelPassword.add(verticalPanel_2);
   
    VerticalPanel verticalPanel_3 = new VerticalPanel();
   
    textPassword = new TextField();
//    textPassword.addKeyListener(new KeyListener() {
//      public void componentKeyPress(ComponentEvent event) {
//        presionoEnter(event);
//      }
//    });
    textPassword.setAllowBlank(Boolean.FALSE);
    textPassword.setPassword(true);

    textPassword.setPassword(true);
    textPassword.setWidth(TEXT_BOX_WIDTH);
    verticalPanel_3.add(textPassword);
    verticalPanel_3.setWidth(VERTICAL_PANEL_WIDTH);
    TableData td_verticalPanel_3 = new TableData();
    td_verticalPanel_3.setHorizontalAlign(HorizontalAlignment.CENTER);
    horizontalPanelPassword.add(verticalPanel_3, td_verticalPanel_3);
    horizontalPanelPassword.setHeight(HORIZONTAL_PANEL_HEIGTH);
    mainLoginPanel.add(horizontalPanelPassword);
   
    Button btnIngresar = new Button("Ingresar");
View Full Code Here

    }

    for (int i = 0, len = fields.size(); i < len; i++) {
      Field<?> f = fields.get(i);
      boolean last = i == (fields.size() - 1);
      TableData data = (TableData) ComponentHelper.getLayoutData(f);
      if (data == null) {
        data = new TableData();
      }
      String style = "position: static;";

      if (vertical && !last && spacing > 0) {
        style += "paddingBottom:" + spacing + "px;";
      } else if (!vertical && !last && spacing > 0) {
        style += "paddingRight:" + spacing + "px;";
      }
      data.setStyle(style);

      lc.add(f, data);
    }

    lc.render(target, index);
View Full Code Here

        }
        setProgressLabelText(etatAvancement);
      }
    });

    TableData td_htmlNewHtml = new TableData();
    td_htmlNewHtml.setHorizontalAlign(HorizontalAlignment.LEFT);
    layoutContainer_1.add(progressLabel, td_htmlNewHtml);

    saveButton = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm(), false);
    saveButton.setStyleName("actionHTML");
    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SaveFicheStEvent());
      }
    });
   
    TableData td_saveButton = new TableData();
    td_saveButton.setHorizontalAlign(HorizontalAlignment.RIGHT);
    layoutContainer_1.add(saveButton, td_saveButton);
   
    bus.addHandler(ExportAvancementPanelEvent.TYPE, new ExportAvancementPanelHandler() {
     
      @Override
      public void onExport(ExportAvancementPanelEvent event) {
        exportAvancementsPanel();
      }
    });
   
    HTML print2 = new HTML("<img src='./images/imprimer.png'/> " + messages.printPromotions(), false);
    print2.setStyleName("actionHTML");
    print2.addClickHandler(new ClickHandler() {
     
      @Override
      public void onClick(ClickEvent arg0) {
        exportAvancementsPanel();
      }
    });
    TableData td_print2 = new TableData();
    td_print2.setWidth("250");
    td_print2.setHorizontalAlign(HorizontalAlignment.RIGHT);
    layoutContainer_1.add(print2, td_print2);

    avancementsFieldSet.add(layoutContainer_1);

    avancementsFieldSet.add(new HTML("<br>", true));
    avancementsFieldSet.setCollapsible(true);
    avancementsFieldSet.setHeading(messages.avancement());
    TableLayout avancementsTableLayout = new TableLayout(1);
    avancementsTableLayout.setWidth("100%");
    avancementsFieldSet.setLayout(avancementsTableLayout);

    FieldSet fldstNewFieldset_1 = new FieldSet();
    fldstNewFieldset_1.setCollapsible(true);
    fldstNewFieldset_1.setHeading(messages.deductionsDetails());

    createPenaltiesGrid();
    fldstNewFieldset_1.add(penaltyGrid);

    fldstNewFieldset_1.add(new HTML("<br>"));

    createGrid3();
    fldstNewFieldset_1.add(grid_3);

    FlexTable ft11 = new FlexTable();
    ft11.setWidget(0, 0, new HTML(SPACES_4));
    addRow = new HTML("<img src='./images/ajouter.png'/> " + messages.addRow(), false);
    addRow.setStyleName("actionHTML2");
    ft11.setWidget(0, 1, addRow);

    addRow.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        showAddDialog();
      }

      private void showAddDialog() {
        Dialog dialog = new Dialog();
        dialog.setHeading(messages.titlePopup());
        dialog.setLayout(new BorderLayout());
        dialog.setWidth(500);
        dialog.setHeight(220);
        dialog.setBodyBorder(false);
        dialog.setHideOnButtonClick(true);
        dialog.setButtons(Dialog.OKCANCEL);
        dialog.setButtonAlign(HorizontalAlignment.CENTER);
        dialog.setScrollMode(Scroll.AUTO);
        dialog.setModal(true);
        dialog.setBlinkModal(true);
        Button cancelButton = dialog.getButtonById(Dialog.CANCEL);
        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);
            progressGrid.getView().refresh(true);
            //bus.fireEvent(new EtatAvancementEvent(listGestion,progressGrid.getStore().getModels()));
          }
        });

        dialog.show();
      }
    });

    LayoutContainer leftPanel = new LayoutContainer();
    leftPanel.setLayout(new TableLayout(1));

    leftPanel.add(new HTML("<br>"));

    createProgressGrid();
    leftPanel.add(progressGrid);

    leftPanel.add(ft11);

    leftPanel.add(new HTML("<br>"));
    leftPanel.add(fldstNewFieldset_1);
    TableData layoutData9 = new TableData();
    layoutData9.setWidth(COLUMNS_WIDTH_3[1]);
    setLayout(new RowLayout(Orientation.VERTICAL));
    add(avancementsFieldSet);

    setDefaultBackgroundColor(avancementsFieldSet);

    LayoutContainer layoutContainer_3 = new LayoutContainer();
    TableLayout tl3 = new TableLayout(3);
    tl3.setWidth("100%");
    layoutContainer_3.setLayout(tl3);
    avancementsFieldSet.add(layoutContainer_3);

    LayoutContainer rightPanel = new LayoutContainer();
    layoutContainer_3.add(leftPanel);

    TableData td2 = new TableData();
    td2.setWidth(COLUMNS_WIDTH_3[1]);
    layoutContainer_3.add(new HTML("&nbsp;"), td2);
    FormLayout fl_rightPanel = new FormLayout();
    fl_rightPanel.setLabelAlign(LabelAlign.TOP);
    rightPanel.setLayout(fl_rightPanel);

    TableData td_rightPanel = new TableData();
    td_rightPanel.setWidth(COLUMNS_WIDTH_3[2]);
    comment.setMaxLength(MAX_LENGTH_5);
    comment.setName(FicheStDto.AVCT_COMMENTAIRES);
    comment.setId("AVANCEMENTSPANEL_COMMENT");
    comment.setHeight("460px");
    comment.setFieldLabel(messages.comment2());
View Full Code Here

    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);

    LayoutContainer layoutContainer_3 = new LayoutContainer();
    layoutContainer_3.setHeight("315px");
    layoutContainer_3.setLayout(new RowLayout(Orientation.VERTICAL));
    layoutContainer_3.setStyleAttribute("height", HEIGHT_1);
    layoutContainer_3.add(informationComplementaries);
    informationComplementaries.setHeight("85px");
    TableData layoutData3 = new TableData();
    layoutData3.setVerticalAlign(VerticalAlignment.MIDDLE);
    layoutData3.setWidth(COLUMNS_WIDTH[4]);

    FieldSet cautionFieldset = new FieldSet();
    cautionFieldset.setLayout(new RowLayout(Orientation.VERTICAL));

    layoutContainer_3.add(cautionFieldset);
View Full Code Here

  setLayout(new FitLayout());
  /* setScrollMode(Scroll.AUTO); */
  setStyleAttribute("backgroundColor", "white");

  setBorders(false);
  TableData column_left = new TableData();
  column_left.setWidth("10%");
  TableData column_right = new TableData();
  column_right.setWidth("10%");
  TableData column1 = new TableData();
  column1.setHorizontalAlign(HorizontalAlignment.LEFT);
  FieldSet adminFieldset = createAdminFieldSet();
  adminFieldset.setWidth(GuiUtil.getScreenWidth() / 2 - 25);
  FieldSet chantierFieldset = CreateChantierFieldset();
  chantierFieldset.setWidth(GuiUtil.getScreenWidth() / 2 - 25);
  LayoutContainer layoucent = new LayoutContainer();
View Full Code Here

      @Override
      public void handleEvent(BaseEvent be) {
    GuiUtil.gotoEcran(new AcceuilEcran());
      }
  });
  linksPanel.add(acceuilLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));

  adminLink.addListener(Events.OnClick, new Listener<BaseEvent>() {
      @Override
      public void handleEvent(BaseEvent be) {
    GuiUtil.gotoEcran(new AdminEcran());
      }
  });
  linksPanel.add(adminLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));

  version = new HTML("", false);
  version.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
  version.setWordWrap(false);
  ClientPropertiesServiceAsync.Util.getInstance().getVersionInfo(new AsyncCallbackWithErrorResolution<String>() {
      @Override
      public void onSuccess(String result) {
    version.setHTML("<font size='1'>" + result + "</font>");
      }
  });

  // linksPanel.add(version);
  rightPanel.add(linksPanel);
  LayoutContainer layoutBanner = new LayoutContainer();
  LayoutContainer layoutVersion = new LayoutContainer();
  layoutVersion.setLayout(new RowLayout(Orientation.HORIZONTAL));
  layoutVersion.add(version, new RowData());
  layoutVersion.setHeight(20);
  layoutVersion.setWidth(50);
  layoutVersion.setStyleAttribute("padding-bottom", "25px");
  layoutBanner.setLayout(new TableLayout(2));
  banner = new HTML("<img src='./images/banner-first.png'/>");
  banner.setStyleName("actionHTML");
  banner.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
    GuiUtil.gotoEcran(new AcceuilEcran());
      }
  });
  layoutBanner.add(banner, new TableData());
  layoutBanner.add(layoutVersion, new TableData(HorizontalAlignment.LEFT, VerticalAlignment.BOTTOM));
  mainPanel.add(layoutBanner, new BorderLayoutData(LayoutRegion.CENTER));
  add(mainPanel, new BorderLayoutData(LayoutRegion.CENTER));
  mainPanel.setStyleAttribute("border-color", "black");
  setPadding(this);
  mainPanel.setId("headerPanel");
View Full Code Here

    tree2.setDisplayProperty("name");

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(10);

    hp.add(tree, new TableData("250px", null));
    hp.add(tree2, new TableData("250px", null));

    DNDListener listener = new DNDListener() {
      @SuppressWarnings({"unchecked", "rawtypes"})
      @Override
      public void dragStart(DNDEvent e) {
View Full Code Here

  inforFieldset.setHeading("INFORMATION GENERALES");
  LayoutContainer layoutContainer_0 = new LayoutContainer();
  FormLayout fl_layoutContainer_0 = new FormLayout();
  fl_layoutContainer_0.setLabelWidth(70);
  layoutContainer_0.setLayout(new TableLayout(2));
  TableData col1 = new TableData();
  col1.setWidth("600px");
  TableData col2 = new TableData();
  col2.setWidth("600px");
  labelChantier = new Label();
  labelChantier.setText("Chantier:" + chantier.getNom());
  labelRefTransfertpp = new Label();
  labelRefTransfertpp.setVisible(false);
  layoutContainer_0.add(labelChantier, col1);
View Full Code Here

TOP

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

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.