Subversion Repositories eFlore/Applications.coel

Rev

Rev 283 | Rev 293 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
127 gduche 1
package org.tela_botanica.client.vues;
2
 
283 gduche 3
import java.util.ArrayList;
286 gduche 4
import java.util.Date;
276 gduche 5
import java.util.HashMap;
283 gduche 6
import java.util.Iterator;
7
import java.util.List;
276 gduche 8
 
9
import org.tela_botanica.client.ComposantClass;
10
import org.tela_botanica.client.Mediateur;
11
import org.tela_botanica.client.RegistreId;
127 gduche 12
import org.tela_botanica.client.interfaces.Rafraichissable;
283 gduche 13
import org.tela_botanica.client.modeles.Configuration;
280 gduche 14
import org.tela_botanica.client.modeles.InterneValeur;
286 gduche 15
import org.tela_botanica.client.modeles.Personne;
280 gduche 16
import org.tela_botanica.client.modeles.Valeur;
283 gduche 17
import org.tela_botanica.client.modeles.ValeurListe;
127 gduche 18
 
276 gduche 19
 
20
import com.extjs.gxt.ui.client.Registry;
21
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
283 gduche 22
import com.extjs.gxt.ui.client.Style.Scroll;
23
import com.extjs.gxt.ui.client.event.BaseEvent;
276 gduche 24
import com.extjs.gxt.ui.client.event.ComponentEvent;
25
import com.extjs.gxt.ui.client.event.KeyListener;
280 gduche 26
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
27
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
276 gduche 28
import com.extjs.gxt.ui.client.event.SelectionListener;
280 gduche 29
import com.extjs.gxt.ui.client.store.ListStore;
283 gduche 30
import com.extjs.gxt.ui.client.store.StoreListener;
31
 
276 gduche 32
import com.extjs.gxt.ui.client.widget.ContentPanel;
283 gduche 33
 
127 gduche 34
import com.extjs.gxt.ui.client.widget.LayoutContainer;
276 gduche 35
import com.extjs.gxt.ui.client.widget.TabItem;
36
import com.extjs.gxt.ui.client.widget.TabPanel;
283 gduche 37
 
280 gduche 38
import com.extjs.gxt.ui.client.widget.form.ComboBox;
39
import com.extjs.gxt.ui.client.widget.form.DateField;
276 gduche 40
import com.extjs.gxt.ui.client.widget.form.FieldSet;
41
import com.extjs.gxt.ui.client.widget.form.LabelField;
286 gduche 42
import com.extjs.gxt.ui.client.widget.form.TextArea;
276 gduche 43
import com.extjs.gxt.ui.client.widget.form.TextField;
44
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
45
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
46
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
47
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
48
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
49
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
50
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
51
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
283 gduche 52
import com.google.gwt.user.client.Window;
276 gduche 53
import com.google.gwt.user.client.ui.Widget;
127 gduche 54
 
55
 
276 gduche 56
 
