Subversion Repositories eFlore/Applications.coel

Rev

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

Rev Author Line No. Line
703 jp_milcent 1
package org.tela_botanica.client.vues;
2
 
3
import java.util.ArrayList;
860 jpm 4
import java.util.Iterator;
703 jp_milcent 5
import java.util.List;
6
 
7
import org.tela_botanica.client.Mediateur;
8
import org.tela_botanica.client.images.Images;
9
import org.tela_botanica.client.interfaces.Rafraichissable;
10
import org.tela_botanica.client.modeles.Information;
860 jpm 11
import org.tela_botanica.client.modeles.InterneValeur;
703 jp_milcent 12
import org.tela_botanica.client.modeles.Personne;
13
import org.tela_botanica.client.modeles.PersonneListe;
860 jpm 14
import org.tela_botanica.client.modeles.UniteBase;
15
import org.tela_botanica.client.modeles.UniteRangement;
16
import org.tela_botanica.client.modeles.Valeur;
703 jp_milcent 17
import org.tela_botanica.client.modeles.ValeurListe;
18
 
775 jpm 19
import com.extjs.gxt.ui.client.event.BaseEvent;
703 jp_milcent 20
import com.extjs.gxt.ui.client.event.ButtonEvent;
21
import com.extjs.gxt.ui.client.event.ComponentEvent;
775 jpm 22
import com.extjs.gxt.ui.client.event.EventType;
703 jp_milcent 23
import com.extjs.gxt.ui.client.event.Events;
24
import com.extjs.gxt.ui.client.event.KeyListener;
25
import com.extjs.gxt.ui.client.event.Listener;
26
import com.extjs.gxt.ui.client.event.SelectionListener;
27
import com.extjs.gxt.ui.client.store.ListStore;
28
import com.extjs.gxt.ui.client.store.Store;
29
import com.extjs.gxt.ui.client.store.StoreEvent;
30
import com.extjs.gxt.ui.client.widget.ContentPanel;
31
import com.extjs.gxt.ui.client.widget.Info;
32
import com.extjs.gxt.ui.client.widget.button.Button;
775 jpm 33
import com.extjs.gxt.ui.client.widget.button.ButtonBar;
703 jp_milcent 34
import com.extjs.gxt.ui.client.widget.form.ComboBox;
35
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
860 jpm 36
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
703 jp_milcent 37
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
38
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
860 jpm 39
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
703 jp_milcent 40
import com.extjs.gxt.ui.client.widget.grid.Grid;
41
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
42
import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
43
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
44
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
45
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
46
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
47
import com.google.gwt.core.client.GWT;
775 jpm 48
import com.google.gwt.event.dom.client.KeyCodes;
703 jp_milcent 49
 
