Subversion Repositories eFlore/Applications.coel

Rev

Rev 180 | Rev 188 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 180 Rev 186
Line 55... Line 55...
55
	private MenuPanneauVue panneauOuest = null;
55
	private MenuPanneauVue panneauOuest = null;
56
	private ContenuPanneauVue panneauCentre = null;
56
	private ContenuPanneauVue panneauCentre = null;
57
	private Rafraichissable contenuPanneauCentre = null;
57
	private Rafraichissable contenuPanneauCentre = null;
Line -... Line 58...
-
 
58
	
58
	
59
	
59
	
60
	
60
	public Mediateur() {
61
	public Mediateur() {
61
		// Enregistrement du Médiateur dans le Registre
62
		// Enregistrement du Médiateur dans le Registre
62
		Registry.register(RegistreId.MEDIATEUR, this);
63
		Registry.register(RegistreId.MEDIATEUR, this);
Line 223... Line 224...
223
		((PersonneDetailPanneauVue) Registry.get(RegistreId.PANNEAU_PERSONNE_DETAIL)).rafraichir(personne);
224
		((PersonneDetailPanneauVue) Registry.get(RegistreId.PANNEAU_PERSONNE_DETAIL)).rafraichir(personne);
Line 224... Line 225...
224
		
225
		
Line 225... Line 226...
225
	}
226
	}
-
 
227
 
226
 
228
	public void afficherListePersonnes(PersonneListe nouvelleDonnees)	{
-
 
229
		
227
	public void afficherListePersonnes(PersonneListe nouvelleDonnees)	{
230
		PersonneVue personneVue = new PersonneVue();
228
		PersonneVue personneVue = new PersonneVue();
231
		contenuPanneauCentre = personneVue;
229
		panneauCentre.add(personneVue);
232
		panneauCentre.add(personneVue);
Line 230... Line 233...
230
		personneVue.rafraichir(nouvelleDonnees);
233
		personneVue.rafraichir(nouvelleDonnees);
Line 256... Line 259...
256
 
259
 
Line 257... Line 260...
257
	public void afficherListePublication(PublicationListe nouvelleDonnees) {
260
	public void afficherListePublication(PublicationListe nouvelleDonnees) {
258
		
261
		
-
 
262
		PublicationVue publicationVue = new PublicationVue() ;
259
		PublicationVue publicationVue = new PublicationVue() ;
263
		panneauCentre.add(publicationVue);
Line 260... Line 264...
260
		panneauCentre.add(publicationVue);
264
		contenuPanneauCentre = publicationVue;
Line 261... Line 265...
261
		publicationVue.rafraichir(nouvelleDonnees);
265
		publicationVue.rafraichir(nouvelleDonnees);
Line 362... Line 366...
362
	public void rafraichirListeProjets()	{
366
	public void rafraichirListeProjets()	{
363
		((Modele) Registry.get(RegistreId.MODELE)).obtenirListeProjets();
367
		((Modele) Registry.get(RegistreId.MODELE)).obtenirListeProjets();
364
	}
368
	}
Line 365... Line 369...
365
	
369
	
366
	public void afficherListeProjets(ProjetsListe projets)	{
370
	public void afficherListeProjets(ProjetsListe projets)	{
367
		((MenuPanneauVue) Registry.get(RegistreId.PANNEAU_OUEST)).rafraichir(projets);			
371
		((MenuPanneauVue) Registry.get(RegistreId.PANNEAU_OUEST)).rafraichir(projets);
Line 368... Line 372...
368
	}
372
	}
369
	
373
	
-
 
374
	public void selectionnerProjet(String selectedIndexValue) {
370
	public void selectionnerProjet(String selectedIndexValue) {
375
		Registry.register(RegistreId.PROJET, selectedIndexValue);
-
 
376
		if (contenuPanneauCentre instanceof PersonneVue)	{
-
 
377
			((Modele) Registry.get(RegistreId.MODELE)).obtenirListePersonnes();
371
		Registry.register(RegistreId.PROJET, selectedIndexValue);
378
			//FIXME Le rafraichissement du panneau ne se fait pas!
372
		//TODO : A la sélection d'un projet, la liste affichée, quelqu'elle soit, devrait être actualisée ...
-
 
373
	}
379
		}
-
 
380
	}
-
 
381
	
-
 
382
}
-
 
383
 
-
 
384
 
-
 
385
 
-
 
386
 
-
 
387
 
-
 
388
 
-
 
389
 
-
 
390
 
-
 
391
 
-
 
392
 
-
 
393
 
-
 
394
 
-
 
395
 
-
 
396
 
-
 
397
 
-
 
398
 
-
 
399