List of usage examples for com.google.gwt.user.client.ui HorizontalPanel setSpacing
public void setSpacing(int spacing)
From source file:com.square.client.gwt.client.view.campagne.gestion.CampagneGestionViewImpl.java
License:Open Source License
private void construirePage() { final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> slbIdentifiantLibelleProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleGwt>() { @Override//from w ww. ja va 2 s.com public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; lCode = new Label(); lCreateur = new Label(); tbLibelle = new DecoratedTextBox(); aideTbLibelle = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_LIBELLE, isAdmin); HorizontalPanel paneltbLibelle = new HorizontalPanel(); paneltbLibelle.setSpacing(5); paneltbLibelle.add(tbLibelle); paneltbLibelle.add(aideTbLibelle); ajouterAideComposant(aideTbLibelle); slbStatut = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(slbIdentifiantLibelleProperties); aideSlbStatut = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_STATUT, isAdmin); ajouterAideComposant(aideSlbStatut); lType = new Label(); cdbDateDebut = new DecoratedCalendrierDateBox(true); aideCdbDateDebut = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_DATE_DEBUT, isAdmin); ajouterAideComposant(aideCdbDateDebut); cdbDateFin = new DecoratedCalendrierDateBox(true); aideCdbDateFin = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_DATE_FIN, isAdmin); ajouterAideComposant(aideCdbDateFin); taDescriptif = new HTML(); taDescriptif.addStyleName(SquareResources.INSTANCE.css().descriptifReadOnly()); taDescriptif.setVisible(false); aidetaDescriptif = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_DESCRIPTIF, isAdmin); ajouterAideComposant(aidetaDescriptif); rtaDescriptif = new RichTextArea(); rtaDescriptif.setWidth(AppControllerConstants.POURCENT_100); aidertaDescriptif = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_DECRIPTIF_BIS, isAdmin); ajouterAideComposant(aidertaDescriptif); rttToolbar = new RichTextToolbar(rtaDescriptif, RichTextToolbar.MODE_EXTENDED); rttToolbar.setWidth(AppControllerConstants.POURCENT_100); aiderttToolbar = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_TOOLBAR, isAdmin); ajouterAideComposant(aiderttToolbar); rtpCommmentaire = new RichTextPanel(rttToolbar, rtaDescriptif); rtpCommmentaire.setWidth(AppControllerConstants.POURCENT_100); aidertpCommmentaire = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_GESTION_COMMENTAIRE, isAdmin); btnAnnuler = new DecoratedButton(viewConstants.annuler()); btnEnregistrer = new DecoratedButton(viewConstants.enregistrer()); final CaptionPanel captionPanelInformation = new CaptionPanel(viewConstants.informations()); final FlexTable conteneurInformations = new FlexTable(); conteneurInformations.setWidth(AppControllerConstants.POURCENT_100); conteneurInformations.setWidget(0, 0, new Label(viewConstants.code(), false)); conteneurInformations.setWidget(0, 1, lCode); conteneurInformations.setWidget(0, 2, new Label(viewConstants.libelle(), false)); conteneurInformations.setWidget(0, 3, paneltbLibelle); conteneurInformations.setWidget(1, 0, new Label(viewConstants.statut(), false)); conteneurInformations.setWidget(1, 1, construireBlocIcone(slbStatut, "CampagneDto.statut", aideSlbStatut)); conteneurInformations.setWidget(1, 2, new Label(viewConstants.type(), false)); conteneurInformations.setWidget(1, 3, lType); conteneurInformations.setWidget(1, 4, new Label(viewConstants.createur(), false)); conteneurInformations.setWidget(1, 5, lCreateur); conteneurInformations.setWidget(2, 0, new Label(viewConstants.dateDebut(), false)); conteneurInformations.setWidget(2, 1, construireBlocIcone(cdbDateDebut, "CampagneDto.dateDebut", aideCdbDateDebut)); conteneurInformations.setWidget(2, 2, new Label(viewConstants.dateFin(), false)); conteneurInformations.setWidget(2, 3, construireBlocIcone(cdbDateFin, "CampagneDto.dateFin", aideCdbDateFin)); conteneurInformations.getColumnFormatter().setWidth(0, "10%"); conteneurInformations.getColumnFormatter().setWidth(1, "27%"); conteneurInformations.getColumnFormatter().setWidth(2, "8%"); conteneurInformations.getColumnFormatter().setWidth(3, "27%"); conteneurInformations.getColumnFormatter().setWidth(4, "8%"); conteneurInformations.getColumnFormatter().setWidth(5, "20%"); captionPanelInformation.add(conteneurInformations); // Contruction de la zone de text final CaptionPanel captionPanelDescription = new CaptionPanel(viewConstants.description()); final Grid grid = new Grid(3, 1); grid.setWidget(0, 0, rtpCommmentaire); grid.setWidget(2, 0, taDescriptif); grid.setWidth(AppControllerConstants.POURCENT_100); captionPanelDescription.add(grid); // Construction de la bare de bouton final HorizontalPanel horizontalPanelBoutons = new HorizontalPanel(); horizontalPanelBoutons.add(btnEnregistrer); horizontalPanelBoutons.add(btnAnnuler); horizontalPanelBoutons.setSpacing(5); conteneur.add(captionPanelInformation); conteneur.add(captionPanelDescription); conteneur.add(horizontalPanelBoutons); conteneur.setCellHorizontalAlignment(horizontalPanelBoutons, HasAlignment.ALIGN_RIGHT); }
From source file:com.square.client.gwt.client.view.campagne.gestion.CampagneGestionViewImpl.java
License:Open Source License
/** * Construit un bloc avec un champ pour l'affichage. *//* w ww . j a v a 2 s . c o m*/ private HorizontalPanel construireBlocIcone(final Widget composant, final String nomChamp) { final IconeErreurChamp icone = iconeErreurChampManager.createInstance(nomChamp, composant); final HorizontalPanel panel = new HorizontalPanel(); panel.add(composant); panel.add(icone); panel.setCellVerticalAlignment(icone, HasAlignment.ALIGN_MIDDLE); panel.setSpacing(5); return panel; }
From source file:com.square.client.gwt.client.view.campagne.moteur.recherche.CampagneMoteurRechercheViewImpl.java
License:Open Source License
private void construireBlocRecherche() { slbIdLibelleProperties = new SuggestListBoxCompositeProperties<IdentifiantLibelleGwt>() { @Override//from ww w . j a v a2 s . c o m public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopUpSelection(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } @Override public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }; tbCode = new DecoratedTextBoxFormat("NNNNNNNNNN"); tbCode.ensureDebugId(viewDebugIdConstants.debugIdTbCode()); aidetbCode = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_CODE, isAdmin); HorizontalPanel paneltbCode = new HorizontalPanel(); paneltbCode.setSpacing(5); paneltbCode.add(tbCode); paneltbCode.add(aidetbCode); ajouterAideComposant(aidetbCode); tbLibelle = new DecoratedTextBox(); tbLibelle.ensureDebugId(viewDebugIdConstants.debugIdTbLibelle()); aidetbLibelle = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_LIBELLE, isAdmin); HorizontalPanel paneltbLibelle = new HorizontalPanel(); paneltbLibelle.setSpacing(5); paneltbLibelle.add(tbLibelle); paneltbLibelle.add(aidetbLibelle); ajouterAideComposant(aidetbLibelle); slbType = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbType.ensureDebugId(viewDebugIdConstants.debugIdSlbType()); slbType.setScrollPanelSuggestMultipleHeight( CampagneMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbType = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_TYPE, isAdmin); HorizontalPanel panelslbType = new HorizontalPanel(); panelslbType.setSpacing(5); panelslbType.add(slbType); panelslbType.add(aideslbType); ajouterAideComposant(aideslbType); slbStatut = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbStatut.ensureDebugId(viewDebugIdConstants.debugIdSlbStatut()); slbStatut.setScrollPanelSuggestMultipleHeight( CampagneMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbStatut = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_STATUT, isAdmin); HorizontalPanel panelslbStatut = new HorizontalPanel(); panelslbStatut.setSpacing(5); panelslbStatut.add(slbStatut); panelslbStatut.add(aideslbStatut); ajouterAideComposant(aideslbStatut); cdbDateInfDateDebut = new DecoratedCalendrierDateBox(); cdbDateInfDateDebut.ensureDebugId(viewDebugIdConstants.debugIdCdbDateInfDateDebut()); aidecdbDateInfDateDebut = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_DATE_INF_DEBUT, isAdmin); HorizontalPanel panelcdbDateInfDateDebut = new HorizontalPanel(); panelcdbDateInfDateDebut.setSpacing(5); panelcdbDateInfDateDebut.add(cdbDateInfDateDebut); panelcdbDateInfDateDebut.add(aidecdbDateInfDateDebut); ajouterAideComposant(aidecdbDateInfDateDebut); cdbDateSupDateDebut = new DecoratedCalendrierDateBox(); cdbDateSupDateDebut.ensureDebugId(viewDebugIdConstants.debugIdCdbDateSupDateDebut()); aidecdbDateSupDateDebut = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_DATE_SUP_DEBUT, isAdmin); HorizontalPanel panelcdbDateSupDateDebut = new HorizontalPanel(); panelcdbDateSupDateDebut.setSpacing(5); panelcdbDateSupDateDebut.add(cdbDateSupDateDebut); panelcdbDateSupDateDebut.add(aidecdbDateSupDateDebut); ajouterAideComposant(aidecdbDateSupDateDebut); cdbDateInfDateFin = new DecoratedCalendrierDateBox(); cdbDateInfDateFin.ensureDebugId(viewDebugIdConstants.debugIdCdbDateInfDateFin()); aidecdbDateInfDateFin = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_DATE_INF_FIN, isAdmin); HorizontalPanel panelcdbDateInfDateFin = new HorizontalPanel(); panelcdbDateInfDateFin.setSpacing(5); panelcdbDateInfDateFin.add(cdbDateInfDateFin); panelcdbDateInfDateFin.add(aidecdbDateInfDateFin); ajouterAideComposant(aidecdbDateInfDateFin); cdbDateSupDateFin = new DecoratedCalendrierDateBox(); cdbDateSupDateFin.ensureDebugId(viewDebugIdConstants.debugIdCdbDateSupDateFin()); aidecdbDateInfDateFin = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_DATE_SUP_FIN, isAdmin); HorizontalPanel panelcdbDateSupDateFin = new HorizontalPanel(); panelcdbDateSupDateFin.setSpacing(5); panelcdbDateSupDateFin.add(cdbDateSupDateFin); panelcdbDateSupDateFin.add(aidecdbDateInfDateFin); ajouterAideComposant(aidecdbDateInfDateFin); final SuggestListBoxSingleProperties<DimensionRessourceModel> properties = new SuggestListBoxSingleProperties<DimensionRessourceModel>() { @Override public String getSelectSuggestRenderer(DimensionRessourceModel row) { return row == null ? "" : row.getNom() + " " + row.getPrenom(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(DimensionRessourceModel row) { return new String[] { row == null ? "" : row.getNom() + " " + row.getPrenom() }; } }; slbCreateur = new DecoratedSuggestListBoxSingle<DimensionRessourceModel>(properties); slbCreateur.ensureDebugId(viewDebugIdConstants.debugIdSlbCreateur()); aideslbCreateur = new AideComposant(AideComposantConstants.AIDE_CAMPAGNE_RECHERCHE_CREATEUR, isAdmin); HorizontalPanel panelslbCreateur = new HorizontalPanel(); panelslbCreateur.setSpacing(5); panelslbCreateur.add(slbCreateur); panelslbCreateur.add(aideslbCreateur); ajouterAideComposant(aideslbCreateur); final CaptionPanel captionPanel = new CaptionPanel(viewConstants.recherche()); final FlexTable fpRechercher = new FlexTable(); fpRechercher.setWidth(AppControllerConstants.POURCENT_100); fpRechercher.setCellSpacing(5); final Label code = creerLibelle(viewConstants.code()); final Label libelle = creerLibelle(viewConstants.libelle()); final Label type = creerLibelle(viewConstants.type()); final Label statut = creerLibelle(viewConstants.statut()); final Label libelleDateDebut = creerLibelle(viewConstants.libelleDateDebut()); final Label libelleDateFin = creerLibelle(viewConstants.libelleDateFin()); final Label createur = creerLibelle(viewConstants.createur()); final Label auDateDebut = creerLibelle(viewConstants.au()); final Label auDateFin = creerLibelle(viewConstants.au()); final HorizontalPanel conteneurDateDebut = new HorizontalPanel(); conteneurDateDebut.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); conteneurDateDebut.add(panelcdbDateInfDateDebut); conteneurDateDebut.add(new HTML(" ")); conteneurDateDebut.add(auDateDebut); conteneurDateDebut.add(new HTML(" ")); conteneurDateDebut.add(panelcdbDateSupDateDebut); final HorizontalPanel conteneurDateFin = new HorizontalPanel(); conteneurDateFin.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); conteneurDateFin.add(panelcdbDateInfDateFin); conteneurDateFin.add(new HTML(" ")); conteneurDateFin.add(auDateFin); conteneurDateFin.add(new HTML(" ")); conteneurDateFin.add(panelcdbDateSupDateFin); fpRechercher.setWidget(0, 0, code); fpRechercher.setWidget(0, 1, paneltbCode); fpRechercher.setWidget(0, 2, libelle); fpRechercher.setWidget(0, 3, paneltbLibelle); fpRechercher.setWidget(1, 0, type); fpRechercher.setWidget(1, 1, panelslbType); fpRechercher.setWidget(1, 2, statut); fpRechercher.setWidget(1, 3, panelslbStatut); fpRechercher.setWidget(2, 0, libelleDateDebut); fpRechercher.setWidget(2, 1, conteneurDateDebut); fpRechercher.setWidget(2, 2, libelleDateFin); fpRechercher.setWidget(2, 3, conteneurDateFin); fpRechercher.setWidget(3, 0, createur); fpRechercher.setWidget(3, 1, panelslbCreateur); fpRechercher.getColumnFormatter().setWidth(0, CampagneMoteurRechercheViewImplConstants.LARGEUR_COL_LIBELLE); fpRechercher.getColumnFormatter().setWidth(1, CampagneMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fpRechercher.getColumnFormatter().setWidth(2, CampagneMoteurRechercheViewImplConstants.LARGEUR_COL_LIBELLE); fpRechercher.getColumnFormatter().setWidth(3, CampagneMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); captionPanel.add(fpRechercher); conteneur.add(captionPanel); }
From source file:com.square.client.gwt.client.view.personne.action.PersonneActionContenuViewImpl.java
License:Open Source License
private void constructionNotification() { final CaptionPanel captionNotification = new CaptionPanel(constants.titreNotification()); final VerticalPanel verticalPanelNotificationContenu = new VerticalPanel(); // Horizontal panel partie notification rappel final HorizontalPanel horizontalPanelRappel = new HorizontalPanel(); cbRappel = new CheckBox(); cbRappel.ensureDebugId(viewDebudIdConstants.debugIdCbRappel()); aidecbRappel = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_RAPPEL, isAdmin); ajouterAideComposant(aidecbRappel);//from w ww.j a va 2s . c o m lbNotification = new ListBox(); lbNotification.ensureDebugId(viewDebudIdConstants.debugIdLbNotification()); horizontalPanelRappel.add(aidecbRappel); horizontalPanelRappel.add(cbRappel); final Label libelleRappel = new Label(constants.libelleRappel()); horizontalPanelRappel.add(libelleRappel); horizontalPanelRappel.setCellVerticalAlignment(libelleRappel, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.setCellVerticalAlignment(aidecbRappel, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.add(lbNotification); final Label libelleRappelAvant = new Label(constants.libelleRappelAvant()); horizontalPanelRappel.add(libelleRappelAvant); horizontalPanelRappel.setCellVerticalAlignment(libelleRappelAvant, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.setSpacing(2); // Horizontal panel partie notification Mail final HorizontalPanel horizontalPanelMail = new HorizontalPanel(); cbRappelMail = new CheckBox(); aidecbRappelMail = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_RAPPEL_MAIL, isAdmin); ajouterAideComposant(aidecbRappelMail); horizontalPanelMail.add(aidecbRappelMail); horizontalPanelMail.add(cbRappelMail); cbRappelMail.ensureDebugId(viewDebudIdConstants.debugIdCbRappelMail()); final Label libelleRappelMail = new Label(constants.rappelMail()); horizontalPanelMail.add(libelleRappelMail); horizontalPanelMail.setCellVerticalAlignment(libelleRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelMail.setCellVerticalAlignment(aidecbRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelMail.setSpacing(2); // Horizontal panel partie notification ajout agenda final HorizontalPanel horizontalPanelAjoutAgenda = new HorizontalPanel(); cbAjoutAgenda = new CheckBox(); aideCbAjoutAgenda = new AideComposant(106010L, isAdmin); ajouterAideComposant(aideCbAjoutAgenda); horizontalPanelAjoutAgenda.add(aideCbAjoutAgenda); horizontalPanelAjoutAgenda.add(cbAjoutAgenda); cbAjoutAgenda.ensureDebugId(viewDebudIdConstants.debugIdCbAjoutAgenda()); final Label libelleAjoutAgenda = new Label(constants.ajoutAgenda()); horizontalPanelAjoutAgenda.add(libelleAjoutAgenda); horizontalPanelAjoutAgenda.setCellVerticalAlignment(libelleAjoutAgenda, HasAlignment.ALIGN_MIDDLE); horizontalPanelAjoutAgenda.setCellVerticalAlignment(aideCbAjoutAgenda, HasAlignment.ALIGN_MIDDLE); horizontalPanelAjoutAgenda.setSpacing(2); verticalPanelNotificationContenu.add(horizontalPanelRappel); verticalPanelNotificationContenu.add(horizontalPanelMail); verticalPanelNotificationContenu.add(horizontalPanelAjoutAgenda); captionNotification.add(verticalPanelNotificationContenu); flexTable.setWidget(1, 0, captionNotification); flexTable.getFlexCellFormatter().setColSpan(1, 0, 2); }
From source file:com.square.client.gwt.client.view.personne.action.PersonneActionContenuViewImpl.java
License:Open Source License
private void constructionAction() { final CaptionPanel captionAction = new CaptionPanel(constants.titreAction()); final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> properties = new SuggestListBoxSingleProperties<IdentifiantLibelleGwt>() { @Override//w w w . ja v a 2s . c o m public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; // Construction partie nature, rsultat final FlexTable ftNatureResultat = new FlexTable(); ftNatureResultat.setWidth(AppControllerConstants.POURCENT_100); ftNatureResultat.getColumnFormatter().setWidth(0, "15%"); ftNatureResultat.getColumnFormatter().setWidth(1, "35%"); ftNatureResultat.getColumnFormatter().setWidth(2, "15%"); ftNatureResultat.getColumnFormatter().setWidth(3, "35%"); ftNatureResultat.setCellSpacing(5); // Nature slbNatureContact = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(properties); slbNatureContact.ensureDebugId(viewDebudIdConstants.debugIdSlbsNatureContactAction()); aideslbNatureContact = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_NATURE_CONTACT, isAdmin); ajouterAideComposant(aideslbNatureContact); slbNatureResultat = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(properties); slbNatureResultat.ensureDebugId(viewDebudIdConstants.debugIdSlbsNatureResultatAction()); aideslbNatureResultat = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_NATURE_RESULTAT, isAdmin); ajouterAideComposant(aideslbNatureResultat); // aideslbNatureContact = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_NATURE_CONTACT, isAdmin); // ajouterAideComposant(aideslbNatureContact); final HorizontalPanel hpNatureContact = new HorizontalPanel(); hpNatureContact.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); hpNatureContact.add(slbNatureContact); hpNatureContact .add(iconeErreurChampManager.createInstance("ActionModificationDto.nature", slbNatureContact)); hpNatureContact.add(aideslbNatureContact); hpNatureContact.setSpacing(2); lEtat = new Label(""); panelEtat = new HorizontalPanel(); panelEtat.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); panelEtat.add(slbNatureResultat); panelEtat.add( iconeErreurChampManager.createInstance("ActionModificationDto.natureResultat", slbNatureResultat)); panelEtat.add(aideslbNatureResultat); panelEtat.setSpacing(2); // Opportunit final Label ltitreOpportunite = new Label(constants.libelleOpportunite()); lOpportunite = new Hyperlink(); lOpportunite.setStyleName("lienSquare"); aidelOpportunite = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_OPPORTUNITE, isAdmin); ajouterAideComposant(aidelOpportunite); final HorizontalPanel panelLink = new HorizontalPanel(); panelLink.add(lOpportunite); panelLink.add(aidelOpportunite); panelLink.setCellVerticalAlignment(aidelOpportunite, HasVerticalAlignment.ALIGN_MIDDLE); panelLink.setCellVerticalAlignment(lOpportunite, HasVerticalAlignment.ALIGN_MIDDLE); panelLink.setSpacing(10); // Statut de l'action final HorizontalPanel panelStatut = new HorizontalPanel(); panelStatut.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); panelStatut.setSpacing(2); final Label libelleStatut = new Label(constants.libelleStatut()); slbStatut = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(properties); slbStatut.ensureDebugId(viewDebudIdConstants.debugIdSlbStatut()); aideslbStatut = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_STATUT, isAdmin); ajouterAideComposant(aideslbStatut); panelStatut.add(slbStatut); panelStatut.add(iconeErreurChampManager.createInstance("ActionModificationDto.statut", slbStatut)); panelStatut.add(aideslbStatut); // Rsultat de l'action slbsResultatAction = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(properties); slbsResultatAction.ensureDebugId(viewDebudIdConstants.debugIdSlbsResultatAction()); aideslbsResultatAction = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_RESULTAT_ACTION, isAdmin); ajouterAideComposant(aideslbsResultatAction); final HorizontalPanel panelResultatAction = new HorizontalPanel(); panelResultatAction.add(slbsResultatAction); panelResultatAction.add(aideslbsResultatAction); panelResultatAction.setSpacing(10); final Label libelleResultat = new Label(constants.libelleResultat()); // Construction zone de text pour l'historique des actions prcdentes htmlHistorique = new HTML(); htmlHistorique.ensureDebugId(viewDebudIdConstants.debugIdTaHistorique()); htmlHistorique.setWidth(AppControllerConstants.POURCENT_100); aidehtmlHistorique = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_HISTORIQUE, isAdmin); ajouterAideComposant(aidehtmlHistorique); final ScrollPanel conteneurHistorique = new ScrollPanel(); conteneurHistorique.setStylePrimaryName(SquareResources.INSTANCE.css().historiqueAction()); conteneurHistorique.setWidth(AppControllerConstants.POURCENT_100); conteneurHistorique.setHeight("100px"); conteneurHistorique.add(htmlHistorique); // Zone de texte rtaDescriptif = new RichTextArea(); rtaDescriptif.ensureDebugId(viewDebudIdConstants.debugIdRtaDescriptif()); rttToolbar = new RichTextToolbar(rtaDescriptif, RichTextToolbar.BOLD, RichTextToolbar.ITALIC, RichTextToolbar.UNDERLINE); rttToolbar.ensureDebugId(viewDebudIdConstants.debugIdRttToolbar()); rtpCommmentaire = new RichTextPanel(rttToolbar, rtaDescriptif); rtpCommmentaire.ensureDebugId(viewDebudIdConstants.debugIdRtpCommmentaire()); rttToolbar.setWidth(AppControllerConstants.POURCENT_100); rtpCommmentaire.setWidth(AppControllerConstants.POURCENT_100); aidertpCommentaire = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_COMMENTAIRE, isAdmin); ajouterAideComposant(aidertpCommentaire); ftNatureResultat.setWidget(0, 0, new Label(constants.libelleNatureAction())); ftNatureResultat.setWidget(0, 1, hpNatureContact); ftNatureResultat.setWidget(0, 2, lEtat); ftNatureResultat.setWidget(0, 3, panelEtat); ftNatureResultat.setWidget(1, 0, ltitreOpportunite); ftNatureResultat.setWidget(1, 1, panelLink); ftNatureResultat.setWidget(2, 0, libelleStatut); ftNatureResultat.setWidget(2, 1, panelStatut); ftNatureResultat.setWidget(3, 0, libelleResultat); ftNatureResultat.setWidget(3, 1, panelResultatAction); ftNatureResultat.setWidget(4, 0, new Label(constants.notes())); ftNatureResultat.getFlexCellFormatter().setColSpan(4, 0, 4); ftNatureResultat.setWidget(5, 0, aidehtmlHistorique); ftNatureResultat.setWidget(6, 0, conteneurHistorique); ftNatureResultat.getFlexCellFormatter().setColSpan(6, 0, 4); ftNatureResultat.setWidget(7, 0, aidertpCommentaire); ftNatureResultat.setWidget(8, 0, rtpCommmentaire); ftNatureResultat.getFlexCellFormatter().setColSpan(8, 0, 4); captionAction.add(ftNatureResultat); flexTable.setWidget(3, 0, captionAction); flexTable.getFlexCellFormatter().setColSpan(3, 0, 2); }
From source file:com.square.client.gwt.client.view.personne.action.PersonneInfosActionViewImpl.java
License:Open Source License
/** * Constructeur./*from ww w . j a v a 2 s .c o m*/ * @param isAdmin si l'utilsiateur courant est admin */ public PersonneInfosActionViewImpl(boolean isAdmin) { iconeErreurChampManager = new IconeErreurChampManager(); this.isAdmin = isAdmin; constants = (PersonneInfosActionViewImplConstants) GWT.create(PersonneInfosActionViewImplConstants.class); // Proprits por la suggestListBox final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> slbIdentifiantLibelleProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleGwt>() { @Override public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; // Initialisation des champs de l'entte. final HTML libelleType = new HTML(constants.libelleType(), false); libelleType.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); lType = new Label("", false); lType.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); final HTML libelleObjet = new HTML(constants.libelleObjet(), false); libelleObjet.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); lObjet = new Label("", false); lObjet.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); final HTML libelleSousObjet = new HTML(constants.libelleSousObjet(), false); libelleSousObjet.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); lSousObjet = new Label("", false); lSousObjet.addStyleName(SquareResources.INSTANCE.css().headerEnteteAction()); libelleNiveau = new HTML(" ", false); lNiveau = new Label("", false); libelleDate = new Label(constants.libelleDate(), false); cdbDate = new DecoratedCalendrierDateBox(true); aidecdbDate = new AideComposant(AideComposantConstants.AIDE_PERSONNE_INFOS_ACTION_DATE, isAdmin); ajouterAideComposant(aidecdbDate); HorizontalPanel panelcdbDate = new HorizontalPanel(); panelcdbDate.add(cdbDate); panelcdbDate.add(aidecdbDate); panelcdbDate.setSpacing(5); final HTML libelleRessource = new HTML(constants.libelleRessource(), false); lRessource = new Label("", false); final HTML libellePriorite = new HTML(constants.libellePriorite(), false); slbPriorite = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(slbIdentifiantLibelleProperties); slbPriorite.ensureDebugId(viewDebugIdConstants.debugIdSlbPriorite()); aideslbPriorite = new AideComposant(AideComposantConstants.AIDE_PERSONNE_INFOS_ACTION_PRIORITE, isAdmin); ajouterAideComposant(aideslbPriorite); HorizontalPanel panelslbPriorite = new HorizontalPanel(); panelslbPriorite.add(slbPriorite); panelslbPriorite.add(aideslbPriorite); panelslbPriorite.setSpacing(5); lReclamation = new Label("", false); lReclamation.addStyleName(SquareResources.INSTANCE.css().labelReclamation()); tbfHeureDate = new DecoratedTextBoxFormat("NN:NN"); tbfHeureDate.addStyleName(SquareResources.INSTANCE.css().heureDate()); aidetbfHeureDate = new AideComposant(AideComposantConstants.AIDE_PERSONNE_INFOS_ACTION_HEURE_DATE, isAdmin); ajouterAideComposant(aidetbfHeureDate); final HorizontalPanel paneltbfHeureDate = new HorizontalPanel(); paneltbfHeureDate.add(tbfHeureDate); paneltbfHeureDate.add(aidetbfHeureDate); paneltbfHeureDate.setSpacing(2); slbDuree = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(slbIdentifiantLibelleProperties); slbDuree.ensureDebugId(viewDebugIdConstants.debugIdSlbDuree()); slbDuree.setWidth(PersonneInfosActionViewImplConstants.LARGEUR_SLB_DUREE); aideSlbDuree = new AideComposant(107004L, isAdmin); final HorizontalPanel panelslbDuree = new HorizontalPanel(); panelslbDuree.add(slbDuree); panelslbDuree.add(aideSlbDuree); panelslbDuree.setSpacing(2); panelcdbDate.setWidth("120%"); paneltbfHeureDate.setWidth("130%"); panelslbDuree.setWidth("120%"); lRessource.setWidth("110%"); panelslbPriorite.setWidth("110%"); final HTML libelleNatureContact = new HTML(constants.libelleNatureContact(), false); lNatureContact = new Label("", false); final HTML libelleCampagne = new HTML(constants.libelleCampagne(), false); lCampagne = new Label("", false); final HTML libelleDateTerminee = new HTML(constants.libelleFaitLe(), false); lDateTerminee = new Label("", false); lHeureTerminee = new Label("", false); final List<ChampSynthese> listeChamps = new ArrayList<ChampSynthese>(); listeChamps.add(new ChampSynthese(lType, libelleType, true)); listeChamps.add(new ChampSynthese(lObjet, libelleObjet, true)); listeChamps.add(new ChampSynthese(lSousObjet, libelleSousObjet, true)); listeChamps.add(new ChampSynthese(lReclamation, "", true)); final ChampSynthese champSyntheseNiveau = new ChampSynthese(lNiveau, libelleNiveau, true); listeChamps.add(champSyntheseNiveau); // si l'action est termine, on ne garde que les lments de la premire ligne listeChamps.add(new ChampSynthese(panelcdbDate, libelleDate, iconeErreurChampManager.createInstance("ActionModificationDto.dateAction", cdbDate), true)); listeChamps.add(new ChampSynthese(paneltbfHeureDate, constants.libelleA(), constants.libelleDe(), iconeErreurChampManager.createInstance("ActionModificationDto.dateAction", tbfHeureDate), true)); listeChamps.add(new ChampSynthese(panelslbDuree, constants.libelleDuree(), iconeErreurChampManager.createInstance("ActionModificationDto.idDuree", slbDuree), true, true)); listeChamps.add(new ChampSynthese(lRessource, libelleRessource, true)); listeChamps.add(new ChampSynthese(panelslbPriorite, libellePriorite, iconeErreurChampManager.createInstance("ActionModificationDto.priorite", slbPriorite), true)); listeChamps.add(new ChampSynthese(lDateTerminee, libelleDateTerminee, false)); listeChamps.add(new ChampSynthese(lHeureTerminee, "", false)); listeChamps.add(new ChampSynthese(lNatureContact, libelleNatureContact, false)); listeChamps.add(new ChampSynthese(lCampagne, libelleCampagne, false)); final VerticalPanel panelContenuBloc = new VerticalPanel(); panelContenuBloc.setStylePrimaryName(SquareResources.INSTANCE.css().personneInfosAction()); panelContenuBloc.setSpacing(5); contenu = new VerticalPanel(); contenu.setWidth(AppControllerConstants.POURCENT_100); panelContenuBloc.add(contenu); final HorizontalPanel horizontalPanelBouton = new HorizontalPanel(); btnAjoutActionLiee = new DecoratedButton(constants.boutonAjouterActionLiee()); btnEnregistrer = new DecoratedButton(constants.boutonEnregistrer()); horizontalPanelBouton.add(btnAjoutActionLiee); horizontalPanelBouton.add(btnEnregistrer); horizontalPanelBouton.setSpacing(5); panelContenuBloc.add(horizontalPanelBouton); panelContenuBloc.setCellHorizontalAlignment(horizontalPanelBouton, HasAlignment.ALIGN_RIGHT); panelContenuBloc.setWidth(AppControllerConstants.POURCENT_100); blocSyntheseDepliant = new BlocSyntheseDepliant(listeChamps, panelContenuBloc, 5); initWidget(blocSyntheseDepliant); }
From source file:com.square.client.gwt.client.view.personne.coordonnees.AdresseCreationViewImpl.java
License:Open Source License
/** * Construit un bloc avec un label et un champ pour l'affichage. *//*from www . j ava 2 s. c om*/ private HorizontalPanel construireBlocIcone(final Widget composant, final String nomChamp, AideComposant aideComposant) { final IconeErreurChamp icone = iconeErreurChampManager.createInstance(nomChamp, composant); final HorizontalPanel panel = new HorizontalPanel(); panel.add(composant); panel.setSpacing(2); composant.setWidth("96%"); HorizontalPanel panelIcone = new HorizontalPanel(); // panelIcone.setSpacing(5); panelIcone.add(icone); panelIcone.add(aideComposant); panel.add(panelIcone); // panelIcone.setCellVerticalAlignment(aideComposant, HasVerticalAlignment.ALIGN_MIDDLE); panel.setCellVerticalAlignment(panelIcone, HasVerticalAlignment.ALIGN_MIDDLE); return panel; }
From source file:com.square.client.gwt.client.view.personne.coordonnees.PersonneCoordonneesViewImpl.java
License:Open Source License
private void construireBlocInformations() { final Label lTel = new Label(viewConstants.telephone()); final Label lTel2 = new Label(viewConstants.telephone()); final Label lEmail = new Label(viewConstants.email()); lTel.setWordWrap(false);// w ww.j a va 2 s . c om lTel2.setWordWrap(false); lEmail.setWordWrap(false); final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> slbIdentifiantLibelleProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleGwt>() { @Override public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; tbTelephone = new DecoratedTextBoxFormat(PersonneCoordonneesViewImplConstants.FORMAT_TELEPHONE_DEFAUT); tbTelephone.addStyleName(SquareResources.INSTANCE.css().champTelephone()); tbTelephone.ensureDebugId(viewDebugIdConstants.debugIdTbTelephone()); aidetbTelephone = new AideComposant(AideComposantConstants.AIDE_PERSONNE_COORDONNEES_TELEPHONE, isAdmin); ajouterAideComposant(aidetbTelephone); slbNatureTelephone = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>( slbIdentifiantLibelleProperties); slbNatureTelephone.ensureDebugId(viewDebugIdConstants.debugIdSlbNatureTelephone()); slbNatureTelephone.addStyleName(SmatisResources.INSTANCE.css().listeNatureTelephone()); aideslbNatureTelephone = new AideComposant( AideComposantConstants.AIDE_PERSONNE_COORDONNEES_NATURE_TELEPHONE, isAdmin); ajouterAideComposant(aideslbNatureTelephone); tbTelephone2 = new DecoratedTextBoxFormat(PersonneCoordonneesViewImplConstants.FORMAT_TELEPHONE_DEFAUT); tbTelephone2.addStyleName(SquareResources.INSTANCE.css().champTelephone()); tbTelephone2.ensureDebugId(viewDebugIdConstants.debugIdTbTelephone2()); aidetbTelephone2 = new AideComposant(AideComposantConstants.AIDE_PERSONNE_COORDONNEES_TELEPHONE_DEUX, isAdmin); ajouterAideComposant(aidetbTelephone2); slbNatureTelephone2 = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>( slbIdentifiantLibelleProperties); slbNatureTelephone2.ensureDebugId(viewDebugIdConstants.debugIdSlbNatureTelephone2()); slbNatureTelephone2.addStyleName(SmatisResources.INSTANCE.css().listeNatureTelephone()); aideslbNatureTelephone2 = new AideComposant( AideComposantConstants.AIDE_PERSONNE_COORDONNEES_NATURE_TELEPHONE_DEUX, isAdmin); ajouterAideComposant(aidetbTelephone2); tbEmail = new DecoratedTextBox(); tbEmail.setMaxLength(PersonneCoordonneesViewImplConstants.MAX_LENGTH_TB_EMAIL); tbEmail.ensureDebugId(viewDebugIdConstants.debugIdTbEmail()); tbEmail.setWidth("300px"); aidetbEmail = new AideComposant(AideComposantConstants.AIDE_PERSONNE_COORDONNEES_EMAIL, isAdmin); ajouterAideComposant(aidetbEmail); imgFlagPaysTelephone = new Image(SquareResources.INSTANCE.flagFr()); imgFlagPaysTelephone.ensureDebugId(viewDebugIdConstants.debugIdImgFlagPaysTelephone()); imgFlagPaysTelephone.addStyleName(SquareResources.INSTANCE.css().imgDrapeau()); imgFlagPaysTelephone2 = new Image(SquareResources.INSTANCE.flagFr()); imgFlagPaysTelephone2.ensureDebugId(viewDebugIdConstants.debugIdImgFlagPaysTelephone2()); imgFlagPaysTelephone2.addStyleName(SquareResources.INSTANCE.css().imgDrapeau()); final HorizontalPanel blocTel = new HorizontalPanel(); blocTel.setSpacing(2); blocTel.add(lTel); slbNatureTelephone.addStyleName(SquareResources.INSTANCE.css().textBoxNature()); blocTel.add(construireBlocIcone(tbTelephone, "TelephoneDto.numero.0", aidetbTelephone)); blocTel.add(construireBlocIcone(slbNatureTelephone, "TelephoneDto.nature.0", aideslbNatureTelephone)); blocTel.add(imgFlagPaysTelephone); imgTelephoneActif = new Image(SmatisResources.INSTANCE.iconePhoneActif()); imgTelephoneActif.addStyleName(SmatisResources.INSTANCE.css().imgTelephoneActif()); imgTelephoneActif.setVisible(false); imgTelephoneInactif = new Image(SmatisResources.INSTANCE.iconePhoneInactif()); imgTelephoneInactif.setVisible(false); blocTel.add(imgTelephoneActif); blocTel.add(imgTelephoneInactif); blocTel.setCellVerticalAlignment(lTel, HasAlignment.ALIGN_MIDDLE); final HorizontalPanel blocTel2 = new HorizontalPanel(); blocTel2.setSpacing(2); blocTel2.add(lTel2); slbNatureTelephone2.addStyleName(SquareResources.INSTANCE.css().textBoxNature()); blocTel2.add(construireBlocIcone(tbTelephone2, "TelephoneDto.numero.1", aidetbTelephone2)); blocTel2.add(construireBlocIcone(slbNatureTelephone2, "TelephoneDto.nature.1", aideslbNatureTelephone2)); blocTel2.add(imgFlagPaysTelephone2); imgTelephone2Actif = new Image(SmatisResources.INSTANCE.iconePhoneActif()); imgTelephone2Actif.addStyleName(SmatisResources.INSTANCE.css().imgTelephoneActif()); imgTelephone2Actif.setVisible(false); imgTelephone2Inactif = new Image(SmatisResources.INSTANCE.iconePhoneInactif()); imgTelephone2Inactif.setVisible(false); blocTel2.add(imgTelephone2Actif); blocTel2.add(imgTelephone2Inactif); blocTel2.setCellVerticalAlignment(lTel2, HasAlignment.ALIGN_MIDDLE); final FlexTable ftTelEmail = new FlexTable(); ftTelEmail.setWidth(AppControllerConstants.POURCENT_100); ftTelEmail.setWidget(0, 0, lTel); ftTelEmail.setWidget(0, 1, blocTel); ftTelEmail.setWidget(0, 2, lTel2); ftTelEmail.setWidget(0, 3, blocTel2); ftTelEmail.setWidget(1, 0, lEmail); ftTelEmail.setWidget(1, 1, construireBlocIcone(tbEmail, "EmailDto.adresse.0", aidetbEmail)); ftTelEmail.getColumnFormatter().setWidth(0, "4%"); ftTelEmail.getColumnFormatter().setWidth(1, "46%"); ftTelEmail.getColumnFormatter().setWidth(2, "4%"); ftTelEmail.getColumnFormatter().setWidth(3, "46%"); fieldSetPanelInformations.add(ftTelEmail); }
From source file:com.square.client.gwt.client.view.personne.coordonnees.PopupCoordonneesAdresseViewImpl.java
License:Open Source License
/** * Constructeur.//from w ww.ja v a2 s . c om * @param constantes les constantes. */ public PopupCoordonneesAdresseViewImpl(ConstantesModel constantes) { this.viewConstants = GWT.create(PopupCoordonneesAdresseViewImplConstants.class); this.iconeErreurChampManager = new IconeErreurChampManager(); bAnnuler = new DecoratedButton(this.viewConstants.annuler()); bEnregistrer = new DecoratedButton(this.viewConstants.enregistrer()); btnReduire = new DecoratedButton(this.viewConstants.reduire()); popup = new Popup(viewConstants.titrePopupAjoutAdresse(), false, true, true); blocAdresse = new AdresseCreationViewImpl(this.iconeErreurChampManager, 0, constantes.isHasRoleAdmin()); blocAdresse.afficheBlocCoordonneesFrance(true); final HorizontalPanel popupButtonsPanel = new HorizontalPanel(); popupButtonsPanel.setSpacing(5); popupButtonsPanel.add(bEnregistrer); popupButtonsPanel.add(btnReduire); popupButtonsPanel.add(bAnnuler); // on en fait une popup minimisable minimizablePopup = new PopupMinimizable(popup, viewConstants.titrePopupAjoutAdresse(), btnReduire); final VerticalPanel panelPopup = new VerticalPanel(); panelPopup.setWidth(PopupCoordonneesAdresseViewImplConstants.LARGEUR_POPUP); panelPopup.add(blocAdresse); panelPopup.add(popupButtonsPanel); panelPopup.setCellHorizontalAlignment(popupButtonsPanel, HasHorizontalAlignment.ALIGN_CENTER); focusPopupPanel = new FocusPanel(); focusPopupPanel.setWidth(AppControllerConstants.POURCENT_100); focusPopupPanel.add(panelPopup); popup.setWidget(focusPopupPanel, 0); popup.addStyleName(SquareResources.INSTANCE.css().popupAjoutAdresse()); }
From source file:com.square.client.gwt.client.view.personne.coordonnees.PopupSelectionPaysViewImpl.java
License:Open Source License
/** * Constructeur.// ww w. j ava2s. c o m * @param properties les proprits de la popup. */ public PopupSelectionPaysViewImpl(ListBoxPaysProperties properties) { super(popupConstants.titrePopup(), false, true, true); this.properties = properties; this.mappSuggestPays = new HashMap<Integer, PaysSimpleModel>(); // Construction du contenu de la popup final VerticalPanel contenuPopup = new VerticalPanel(); contenuPopup.setSpacing(5); // Construction de la zone de recherche final HorizontalPanel pRecherche = new HorizontalPanel(); pRecherche.setSpacing(5); final Label lRechercher = new Label(popupConstants.rechercher()); tbSaisie = new DecoratedTextBox(); pRecherche.add(lRechercher); pRecherche.setCellVerticalAlignment(lRechercher, HasAlignment.ALIGN_MIDDLE); pRecherche.add(tbSaisie); contenuPopup.add(pRecherche); // Construction du tableau des rsultats result = new ListGrid(); contenuPopup.add(result); // Ajout du bouton d'annulation btnAnnuler = new DecoratedButton(popupConstants.btnAnnuler()); contenuPopup.add(btnAnnuler); contenuPopup.setCellHorizontalAlignment(btnAnnuler, HasAlignment.ALIGN_CENTER); this.setWidget(contenuPopup); this.addStyleName(SquareResources.INSTANCE.css().popupSelectionPays()); }