860 jpm 50
public class CollectionFormPersonne extends FormulaireOnglet implements Rafraichissable {
703 jp_milcent 51
 
52
	private ContentPanel panneauPrincipal = null;
53
	private ToolBar barreOutils = null;
54
	private Grid<Personne> grille;
860 jpm 55
	private ComboBox<Valeur> typeRelationCombo = null;
703 jp_milcent 56
 
860 jpm 57
	private PersonneListe personnes = null;
58
	private PersonneListe personnesAjoutes = null;
59
	private PersonneListe personnesSupprimes = null;
60
	private ComboBox<Personne> personnesSaisisComboBox = null;
61
	private Button personnesBoutonSupprimer = null;
62
	private Button personnesBoutonModifier = null;
63
	private Button ajouterPersonneSaisiBouton = null;
703 jp_milcent 64
 
65
	private static final String ETAT_AJOUTE = "A";
66
	private static final String ETAT_SUPPRIME = "S";
67
 
860 jpm 68
	public CollectionFormPersonne(Formulaire formulaireCourrant) {
703 jp_milcent 69
		initialiserOnglet(formulaireCourrant);
860 jpm 70
		setId("personne");
71
		setText(Mediateur.i18nC.collectionPersonne());
703 jp_milcent 72
		setStyleAttribute("padding", "0");
73
 
74
		panneauPrincipal = creerPanneauContenantGrille();
75
		barreOutils = creerBarreOutilsGrille();
76
		panneauPrincipal.setTopComponent(barreOutils);
77
		grille = creerGrille();
78
  		panneauPrincipal.add(grille);
860 jpm 79
		mediateur.obtenirListeValeurEtRafraichir(this, "relationPersonneCollection");
703 jp_milcent 80
		add(panneauPrincipal);
81
 
82
		initialiser();
83
	}
84
 
85
	private void initialiser() {
86
		// Remise à zéro des modification dans la liste des auteurs
860 jpm 87
		personnesAjoutes = new PersonneListe();
88
		personnesSupprimes = new PersonneListe();
703 jp_milcent 89
 
90
		// Actualisation de l'état des boutons de la barre d'outils
91
		actualiserEtatBoutonsBarreOutils();
92
	}
93
 
94
	private ContentPanel creerPanneauContenantGrille() {
95
		ContentPanel panneau = new ContentPanel();
96
 
860 jpm 97
		panneau.setHeading(i18nC.collectionPersonneTitre());
703 jp_milcent 98
		panneau.setIcon(Images.ICONES.table());
99
		panneau.setLayout(new FitLayout());
100
		panneau.setFrame(true);
101
 
102
		return panneau;
103
	}
104
 
105
	private ToolBar creerBarreOutilsGrille() {
106
		ToolBar barreOutils = new ToolBar();
107
 
108
		Button ajouterPersonneBouton = creerBoutonAjouter();
109
		barreOutils.add(ajouterPersonneBouton);
110
 
111
		barreOutils.add(new SeparatorToolItem());
112
 
860 jpm 113
		personnesBoutonModifier = creerBoutonModifier();
114
		barreOutils.add(personnesBoutonModifier);
703 jp_milcent 115
 
116
		barreOutils.add(new SeparatorToolItem());
117
 
860 jpm 118
		personnesBoutonSupprimer = creerBoutonSupprimer();
119
		barreOutils.add(personnesBoutonSupprimer);
703 jp_milcent 120
 
121
		barreOutils.add(new SeparatorToolItem());
122
 
123
		Button rafraichirPersonneBouton = creerBoutonRafraichir();
124
		barreOutils.add(rafraichirPersonneBouton);
125
 
126
		barreOutils.add(new SeparatorToolItem());
127
 
860 jpm 128
		personnesSaisisComboBox = creerComboBoxAuteursSaisis();
129
		barreOutils.add(personnesSaisisComboBox);
703 jp_milcent 130
 
860 jpm 131
		ajouterPersonneSaisiBouton = creerBoutonAjouterPersonneSaisie();
132
		barreOutils.add(ajouterPersonneSaisiBouton);
703 jp_milcent 133
 
134
		return barreOutils;
135
	}
136
 
137
	private Button creerBoutonAjouter() {
138
		Button bouton = new Button(i18nC.ajouter());
139
		bouton.setIcon(Images.ICONES.vcardAjouter());
140
		bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
141
			@Override
142
			public void componentSelected(ButtonEvent ce) {
775 jpm 143
				FenetreForm fenetre = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_AJOUTER);
703 jp_milcent 144
				fenetre.show();
145
			}
146
		});
147
		return bouton;
148
	}
149
 
150
	private Button creerBoutonModifier() {
151
		Button bouton = new Button(i18nC.modifier());
152
		bouton.setIcon(Images.ICONES.vcardModifier());
153
		bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
154
			@Override
155
			public void componentSelected(ButtonEvent ce) {
156
				Personne auteurSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
157
				if (auteurSaisiSelectionne == null) {
860 jpm 158
					Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPersonne());
703 jp_milcent 159
				} else {
775 jpm 160
					FenetreForm fenetre = creerFenetreModaleAvecFormulairePersonne(Formulaire.MODE_MODIFIER);
703 jp_milcent 161
					fenetre.show();
162
				}
163
			}
164
		});
165
		return bouton;
166
	}