57
public class FormPersonneVue extends ContentPanel implements Rafraichissable {
58
 
59
 
60
	/*--------------------------------------------------------------------------------------
61
	 * 		VARIABLES
62
	 * -------------------------------------------------------------------------------------
63
	 */
64
 
65
	private TabItem tiIdentite, tiAdresses, tiInfosNat;
283 gduche 66
	private Mediateur mediateur = Registry.get(RegistreId.MEDIATEUR);
67
	private Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
286 gduche 68
	private Personne personneSelectionnee = null;
276 gduche 69
 
70
	/*--------------------------------------------------------------------------------------
71
	 * 		CONSTRUCTEUR
72
	 * -------------------------------------------------------------------------------------
73
	 */
74
	/**
75
	 * Constructeur du panneau
76
	 *
77
	 * Initialise le panneau et ajoute une barre d'outils à deux boutons (réinitialiser le
78
	 * formulaire et annuler la saisie).
79
	 *
80
	 * */
81
	public FormPersonneVue() {
82
 
283 gduche 83
		initialiserPanneau();
276 gduche 84
 
85
		ToolBar barreOutils = new ToolBar();
86
 
87
		ajouterBoutonEnregistrer(barreOutils);
88
		ajouterBoutonReinitialiser(barreOutils);
89
		ajouterBoutonAnnuler(barreOutils);
90
 
91
		setTopComponent(barreOutils);
92
 
93
		initialiserOnglets();
94
 
95
		creerComposantsIdentite();
280 gduche 96
 
276 gduche 97
	}
98
 
99
 
100
	/*---------------------------------------------------------------------------------------
101
	 * 		SOUS-METHODES
102
	 * --------------------------------------------------------------------------------------
103
	 */
104
	/**
105
	 * Inialise le panneau donné
106
	 *
107
	 * @param contentPanel le panneau à initialiser
108
	 * */
283 gduche 109
	public void initialiserPanneau()	{
276 gduche 110
 
283 gduche 111
		setLayout(new FitLayout());
112
		setIconStyle("icone-form-ajouter");
113
		setCollapsible(false);
114
		setHeading("Ajouter une personne");
115
		setButtonAlign(HorizontalAlignment.CENTER);
116
		setLayout(new FormLayout());
276 gduche 117
	}
118
 
119
	/**
120
	 * Crée les onglets identité, adresse et informations naturaliste
121
	 *
122
	 * */
123
	public void initialiserOnglets()	{
124
		//TabPanel
125
		TabPanel formulaireOnglets = new TabPanel();
126
 
127
		//Tab 1 : identite
128
		tiIdentite = new TabItem("Identité");
129
		tiIdentite.setLayout(new FormLayout());
283 gduche 130
		tiIdentite.setScrollMode(Scroll.AUTO);
276 gduche 131
		formulaireOnglets.add(tiIdentite);
132
 
133
 
283 gduche 134
 
276 gduche 135
		//Tab 2 : Adresse
136
		tiAdresses = new TabItem("Adresse");
137
		tiAdresses.setLayout(new FlowLayout());
283 gduche 138
		tiAdresses.setScrollMode(Scroll.AUTO);
276 gduche 139
		formulaireOnglets.add(tiAdresses);
140
 
141
		//Tab 3 : Infos Naturalistes
142
		tiInfosNat = new TabItem("Informations Naturalistes");
143
		tiInfosNat.setLayout(new FormLayout());
283 gduche 144
		tiInfosNat.setScrollMode(Scroll.AUTO);
276 gduche 145
		formulaireOnglets.add(tiInfosNat);
146
 
147
		add(formulaireOnglets);
148
	}
149
 
150
	/**
151
	 * Crée les widgets pour l'onglet identité
152
	 *
153
	 * */
154
 
155
	//hmIdentite référence par une chaine de caractère tous les composants de l'onglet Identite
156
	private HashMap<String, Widget>hmIdentite = new HashMap<String, Widget>();
157
 
158
	public void creerComposantsIdentite()	{
159
 
283 gduche 160
		// Gestion de l'affichage en colonnes
276 gduche 161
			// On crée 3 Layout container : un principal, un pour la colonne de gauche, un pour la colonne de droite
162
 
163
			// Gauche
164
			LayoutContainer left = new LayoutContainer();
165
			left.setLayout(new FormLayout());
166
 
167
			// Droite
168
			LayoutContainer right = new LayoutContainer();
169
			right.setLayout(new FormLayout());
170
 
171
			// Principal
172
			LayoutContainer main = new LayoutContainer();
173
			main.setLayout(new ColumnLayout());
174
 
175
			// Ajout au principal
176
			main.add(left, new ColumnData(.5));
177
			main.add(right, new ColumnData(.5));
178
 
179
 
180
			// Création des champs
181
 
182
			//FormLayout sera utilisé à plusieurs reprises
183
			FormLayout formLayout = new FormLayout();
184
 
185
			FieldSet fsNoms = new FieldSet();
186
			fsNoms.setHeading("Noms");
187
 
188
			formLayout.setLabelAlign(LabelAlign.LEFT);
189
			fsNoms.setLayout(formLayout);
190
 
191
			// Nom complet
192
			// Affiché que si valeurs saisies
193
			LabelField nomComplet = new LabelField();
194
			nomComplet.setFieldLabel("Nom complet:");
195
			nomComplet.hide();
196
			fsNoms.add(nomComplet);
197
 
198
			hmIdentite.put("nomComplet", nomComplet);
199
 
200
			//Préfixe
280 gduche 201
			ComboBox<Valeur> cbPrefix = new ComboBox<Valeur>();
202
			ListStore<Valeur> storePrefixe = new ListStore<Valeur>();
203
			cbPrefix.setStore(storePrefixe);
283 gduche 204
			cbPrefix.setDisplayField("nom");
205
			cbPrefix.setEmptyText("Choisissez le préfixe:");
280 gduche 206
			cbPrefix.setFieldLabel("Prefix");
207
			fsNoms.add(cbPrefix);
276 gduche 208
 
280 gduche 209
			hmIdentite.put("cbPrefix", cbPrefix);
276 gduche 210
 
283 gduche 211
			// Remplir la liste des préfixe
212
			mediateur.obtenirListeValeurEtRafraichir(this, "prefixe");
213
 
276 gduche 214
			//Prénom
215
			TextField<String> tfPrenom = new TextField<String>();
216
			tfPrenom.setFieldLabel("Prénom");
217
			fsNoms.add(tfPrenom);
218
 
219
			hmIdentite.put("tfPrenom", tfPrenom);
220
 
221
			//Nom
222
			TextField<String> tfNom = new TextField<String>();
223
			tfNom.setFieldLabel("Nom");
224
			fsNoms.add(tfNom);
225
 
226
			hmIdentite.put("tfNom", tfNom);
227
 
283 gduche 228
			//Suffixe
280 gduche 229
			ComboBox<Valeur> cbSuffixe = new ComboBox<Valeur>();
230
			ListStore<Valeur> storeSuffixe = new ListStore<Valeur>();
231
			cbSuffixe.setStore(storeSuffixe);
232
			cbSuffixe.setFieldLabel("Suffixe");
283 gduche 233
			cbSuffixe.setDisplayField("nom");
234
			cbSuffixe.setEmptyText("Choisissez un suffixe:");
280 gduche 235
			fsNoms.add(cbSuffixe);
276 gduche 236
 
280 gduche 237
			hmIdentite.put("cbSuffixe", cbSuffixe);
283 gduche 238
 
239
			// Remplir la liste des suffixes:
240
			mediateur.obtenirListeValeurEtRafraichir(this, "suffixes");
241
 
276 gduche 242
			// Nom : autre
243
			TextField<String> tfNomAutre = new TextField();
244
			tfNomAutre.setFieldLabel("Autres noms");
245
			fsNoms.add(tfNomAutre);
246
 
247
			hmIdentite.put("tfNomAutre", tfNomAutre);
248
 
249
			//Abréviation
250
			TextField<String> tfAbreviation = new TextField<String>();
251
			tfAbreviation.setFieldLabel("Abréviation");
252
			fsNoms.add(tfAbreviation);
253
 
254
			hmIdentite.put("tfAbreviation", tfAbreviation);
255
 
256
			//Abréviation autres
257
			TextField<String> tfAbreviationAutre = new TextField<String>();
258
			tfAbreviationAutre.setFieldLabel("Autres Abrév.");
259
			fsNoms.add(tfAbreviationAutre);
260
 
286 gduche 261
			hmIdentite.put("tfAbreviationAutre", tfAbreviationAutre);
276 gduche 262
 
263
 
264
			left.add(fsNoms);
265
 
286 gduche 266
			// Naissance
267
			FieldSet fsNaissance = new FieldSet();
268
			fsNaissance.setHeading("Naissance");
276 gduche 269
 
270
			formLayout = new FormLayout();
286 gduche 271
			formLayout.setLabelAlign(LabelAlign.LEFT);
272
			fsNaissance.setLayout(formLayout);
276 gduche 273
 
274
			// Date naissance
280 gduche 275
			DateField dfDateNaissance = new DateField();
276 gduche 276
 
286 gduche 277
			dfDateNaissance.setFieldLabel("Date");
278
			fsNaissance.add(dfDateNaissance);
276 gduche 279
 
280 gduche 280
			hmIdentite.put("dfDateNaissance", dfDateNaissance);
276 gduche 281
 
280 gduche 282
			// Lieu naissance
283
			TextField<String> tfLieuNaissance = new TextField();
286 gduche 284
			tfLieuNaissance.setFieldLabel("Lieu");
285
			fsNaissance.add(tfLieuNaissance);
280 gduche 286
 
287
			hmIdentite.put("tfLieuNaissance", tfLieuNaissance);
288
 
286 gduche 289
			left.add(fsNaissance);
290
 
291
			// Deces
292
			FieldSet fsDeces = new FieldSet();
293
			fsDeces.setHeading("Décès");
294
 
295
			formLayout = new FormLayout();
296
			formLayout.setLabelAlign(LabelAlign.LEFT);
297
			fsDeces.setLayout(formLayout);
298
 
280 gduche 299
			// Date décès
300
			DateField dfDateDeces = new DateField();
286 gduche 301
			dfDateDeces.setFieldLabel("Date");
302
			fsDeces.add(dfDateDeces);
280 gduche 303
 
304
			hmIdentite.put("dfDateDeces", dfDateDeces);
305
 
306
			// Lieu décès
307
			TextField<String> tfLieuDeces = new TextField();
286 gduche 308
			tfLieuDeces.setFieldLabel("Lieu");
309
			fsDeces.add(tfLieuDeces);
280 gduche 310
 
311
			hmIdentite.put("tfLieuDeces", tfLieuDeces);
312
 
286 gduche 313
			left.add(fsDeces);
280 gduche 314
 
276 gduche 315
			tiIdentite.add(main);
316
 
286 gduche 317
			// Autres informations
318
			FieldSet fsAutresInfos = new FieldSet();
319
			fsAutresInfos.setHeading("Autres informations");
276 gduche 320
 
286 gduche 321
			formLayout = new FormLayout();
322
			formLayout.setLabelAlign(LabelAlign.LEFT);
323
			fsAutresInfos.setLayout(formLayout);
324
 
325
			right.add(fsAutresInfos);
326
 
327
			//Civilité
328
 
329
			ComboBox<Valeur> cbCivilite = new ComboBox<Valeur>();
330
			ListStore<Valeur> storeCivilite = new ListStore<Valeur>();
331
			cbCivilite.setStore(storeCivilite);
332
			cbCivilite.setFieldLabel("Civilité");
333
			cbCivilite.setDisplayField("nom");
334
			cbCivilite.setEmptyText("Choisissez une civilité:");
335
 
336
			fsAutresInfos.add(cbCivilite);
337
 
338
			hmIdentite.put("cbCivilite", cbCivilite);
339
 
340
			// TODO : récupérer la liste des civilités en BDD
341
 
342
 
343
			//Description
344
			TextArea taDescription = new TextArea();
345
			taDescription.setEmptyText("Saisissez une description");
346
			taDescription.setFieldLabel("Description");
347
			fsAutresInfos.add(taDescription);
348
 
349
			hmIdentite.put("taDescription", taDescription);
350
 
351
			// Logo
352
			TextArea taLogo = new TextArea();
353
			taLogo.setFieldLabel("Logos");
354
			taLogo.setEmptyText("Saisissez les adresses des logos séparées par un saut de ligne");
355
			fsAutresInfos.add(taLogo);
356
 
357
			hmIdentite.put("taLogo", taLogo);
358
 
359
 
360
 
361
			//Contact
362
			FieldSet fsContact = new FieldSet();
363
			fsContact.setHeading("Contact");
364
 
365
			formLayout = new FormLayout();
366
			formLayout.setLabelAlign(LabelAlign.LEFT);
367
			fsContact.setLayout(formLayout);
368
 
369
			right.add(fsContact);
370
 
371
			// Courriels
372
			TextArea taCourriel = new TextArea();
373
			taCourriel.setFieldLabel("Courriels");
374
			taCourriel.setEmptyText("Saisissez les adresses courriels séparées par un saut de ligne");
375
			fsContact.add(taCourriel);
376
 
377
			hmIdentite.put("taCourriel", taCourriel);
378
 
379
			// URLS
380
			TextArea taUrl = new TextArea();
381
			taUrl.setFieldLabel("Sites");
382
			taUrl.setEmptyText("Saisissez les adresses des sites séparées par un saut de ligne");
383
			fsContact.add(taUrl);
384
 
385
			hmIdentite.put("taUrl", taUrl);
386
 
387
 
276 gduche 388
			// Ajout des évènements saisi
389
			KeyListener klNoms = new KeyListener()	{
390
				public void componentKeyUp(ComponentEvent ev)	{
283 gduche 391
					rafraichir(null);
280 gduche 392
				}
276 gduche 393
			};
394
 
283 gduche 395
			SelectionChangedListener<InterneValeur> selectionChange = new SelectionChangedListener<InterneValeur>() {
396
				public void selectionChanged(SelectionChangedEvent se) {
397
						rafraichir(null);
398
					}
399
			};
400
 
401
			cbPrefix.addSelectionChangedListener(selectionChange);
280 gduche 402
			cbPrefix.addKeyListener(klNoms);
276 gduche 403
			tfPrenom.addKeyListener(klNoms);
404
			tfNom.addKeyListener(klNoms);
283 gduche 405
			cbSuffixe.addSelectionChangedListener(selectionChange);
276 gduche 406
 
407
	}
408
 
409
	/**
410
	 * Ajouter le bouton réinitialiser à la barre d'outils donnée
411
	 *
412
	 * @param barreOutils la barre d'outils à modifier
413
	 * */
414
	public static void ajouterBoutonReinitialiser(ToolBar barreOutils)	{
415
 
416
		//Le bouton réintialiser recharge la page sans sauvegarder les informations
417
		TextToolItem reinitialiser = new TextToolItem("Réinitialiser");
418
		reinitialiser.setIconStyle(ComposantClass.ICONE_RAFRAICHIR);
419
		reinitialiser.addSelectionListener(new SelectionListener<ComponentEvent>() {
420
			public void componentSelected(ComponentEvent ce) {
421
				((Mediateur) Registry.get(RegistreId.MEDIATEUR)).clicAjouterPersonne();
422
			}
423
		});
424
		barreOutils.add(reinitialiser);
425
	}
426
 
427
	/**
428
	 * Ajouter le bouton Sauvegarder à la barre d'outils donnée
429
	 *
430
	 * @param barreOutils la barre d'outils à modifier
431
	 * */
432
	public static void ajouterBoutonEnregistrer(ToolBar barreOutils)	{
433
 
434
		//Le bouton réintialiser recharge la page sans sauvegarder les informations
286 gduche 435
		TextToolItem enregistrer = new TextToolItem("Enregistrer");
436
		enregistrer.setIconStyle(ComposantClass.ICONE_PREFERENCE);
437
		enregistrer.addSelectionListener(new SelectionListener<ComponentEvent>() {
276 gduche 438
			public void componentSelected(ComponentEvent ce) {
439
				// TODO : Enregistrer le formulaire
440
			}
441
		});
286 gduche 442
		barreOutils.add(enregistrer);
276 gduche 443
	}
444
 
445
	/**
446
	 * Ajouter le bouton annuler à la barre d'outils donnée
447
	 *
448
	 * @param barreOutils la barre d'outils à modifier
449
	 * */
450
	public static void ajouterBoutonAnnuler(ToolBar barreOutils)	{
451
 
452
		// Le bouton annuler ne sauvegarde pas les informations et renvoie vers la page précédente
453
		TextToolItem annuler = new TextToolItem("Annuler");
454
		annuler.addSelectionListener(new SelectionListener<ComponentEvent>() {
455
			public void componentSelected(ComponentEvent ce) {
456
				((Mediateur) Registry.get(RegistreId.MEDIATEUR)).clicMenu("Personnes");
457
			}
458
		});
459
		annuler.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
460
		barreOutils.add(annuler);
461
	}
462
 
463
 
464
 
465
	/*---------------------------------------------------------------------------------------
466
	 * 		RAFRAICHISSEMENT DU PANNEAU
467
	 * --------------------------------------------------------------------------------------
468
	 */
283 gduche 469
	public void rafraichir(Object nouvellesDonnees) {
470
		if (nouvellesDonnees instanceof ValeurListe){
471
 
472
 
473
			ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
474
 
475
 
476
 
477
			// Créer une liste de valeurs
478
			List<Valeur> liste = new ArrayList<Valeur>();
479
			for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
480
				liste.add(listeValeurs.get(it.next()));
481
			}
482
 
483
			if (listeValeurs.getId().equals(config.getListeId("prefixe")))	{
484
 
485
				//Remplir la liste Prefixe
486
 
487
 
488
				ListStore<Valeur> stPrefixe = ((ComboBox) hmIdentite.get("cbPrefix")).getStore();
489
				stPrefixe.removeAll();
490
				stPrefixe.add(liste);
491
				((ComboBox) hmIdentite.get("cbPrefix")).setStore(stPrefixe);
492
 
493
 
494
			} else if (listeValeurs.getId().equals(config.getListeId("suffixes"))) {
495
 
496
				//Remplir la liste Suffixe
497
				ListStore<Valeur> stSuffix = ((ComboBox) hmIdentite.get("cbSuffixe")).getStore();
498
				stSuffix.removeAll();
499
				stSuffix.add(liste);
500
				((ComboBox) hmIdentite.get("cbSuffixe")).setStore(stSuffix);
501
 
502
 
503
			}
286 gduche 504
		} else if (nouvellesDonnees instanceof Personne)	{
505
 
506
 
507
			//Mise à jour de la personne
508
			Personne personne = (Personne) nouvellesDonnees;
509
			personneSelectionnee = personne;
510
 
511
 
512
			((TextField) hmIdentite.get("tfPrenom")).setValue(personne.get("prenom"));
513
			((TextField) hmIdentite.get("tfNom")).setValue(personne.get("nom"));
514
			((TextField) hmIdentite.get("tfNomAutre")).setValue(personne.get("truk_nom_autre"));
515
			((TextField) hmIdentite.get("tfAbreviation")).setValue(personne.get("abreviation"));
516
			((TextField) hmIdentite.get("tfAbreviationAutre")).setValue(personne.get("truk_abreviation_autre"));
517
 
518
			//((DateField) hmIdentite.get("dfDateNaissance")).setValue(new Date((String) personne.get("naissance_date")));
519
			((TextField) hmIdentite.get("tfLieuNaissance")).setValue(personne.get("naissance_lieu"));
520
			//((DateField) hmIdentite.get("dfDateDeces")).setValue(new Date((String) personne.get("deces_date")));
521
			((TextField) hmIdentite.get("tfLieuDeces")).setValue(personne.get("deces_lieu"));
522
 
283 gduche 523
		}
524
 
525
		if (nouvellesDonnees == null)
526
		{
527
			ComboBox cb= (ComboBox) hmIdentite.get("cbPrefix");
528
			/*
529
			 * Met à jour le nom Complet du formulaire
530
			 * */
531
			String valeurRetour = "";
532
 
533
			// Prefixe
534
			String prefixe = "";
535
			Valeur valPrefixe = (Valeur) ((ComboBox) hmIdentite.get("cbPrefix")).getValue();
536
 
537
			if (valPrefixe != null)	{
538
				prefixe = valPrefixe.getNom();
539
			}
540
 
541
			// Prénom
542
			String prenom = (String) ((TextField) hmIdentite.get("tfPrenom")).getValue();
543
 
544
			// Nom
545
			String nom = (String) ((TextField) hmIdentite.get("tfNom")).getValue();
546
 
547
			// Suffixe
548
			String suffixe = "";
549
			Valeur valSuffixe = (Valeur) ((ComboBox) hmIdentite.get("cbSuffixe")).getValue();
550
 
551
			if (valSuffixe != null)	{
552
				suffixe = valSuffixe.getNom();
553
			}
554
 
555
			// Mettre à jour la valeur
556
			valeurRetour = prefixe + " " + prenom + " " + nom + " " + suffixe;
557
			valeurRetour = valeurRetour.replaceAll("null", "");
558
 
559
			((LabelField) hmIdentite.get("nomComplet")).setValue(valeurRetour);
560
 
561
			if (!valeurRetour.trim().equals(""))	{
562
				((LabelField) hmIdentite.get("nomComplet")).show();
563
			} else {
564
				((LabelField) hmIdentite.get("nomComplet")).hide();
565
			}
566
		}
127 gduche 567
	}
568
 
130 gduche 569
 
570
 
571
 
127 gduche 572
}