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.personne.physique.creation.PopupModificationPersonneDoublonViewImpl.java
License:Open Source License
/** * Constructeur par dfaut./*from w w w . ja v a2 s . c o m*/ */ public PopupModificationPersonneDoublonViewImpl() { super(viewConstants.titrePopup(), false, false, true); focusPanel = new FocusPanel(); focusPanel.setWidth(AppControllerConstants.POURCENT_100); // Ajout des boutons final VerticalPanel contenu = new VerticalPanel(); contenu.setSpacing(10); contenu.setWidth(AppControllerConstants.POURCENT_100); final Label lAvertissement = new Label(viewConstants.msgAvertissement()); final HorizontalPanel pBoutons = new HorizontalPanel(); pBoutons.setSpacing(10); pBoutons.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); pBoutons.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); btnEnregistrer = new DecoratedButton(viewConstants.labelBtnEnregistrer()); btnEnregistrerPuisFusionner = new DecoratedButton(viewConstants.labelBtnEnregistrerPuisFusionner()); btnAnnuler = new DecoratedButton(viewConstants.labelBtnAnnuler()); pBoutons.add(btnEnregistrer); pBoutons.add(btnEnregistrerPuisFusionner); pBoutons.add(btnAnnuler); contenu.add(lAvertissement); contenu.add(pBoutons); contenu.setCellHorizontalAlignment(lAvertissement, HasHorizontalAlignment.ALIGN_LEFT); contenu.setCellHorizontalAlignment(pBoutons, HasHorizontalAlignment.ALIGN_CENTER); focusPanel.setWidget(contenu); this.setWidget(focusPanel, 0); this.setWidth(PopupModificationPersonneDoublonViewImplConstants.LARGEUR_POPUP); this.addStyleName(SquareResources.INSTANCE.css().popupModificationPersonneDoublon()); }
From source file:com.square.client.gwt.client.view.personne.physique.gestion.GestionPersonnePhysiqueViewImpl.java
License:Open Source License
/** * Construit un affichage pour le resume. * @return l'affichage correspondant au resume. *///from ww w. j a va 2 s .c om private Widget construireGestionPanel() { 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() }; } }; final SuggestListBoxSingleProperties<IdentifiantLibelleBooleanModel> slbIdentifiantLibelleBooleanProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleBooleanModel>() { @Override public String getSelectSuggestRenderer(IdentifiantLibelleBooleanModel row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleBooleanModel row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; final SuggestListBoxSingleProperties<IdentifiantLibelleOuiNonModel> slbIdentifiantLibelleOuiNonProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleOuiNonModel>() { @Override public String getSelectSuggestRenderer(IdentifiantLibelleOuiNonModel row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleOuiNonModel row) { return new String[] { row == null ? "" : row.getLibelle() }; } }; btGenregistrer = new DecoratedButton(constants.lbGenregistrer()); btGenregistrer.ensureDebugId(constantsDebugId.debugIdBtGenregistrer()); // disableElement(btGenregistrer.getElement()); btGAnnuler = new DecoratedButton(constants.lbGannuler()); btGAnnuler.ensureDebugId(constantsDebugId.debugIdBtGAnnuler()); final HorizontalPanel conteneurBoutons = new HorizontalPanel(); conteneurBoutons.setSpacing(5); conteneurBoutons.add(btGenregistrer); conteneurBoutons.add(btGAnnuler); conteneurBoutons.setCellVerticalAlignment(btGAnnuler, HasVerticalAlignment.ALIGN_MIDDLE); final VerticalPanel panel = new VerticalPanel(); panel.setWidth(AppControllerConstants.POURCENT_100); panel.setSpacing(10); panel.add(construireBlocInformations(slbIdentifiantLibelleProperties)); panel.add(construireBlocInfosSup(slbIdentifiantLibelleProperties, slbIdentifiantLibelleBooleanProperties)); panel.add(construireBlocCreation()); panel.add(conteneurBoutons); panel.setCellHorizontalAlignment(conteneurBoutons, HasHorizontalAlignment.ALIGN_RIGHT); return panel; }
From source file:com.square.client.gwt.client.view.personne.physique.gestion.GestionPersonnePhysiqueViewImpl.java
License:Open Source License
private HorizontalPanel construireBlocAide(final Widget composant, AideComposant aide) { final HorizontalPanel panel = new HorizontalPanel(); panel.setSpacing(0); panel.add(composant);//from www . j a v a 2s. c om panel.add(aide); panel.setCellVerticalAlignment(aide, HasVerticalAlignment.ALIGN_MIDDLE); panel.setCellHorizontalAlignment(aide, HasHorizontalAlignment.ALIGN_CENTER); panel.setCellWidth(aide, "40"); return panel; }
From source file:com.square.client.gwt.client.view.personne.physique.moteur.recherche.PersonnePhysiqueMoteurRechercheViewImpl.java
License:Open Source License
/** * Construit le bloc des criteres de recherche. *//*from w w w . j av a 2s. c o m*/ private void construireBlocIdentification() { tbNumeroClient = new DecoratedTextBox(); tbNumeroClient.ensureDebugId(viewDebugIdConstants.debugIdTbNumClient()); aidetbNumeroClient = new AideComposant( AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NUMERO_CLIENT, isAdmin); final HorizontalPanel paneltbNumeroClient = new HorizontalPanel(); paneltbNumeroClient.setSpacing(5); paneltbNumeroClient.add(tbNumeroClient); paneltbNumeroClient.add(aidetbNumeroClient); ajouterAideComposant(aidetbNumeroClient); tbNom = new DecoratedTextBox(); tbNom.ensureDebugId(viewDebugIdConstants.debugIdTbNom()); aidetbNom = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NOM, isAdmin); final HorizontalPanel paneltbNom = new HorizontalPanel(); paneltbNom.setSpacing(5); paneltbNom.add(tbNom); paneltbNom.add(aidetbNom); ajouterAideComposant(aidetbNom); tbNomJF = new DecoratedTextBox(); tbNomJF.ensureDebugId(viewDebugIdConstants.debugIdTbNomJF()); aidetbNomJF = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NOM_JEUNE_FILLE, isAdmin); final HorizontalPanel paneltbNomJF = new HorizontalPanel(); paneltbNomJF.setSpacing(5); paneltbNomJF.add(tbNomJF); paneltbNomJF.add(aidetbNomJF); ajouterAideComposant(aidetbNomJF); tbPrenom = new DecoratedTextBox(); tbPrenom.ensureDebugId(viewDebugIdConstants.debugIdTbPrenom()); aidetbPrenom = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_PRENOM, isAdmin); final HorizontalPanel paneltbPrenom = new HorizontalPanel(); paneltbPrenom.setSpacing(5); paneltbPrenom.add(tbPrenom); paneltbPrenom.add(aidetbPrenom); ajouterAideComposant(aidetbPrenom); tbNumeroRO = new DecoratedTextBox(); tbNumeroRO.ensureDebugId(viewDebugIdConstants.debugIdTbNumRO()); aidetbNumeroRO = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NUMERO_RO, isAdmin); final HorizontalPanel paneltbNumeroRO = new HorizontalPanel(); paneltbNumeroRO.setSpacing(5); paneltbNumeroRO.add(tbNumeroRO); paneltbNumeroRO.add(aidetbNumeroRO); ajouterAideComposant(aidetbNumeroRO); cdbDateNaissance = new DecoratedCalendrierDateBox(true); cdbDateNaissance.ensureDebugId(viewDebugIdConstants.debugIdCdbDateNaissance()); aidecdbDateNaissance = new AideComposant( AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_DATE_NAISSANCE, isAdmin); final HorizontalPanel panelcdbDateNaissance = new HorizontalPanel(); panelcdbDateNaissance.setSpacing(5); panelcdbDateNaissance.add(cdbDateNaissance); panelcdbDateNaissance.add(aidecdbDateNaissance); ajouterAideComposant(aidecdbDateNaissance); slbNature = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbNature.ensureDebugId(viewDebugIdConstants.debugIdSlbNature()); slbNature.setScrollPanelSuggestMultipleHeight( PersonnePhysiqueMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbNature = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NATURE, isAdmin); final HorizontalPanel panelslbNature = new HorizontalPanel(); panelslbNature.setSpacing(5); panelslbNature.add(slbNature); panelslbNature.add(aideslbNature); ajouterAideComposant(aideslbNature); final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.identification()); final Label numeroClient = creerLibelle(viewConstants.numeroClient()); final Label nom = creerLibelle(viewConstants.nom()); final Label nomJF = creerLibelle(viewConstants.nomJF()); final Label prenom = creerLibelle(viewConstants.prenom()); final Label numeroRO = creerLibelle(viewConstants.numeroRO()); final Label dateNaissance = creerLibelle(viewConstants.dateNaissance()); final Label nature = creerLibelle(viewConstants.nature()); final FlexTable fpIdentification = new FlexTable(); fpIdentification.setWidth(AppControllerConstants.POURCENT_100); fpIdentification.setCellSpacing(5); fpIdentification.setWidget(0, 0, numeroClient); fpIdentification.setWidget(0, 1, paneltbNumeroClient); fpIdentification.setWidget(0, 2, nom); fpIdentification.setWidget(0, 3, paneltbNom); fpIdentification.setWidget(0, 4, prenom); fpIdentification.setWidget(0, 5, paneltbPrenom); fpIdentification.setWidget(1, 0, numeroRO); fpIdentification.setWidget(1, 1, paneltbNumeroRO); fpIdentification.setWidget(1, 2, nomJF); fpIdentification.setWidget(1, 3, paneltbNomJF); fpIdentification.setWidget(1, 4, dateNaissance); fpIdentification.setWidget(1, 5, panelcdbDateNaissance); fpIdentification.setWidget(2, 0, nature); fpIdentification.setWidget(2, 1, panelslbNature); fpIdentification.getColumnFormatter().setWidth(0, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL1_LIBELLE); fpIdentification.getColumnFormatter().setWidth(1, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fpIdentification.getColumnFormatter().setWidth(2, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL2_LIBELLE); fpIdentification.getColumnFormatter().setWidth(3, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fpIdentification.getColumnFormatter().setWidth(4, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL3_LIBELLE); fpIdentification.getColumnFormatter().setWidth(5, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fieldSetPanel.add(fpIdentification); conteneur.add(fieldSetPanel); }
From source file:com.square.client.gwt.client.view.personne.physique.moteur.recherche.PersonnePhysiqueMoteurRechercheViewImpl.java
License:Open Source License
/** * Construit le bloc des criteres de recherche. *///from w w w.j a v a2s.c o m private void construireBlocComplement() { // Propriets code postal slbCodePostalProperties = new SuggestListBoxCompositeProperties<IdentifiantLibelleGwt>() { @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopupSelection(); } @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; } }; // Propriet commune slbCommuneProperties = new SuggestListBoxCompositeProperties<CodePostalCommuneModel>() { @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopupSelection(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(CodePostalCommuneModel row) { if (row == null) { return new String[] { "", "" }; } else { // Affichage du libell de la commune si diffrent du libell d'acheminement String libelleCommune = row.getLibelleAcheminement(); if (!row.getLibelleAcheminement().equals(row.getCommune().getLibelle())) { libelleCommune += " (" + row.getCommune().getLibelle() + ")"; } return new String[] { row.getCodePostal().getLibelle(), libelleCommune }; } } @Override public String getSelectSuggestRenderer(CodePostalCommuneModel row) { return row == null ? "" : row.getLibelleAcheminement(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }; tbTelephone = new DecoratedTextBox(); tbTelephone.ensureDebugId(viewDebugIdConstants.debugIdTbTelephone()); aidetbTelephone = new AideComposant(AideComposantConstants.AIDE_RECHERCHE_PERSONNE_NUMERO_TEL, isAdmin); final HorizontalPanel paneltbTelephone = new HorizontalPanel(); paneltbTelephone.setSpacing(5); paneltbTelephone.add(tbTelephone); paneltbTelephone.add(aidetbTelephone); ajouterAideComposant(aidetbTelephone); tbEmail = new DecoratedTextBox(); tbEmail.ensureDebugId(viewDebugIdConstants.debugIdTbEmail()); aidetbEmail = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_EMAIL, isAdmin); final HorizontalPanel paneltbEmail = new HorizontalPanel(); paneltbEmail.setSpacing(5); paneltbEmail.add(tbEmail); paneltbEmail.add(aidetbEmail); ajouterAideComposant(aidetbEmail); tbNumeroVoie = new DecoratedTextBox(); tbNumeroVoie.ensureDebugId(viewDebugIdConstants.debugIdTbNumeroVoie()); aidetbNumeroVoie = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NUMERO_VOIE, isAdmin); final HorizontalPanel paneltbNumeroVoie = new HorizontalPanel(); paneltbNumeroVoie.setSpacing(5); paneltbNumeroVoie.add(tbNumeroVoie); paneltbNumeroVoie.add(aidetbNumeroVoie); ajouterAideComposant(aidetbNumeroVoie); tbAdresse = new DecoratedTextBox(); tbAdresse.ensureDebugId(viewDebugIdConstants.debugIdTbAdresse()); aidetbAdresse = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_ADRESSE, isAdmin); final HorizontalPanel paneltbAdresse = new HorizontalPanel(); paneltbAdresse.setSpacing(5); paneltbAdresse.add(tbAdresse); paneltbAdresse.add(aidetbAdresse); ajouterAideComposant(aidetbAdresse); slbCodePostal = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbCodePostalProperties); slbCodePostal.ensureDebugId(viewDebugIdConstants.debugIdSlbCodePostal()); slbCodePostal.setScrollPanelSuggestMultipleHeight( PersonnePhysiqueMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbCodePostal = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_CODE_POSTAL, isAdmin); final HorizontalPanel panelslbCodePostal = new HorizontalPanel(); panelslbCodePostal.setSpacing(5); panelslbCodePostal.add(slbCodePostal); panelslbCodePostal.add(aideslbCodePostal); ajouterAideComposant(aideslbCodePostal); slbNatureVoie = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbNatureVoie.ensureDebugId(viewDebugIdConstants.debugIdSlbNatureVoie()); slbNatureVoie.setScrollPanelSuggestMultipleHeight( PersonnePhysiqueMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbNatureVoie = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_NATURE_VOIE, isAdmin); final HorizontalPanel panelslbNatureVoie = new HorizontalPanel(); panelslbNatureVoie.setSpacing(5); panelslbNatureVoie.add(slbNatureVoie); panelslbNatureVoie.add(aideslbNatureVoie); ajouterAideComposant(aideslbNatureVoie); slbVille = new DecoratedSuggestListBoxComposite<CodePostalCommuneModel>(slbCommuneProperties); slbVille.ensureDebugId(viewDebugIdConstants.debugIdSlbVille()); slbVille.setScrollPanelSuggestMultipleHeight( PersonnePhysiqueMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbVille = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_VILLE, isAdmin); final HorizontalPanel panelslbVille = new HorizontalPanel(); panelslbVille.setSpacing(5); panelslbVille.add(slbVille); panelslbVille.add(aideslbVille); ajouterAideComposant(aideslbVille); final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.complement()); final FlexTable fpComplement = new FlexTable(); fpComplement.setWidth(AppControllerConstants.POURCENT_100); fpComplement.setCellSpacing(5); final Label telephone = creerLibelle(viewConstants.telephone()); final Label email = creerLibelle(viewConstants.email()); final Label numeroVoie = creerLibelle(viewConstants.numeroVoie()); final Label natureVoie = creerLibelle(viewConstants.natureVoie()); final Label adresse = creerLibelle(viewConstants.adresse()); final Label codePostal = creerLibelle(viewConstants.codePostal()); final Label ville = creerLibelle(viewConstants.ville()); fpComplement.setWidget(0, 0, telephone); fpComplement.setWidget(0, 1, paneltbTelephone); fpComplement.setWidget(0, 2, email); fpComplement.setWidget(0, 3, paneltbEmail); fpComplement.setWidget(1, 0, numeroVoie); fpComplement.setWidget(1, 1, paneltbNumeroVoie); fpComplement.setWidget(1, 2, natureVoie); fpComplement.setWidget(1, 3, panelslbNatureVoie); fpComplement.setWidget(1, 4, adresse); fpComplement.setWidget(1, 5, paneltbAdresse); fpComplement.setWidget(2, 0, codePostal); fpComplement.setWidget(2, 1, panelslbCodePostal); fpComplement.setWidget(2, 2, ville); fpComplement.setWidget(2, 3, panelslbVille); fpComplement.getColumnFormatter().setWidth(0, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL1_LIBELLE); fpComplement.getColumnFormatter().setWidth(1, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fpComplement.getColumnFormatter().setWidth(2, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL2_LIBELLE); fpComplement.getColumnFormatter().setWidth(3, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fpComplement.getColumnFormatter().setWidth(4, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL3_LIBELLE); fpComplement.getColumnFormatter().setWidth(5, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL_CHAMP); fieldSetPanel.add(fpComplement); conteneur.add(fieldSetPanel); }
From source file:com.square.client.gwt.client.view.personne.physique.moteur.recherche.PersonnePhysiqueMoteurRechercheViewImpl.java
License:Open Source License
/** * Construit le bloc relatif aux informations. *///from w w w. j a va 2s . co m private void construiteBlocInformations() { slbcAgences = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>( new SuggestListBoxCompositeProperties<IdentifiantLibelleGwt>() { @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.SlbPropertiesAgence(); } @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; } }); slbcAgences.ensureDebugId(viewDebugIdConstants.debugIdSlbcAgences()); slbcAgences.setScrollPanelSuggestMultipleHeight( PersonnePhysiqueMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbcAgences = new AideComposant(AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_RECHERCHE_AGENCES, isAdmin); final HorizontalPanel panelslbcAgences = new HorizontalPanel(); panelslbcAgences.setSpacing(5); panelslbcAgences.add(slbcAgences); panelslbcAgences.add(aideslbcAgences); ajouterAideComposant(aideslbcAgences); final CaptionPanel captionPanel = new CaptionPanel(viewConstants.informations()); final FlexTable fpInformation = new FlexTable(); fpInformation.setCellSpacing(5); fpInformation.setWidth(AppControllerConstants.POURCENT_100); final Label libelleAgences = creerLibelle(viewConstants.libelleAgences()); fpInformation.setWidget(0, 0, libelleAgences); fpInformation.setWidget(0, 1, panelslbcAgences); fpInformation.getColumnFormatter().setWidth(0, PersonnePhysiqueMoteurRechercheViewImplConstants.LARGEUR_COL1_LIBELLE); fpInformation.getColumnFormatter().setWidth(1, "89%"); captionPanel.add(fpInformation); conteneur.add(captionPanel); }
From source file:com.square.client.gwt.client.view.personne.physique.opportunites.creation.OpportuniteCreationViewImpl.java
License:Open Source License
private HorizontalPanel construireBlocBoutons() { final HorizontalPanel horizontalPanelBoutons = new HorizontalPanel(); btnAnnuler = new DecoratedButton(viewConstants.libelleAnnuler()); btnAnnuler.ensureDebugId(viewDebugIdConstants.debugIdBtnAnnuler()); btnEnregistrer = new DecoratedButton(viewConstants.libelleEnregistrer()); btnEnregistrer.ensureDebugId(viewDebugIdConstants.debugIdBtnEnregistrer()); btnReduire = new DecoratedButton(viewConstants.reduire()); btnReduire.ensureDebugId(viewDebugIdConstants.debugIdBtnReduire()); horizontalPanelBoutons.add(btnEnregistrer); horizontalPanelBoutons.add(btnReduire); horizontalPanelBoutons.add(btnAnnuler); horizontalPanelBoutons.setSpacing(5); return horizontalPanelBoutons; }
From source file:com.square.client.gwt.client.view.personne.physique.opportunites.gestion.OpportuniteBlocViewImpl.java
License:Open Source License
private void construireBloc() { captionPanel = new CaptionPanel(); lType = new Label(); lObjet = new Label(); lSousObjet = new Label(); lStatut = new Label(); lDateCreation = new Label(); lCreateur = new Label(); captionPanel.setCaptionText(viewConstants.titreOpportunite()); final SuggestListBoxSingleProperties<DimensionRessourceModel> properties = new SuggestListBoxSingleProperties<DimensionRessourceModel>() { @Override/*from www. j ava 2s.c om*/ 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() }; } }; slbsRessource = new DecoratedSuggestListBoxSingle<DimensionRessourceModel>(properties); slbsRessource.ensureDebugId(viewDebugIdConstants.debugIdSlbsRessource()); aideslbsRessource = new AideComposant( AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_OPPORTUNITES_GESTION_RESSOURCE, isAdmin); ajouterAideComposant(aideslbsRessource); final HorizontalPanel panelslbsRessource = new HorizontalPanel(); panelslbsRessource.add(slbsRessource); panelslbsRessource.add(aideslbsRessource); panelslbsRessource.setSpacing(5); final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> propertiesAgence = 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() }; } }; slbsAgence = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(propertiesAgence); slbsAgence.ensureDebugId(viewDebugIdConstants.debugIdSlbsAgence()); aideslbsAgence = new AideComposant( AideComposantConstants.AIDE_PERSONNE_PHYSIQUE_OPPORTUNITES_GESTION_AGENCE, isAdmin); ajouterAideComposant(aideslbsAgence); final HorizontalPanel panelslbsAgence = new HorizontalPanel(); panelslbsAgence.add(slbsAgence); panelslbsAgence.add(aideslbsAgence); panelslbsAgence.setSpacing(5); final List<ChampSynthese> listeChamps = new ArrayList<ChampSynthese>(); listeChamps.add(new ChampSynthese(lType, viewConstants.type(), true)); listeChamps.add(new ChampSynthese(lObjet, viewConstants.objet(), true)); listeChamps.add(new ChampSynthese(lSousObjet, viewConstants.sousObjet(), true)); listeChamps.add(new ChampSynthese(panelslbsAgence, viewConstants.agence(), iconeErreurChampManager.createInstance("opportuniteModificationDto.agence", slbsAgence), true)); listeChamps.add(new ChampSynthese(lStatut, viewConstants.statut(), true)); listeChamps.add(new ChampSynthese(lDateCreation, viewConstants.dateCreation(), true)); listeChamps.add(new ChampSynthese(lCreateur, viewConstants.createur(), true)); listeChamps.add(new ChampSynthese(panelslbsRessource, viewConstants.ressource(), iconeErreurChampManager.createInstance("opportuniteModificationDto.ressource", slbsRessource), true)); blocSyntheseDepliant = new BlocSyntheseDepliant(listeChamps, contenu, 4); blocSyntheseDepliant.ensureDebugId(viewDebugIdConstants.debugIdSBlocSyntheseDepliant()); captionPanel.add(blocSyntheseDepliant); conteneur.add(captionPanel); }
From source file:com.square.client.gwt.client.view.personne.physique.opportunites.popupCreationForcee.PopupCreationForceeOpportuniteViewImpl.java
License:Open Source License
private void construirePopup() { // Construction de la zone de text final VerticalPanel vpText = new VerticalPanel(); final Label ltextLigne1 = new Label(viewConstants.textLigne1()); final Label ltextLigne2 = new Label(viewConstants.textLigne2()); vpText.add(ltextLigne1);//from ww w. j a v a 2s . c o m vpText.add(ltextLigne2); vpText.setCellHorizontalAlignment(ltextLigne1, HasAlignment.ALIGN_CENTER); vpText.setCellHorizontalAlignment(ltextLigne2, HasAlignment.ALIGN_CENTER); conteneur.add(vpText); // construction de la zone de bouton final HorizontalPanel hpBoutons = new HorizontalPanel(); btnValider = new DecoratedButton(viewConstants.libelleOui()); btnValider.ensureDebugId(viewDebugIdConstants.debugIdBtnValider()); btnRefuser = new DecoratedButton(viewConstants.libelleNon()); btnRefuser.ensureDebugId(viewDebugIdConstants.debugIdBtnRefuser()); hpBoutons.add(btnValider); hpBoutons.add(btnRefuser); hpBoutons.setSpacing(5); conteneur.add(hpBoutons); conteneur.setCellHorizontalAlignment(hpBoutons, HasAlignment.ALIGN_CENTER); }
From source file:com.square.client.gwt.client.view.personne.relations.PersonneRelationAjouterEnfantConjointViewImpl.java
License:Open Source License
/** Constructeur. */ public PersonneRelationAjouterEnfantConjointViewImpl() { super(viewConstants.popupTitle(), false, false, true); conteneur = new VerticalPanel(); final Label lAnnonce = new Label(viewConstants.libelleAnnonce()); conteneur.add(lAnnonce);/*from w w w .ja v a2 s.c o m*/ final HorizontalPanel horizontalPanel = new HorizontalPanel(); btnOui = new DecoratedButton(viewConstants.oui()); btnNon = new DecoratedButton(viewConstants.non()); horizontalPanel.add(btnOui); horizontalPanel.add(btnNon); horizontalPanel.setSpacing(5); conteneur.add(horizontalPanel); conteneur.setCellHorizontalAlignment(horizontalPanel, HasAlignment.ALIGN_CENTER); this.setWidget(conteneur); }