775 jpm 167
 
168
	private FenetreForm creerFenetreModaleAvecFormulairePersonne(String mode) {
169
		final FenetreForm fenetre = new FenetreForm("");
170
		final PersonneForm formulaire = creerFormulairePersonne(fenetre);
171
		fenetre.add(formulaire);
172
		return fenetre;
173
	}
174
 
175
	private PersonneForm creerFormulairePersonne(final FenetreForm fenetre) {
849 gduche 176
		PersonneForm formulaire = new PersonneForm(mediateur, PersonneForm.MODE_AJOUTER, null);
177
		/*fenetre.setHeading(formulaire.getHeading());
775 jpm 178
		formulaire.setHeaderVisible(false);
849 gduche 179
		formulaire.setTopComponent(null);*/
703 jp_milcent 180
 
775 jpm 181
		// TODO : gérer la barre d'outil avec des évènements spécifique au contexte de fenêtre modale
182
		SelectionListener<ButtonEvent> ecouteur = creerEcouteurValidationFormulairePersonne(fenetre, formulaire);
183
		final ButtonBar barreValidation = new FormulaireBarreValidation(ecouteur);
849 gduche 184
		//formulaire.setBottomComponent(barreValidation);
775 jpm 185
 
186
		if (mode.equals(Formulaire.MODE_MODIFIER)) {
187
			// TODO : simplifier la gestion de l'ajout des données d'une Personne au form pour la modification... (pas besoin de passer par une liste).
188
			Information info = new Information("liste_personne");
189
			PersonneListe personnes = new PersonneListe();
190
			Personne auteurSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
191
			personnes.put(auteurSaisiSelectionne.getId(), auteurSaisiSelectionne);
192
			info.setDonnee(0, personnes);
193
			formulaire.rafraichir(info);
194
		}
195
 
196
		return formulaire;
197
	}
198
 
199
	private SelectionListener<ButtonEvent> creerEcouteurValidationFormulairePersonne(final FenetreForm fenetre, final PersonneForm formulaire) {
200
		SelectionListener<ButtonEvent> ecouteur = new SelectionListener<ButtonEvent>() {
201
			@Override
202
			public void componentSelected(ButtonEvent ce) {
203
				String code = ((Button) ce.getComponent()).getData("code");
204
				if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
205
					Boolean ok = formulaire.enregistrer();
206
					if (ok == true) {
207
						// Fermer fenêtre et ajouter/modifier l'élément dans la liste
208
					}
209
					fenetre.hide();
210
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
211
					Boolean ok = formulaire.enregistrer();
212
					if (ok == true) {
213
						// Fermer fenêtre et ajouter/modifier l'élément dans la liste
214
					}
215
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
216
					fenetre.hide();
217
				} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
849 gduche 218
					formulaire.reinitialiserFormulaire();
775 jpm 219
				}
220
			}
221
		};
222
 
223
		return ecouteur;
224
	}
225
 
703 jp_milcent 226
	private Button creerBoutonSupprimer() {
227
		Button bouton = new Button(i18nC.supprimer());
228
		bouton.setIcon(Images.ICONES.vcardSupprimer());
229
		bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
230
			@Override
231
			public void componentSelected(ButtonEvent ce) {
232
				Personne auteurSaisiSelectionne = grille.getSelectionModel().getSelectedItem();
233
				if (auteurSaisiSelectionne == null) {
860 jpm 234
					Info.display(i18nC.informationTitreGenerique(), i18nC.selectionnerPersonne());
703 jp_milcent 235
				} else {
720 jp_milcent 236
					supprimerDansGrille(auteurSaisiSelectionne);
703 jp_milcent 237
				}
238
			}
239
		});
240
		return bouton;
241
	}
242
 
243
	private Button creerBoutonRafraichir() {
244
		Button bouton = new Button(i18nC.rafraichir());
245
		bouton.setIcon(Images.ICONES.rafraichir());
246
		bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
247
			@Override
248
			public void componentSelected(ButtonEvent ce) {
249
				// TODO : mettre en place le rafraichissement de la liste
250
			}
251
		});
252
		return bouton;
253
	}
254
 
255
	private ComboBox<Personne> creerComboBoxAuteursSaisis() {
720 jp_milcent 256
		ListStore<Personne> personnesSaisiesStore = new ListStore<Personne>();
257
		personnesSaisiesStore.add(new ArrayList<Personne>());
703 jp_milcent 258
 
259
		ComboBox<Personne> comboBox = new ComboBox<Personne>();
260
		comboBox.setWidth(200);
860 jpm 261
		comboBox.setEmptyText(i18nC.chercherPersonneSaisi());
703 jp_milcent 262
		comboBox.setTriggerAction(TriggerAction.ALL);
263
		comboBox.setEditable(true);
264
		comboBox.setDisplayField("fmt_nom_complet");
720 jp_milcent 265
		comboBox.setStore(personnesSaisiesStore);
703 jp_milcent 266
		comboBox.addKeyListener(new KeyListener() {
267
			public void componentKeyUp(ComponentEvent ce) {
860 jpm 268
				if (personnesSaisisComboBox.getRawValue() != null && personnesSaisisComboBox.getRawValue().length() > 0) {
775 jpm 269
					if (!ce.isNavKeyPress()) {
860 jpm 270
						obtenirPersonnesSaisis(personnesSaisisComboBox.getRawValue());
775 jpm 271
					}
703 jp_milcent 272
				}
273
			}
274
		});
775 jpm 275
		comboBox.addListener(Events.Select, new Listener<BaseEvent>() {
276
			@Override
277
			public void handleEvent(BaseEvent be) {
860 jpm 278
				if (personnesSaisisComboBox.getValue() instanceof Personne) {
279
					ajouterPersonneSaisiBouton.fireEvent(Events.Select);
775 jpm 280
				}
281
			}
282
		});
703 jp_milcent 283
		return comboBox;
284
	}
285
 
860 jpm 286
	private Button creerBoutonAjouterPersonneSaisie() {
720 jp_milcent 287
		Button bouton = new Button(i18nC.ajouter());
703 jp_milcent 288
		bouton.addSelectionListener(new SelectionListener<ButtonEvent>() {
289
			@Override
290
			public void componentSelected(ButtonEvent ce) {
860 jpm 291
				Personne auteurSaisiSelectionne = personnesSaisisComboBox.getValue();
720 jp_milcent 292
				ajouterDansGrille(auteurSaisiSelectionne);
860 jpm 293
				personnesSaisisComboBox.setValue(null);
703 jp_milcent 294
			}
295
		});
296
		return bouton;
297
	}
298
 
860 jpm 299
	private void ajouterDansGrille(Personne personne) {
300
		if (personne != null) {
703 jp_milcent 301
			// Ajout de la personne ajoutée à la liste
860 jpm 302
			if (personne.getId() != null && !personne.getId().equals("")) {
303
				personnesAjoutes.put(personne.getId(), personne);
703 jp_milcent 304
			}
305
 
306
			// Définition de l'état
860 jpm 307
			personne.set("etat", ETAT_AJOUTE);
703 jp_milcent 308
 
309
			// Ajout à la grille
860 jpm 310
			grille.getStore().insert(personne, 0);
800 jpm 311
			grille.getSelectionModel().select(0, false);
703 jp_milcent 312
		}
313
	}
314
 
860 jpm 315
	private void supprimerDansGrille(Personne personne) {
316
		if (personne != null) {
703 jp_milcent 317
			// Ajout de la personne supprimée à la liste
860 jpm 318
			if ((personne.get("etat") == null || !personne.get("etat").equals(ETAT_AJOUTE)) && personne.getId() != null && !personne.getId().equals("")) {
319
				personnesSupprimes.put(personne.getId(), personne);
703 jp_milcent 320
			}
321
 
322
			// Suppression de l'enregistrement de la grille
860 jpm 323
			grille.getStore().remove(personne);
703 jp_milcent 324
		}
325
	}
326
 
327
	private Grid<Personne> creerGrille() {
328
		ListStore<Personne> storeGrille = new ListStore<Personne>();
329
		storeGrille.addListener(Store.Add, new Listener<StoreEvent<Personne>>() {
330
			public void handleEvent(StoreEvent<Personne> ce) {
331
				actualiserEtatBoutonsBarreOutils();
332
			}
333
		});
334
		storeGrille.addListener(Store.Remove, new Listener<StoreEvent<Personne>>() {
335
			public void handleEvent(StoreEvent<Personne> ce) {
336
				actualiserEtatBoutonsBarreOutils();
337
			}
338
		});
339
 
340
		RowNumberer pluginLigneNumero = new RowNumberer();
860 jpm 341
 
703 jp_milcent 342
		List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
343
		colonnes.add(pluginLigneNumero);
860 jpm 344
 
345
		typeRelationCombo = new ComboBox<Valeur>();
346
		typeRelationCombo.setForceSelection(true);
347
		typeRelationCombo.setTriggerAction(TriggerAction.ALL);
348
		typeRelationCombo.setDisplayField("nom");
349
		typeRelationCombo.setStore(new ListStore<Valeur>());
350
		typeRelationCombo.setEditable(false);
351
 
352
		CellEditor editeurRelation = new CellEditor(typeRelationCombo) {
353
			@Override
354
			public Object preProcessValue(Object valeur) {
355
				Valeur retour = null;
356
				if (valeur != null ) {
357
					if (typeRelationCombo.getStore().findModel("nom", valeur.toString()) != null) {
358
						retour = typeRelationCombo.getStore().findModel("nom", valeur.toString());
359
					} else if (typeRelationCombo.getStore().findModel("abr", valeur.toString()) != null) {
360
						retour = typeRelationCombo.getStore().findModel("abr", valeur.toString());
361
					}
362
				}
363
				return retour;
364
			}
365
 
366
			@Override
367
			public Object postProcessValue(Object valeur) {
368
				String retour = null;
369
				if (valeur != null ) {
370
					if (valeur instanceof Valeur) {
371
						Valeur valeurOntologie = (Valeur) valeur;
372
						retour = valeurOntologie.getNom();
373
					}
374
				}
375
				return retour;
376
			}
377
		};
378
 
379
		ColumnConfig typeRelationColonne = new ColumnConfig("type_relation", i18nC.typeRelationPersonneCollection(), 75);
380
		typeRelationColonne.setEditor(editeurRelation);
381
		colonnes.add(typeRelationColonne);
382
 
703 jp_milcent 383
		colonnes.add(new ColumnConfig("fmt_nom_complet", i18nC.personneNomComplet(), 150));
384
		colonnes.add(new ColumnConfig("nom", i18nC.personneNom(), 75));
385
		colonnes.add(new ColumnConfig("prenom", i18nC.personnePrenom(), 75));
386
		colonnes.add(new ColumnConfig("prefixe", i18nC.personnePrefixe(), 50));
387
		//colonnes.add(new ColumnConfig("truk_nom_autre", i18nC.personneNomAutre(), 200));
388
		colonnes.add(new ColumnConfig("naissance_date", i18nC.date(), 75));
389
		colonnes.add(new ColumnConfig("naissance_lieu", i18nC.lieu(), 100));
390
		colonnes.add(new ColumnConfig("ce_deces", i18nC.personneDecedeeInterogation(), 50));
391
		colonnes.add(new ColumnConfig("deces_date", i18nC.date(), 75));
392
		colonnes.add(new ColumnConfig("deces_lieu", i18nC.lieu(), 100));
393
 
394
		GridSelectionModel<Personne> modeleDeSelection = new GridSelectionModel<Personne>();
395
 
396
		ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
397
		modeleDeColonnes.addHeaderGroup(0, 1, new HeaderGroupConfig(i18nC.personneIdentite(), 1, 4));
398
		modeleDeColonnes.addHeaderGroup(0, 5, new HeaderGroupConfig(i18nC.personneNaissance(), 1, 2));
399
		modeleDeColonnes.addHeaderGroup(0, 7, new HeaderGroupConfig(i18nC.personneDeces(), 1, 3));
400
 
860 jpm 401
		EditorGrid<Personne> grillePersonne = new EditorGrid<Personne>(storeGrille, modeleDeColonnes);
703 jp_milcent 402
		grillePersonne.setHeight("100%");
403
		grillePersonne.setBorders(true);
404
		grillePersonne.setSelectionModel(modeleDeSelection);
405
		grillePersonne.addPlugin(pluginLigneNumero);
406
		grillePersonne.getView().setForceFit(true);
407
		grillePersonne.setAutoExpandColumn("fmt_nom_complet");
408
		grillePersonne.setStripeRows(true);
409
		grillePersonne.setTrackMouseOver(true);
410
 
411
		return grillePersonne;
412
	}
413
 
414
	public void actualiserEtatBoutonsBarreOutils() {
415
		// Activation des boutons si la grille contient un élément
416
		if (grille.getStore().getCount() > 0) {
860 jpm 417
			personnesBoutonSupprimer.enable();
418
			personnesBoutonModifier.enable();
703 jp_milcent 419
		}
420
		// Désactivation des boutons si la grille ne contient plus d'élément
421
		if (grille.getStore().getCount() == 0) {
860 jpm 422
			personnesBoutonSupprimer.disable();
423
			personnesBoutonModifier.disable();
703 jp_milcent 424
		}
425
	}
426
 
427
	public void rafraichir(Object nouvellesDonnees) {
860 jpm 428
		if (nouvellesDonnees instanceof ValeurListe) {
429
			ValeurListe listeValeurs = (ValeurListe) nouvellesDonnees;
430
			rafraichirValeurListe(listeValeurs);
431
		} else if (nouvellesDonnees instanceof Information) {
703 jp_milcent 432
			Information info = (Information) nouvellesDonnees;
433
			rafraichirInformation(info);
434
		} else {
435
			GWT.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
436
		}
437
	}
438
 
860 jpm 439
	private void rafraichirValeurListe(ValeurListe listeValeurs) {
440
		if (listeValeurs.getId().equals(config.getListeId("relationPersonneCollection"))) {
441
			Formulaire.rafraichirComboBox(listeValeurs, typeRelationCombo);
442
		} else {
443
			GWT.log("Gestion de la liste "+listeValeurs.getId()+" non implémenté!", null);
444
		}
445
	}
446
 
703 jp_milcent 447
	public void rafraichirInformation(Information info) {
448
		if (info.getMessages() != null && !info.getMessages().toString().equals("[]")) {
449
			GWT.log("MESSAGES:\n"+info.getMessages().toString(), null);
450
		}
451
		String type = info.getType();
452
		if (type.equals("liste_personne")) {
453
			if (info.getDonnee(0) != null) {
454
				PersonneListe personnes = (PersonneListe) info.getDonnee(0);
455
				List<Personne> liste = personnes.toList();
456
 
860 jpm 457
				personnesSaisisComboBox.getStore().removeAll();
458
				personnesSaisisComboBox.getStore().add(liste);
459
				personnesSaisisComboBox.expand();
703 jp_milcent 460
			}
461
		} else if (type.equals("liste_collection_a_personne")) {
462
			if (info.getDonnee(0) != null) {
463
				initialiser();
464
				// TODO : passer à la méthode peupler un objet CollectionAPersonneListe et modifier le type de auteurs
465
				//auteurs = (CollectionAPersonneListe) info.getDonnee(0);
466
				peupler();
467
			}
468
		}
469
	}
470
 
471
	private void peupler() {
472
		layout();
860 jpm 473
		Info.display(i18nC.chargementPersonne(), i18nC.ok());
703 jp_milcent 474
	}
475
 
860 jpm 476
	private void obtenirPersonnesSaisis(String nom) {
703 jp_milcent 477
		mediateur.selectionnerPersonneParNomComplet(this, null, nom+"%");
478
	}
479
}