Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 277 Rev 278
Line 231... Line 231...
231
	public void clicListePersonne(Personne personne)	{
231
	public void clicListePersonne(Personne personne)	{
232
		((PersonneDetailPanneauVue) Registry.get(RegistreId.PANNEAU_PERSONNE_DETAIL)).rafraichir(personne);
232
		((PersonneDetailPanneauVue) Registry.get(RegistreId.PANNEAU_PERSONNE_DETAIL)).rafraichir(personne);
Line 233... Line 233...
233
		
233
		
Line 234... Line 234...
234
	}
234
	}
-
 
235
 
235
 
236
	public void afficherListePersonnes(PersonneListe personnesACharger)	{
236
	public void afficherListePersonnes(PersonneListe personnes)	{
237
		if ( !(contenuPanneauCentre instanceof PersonneVue) ) {
237
		PersonneVue personneVue = new PersonneVue();
238
			PersonneVue personneVue = new PersonneVue();
-
 
239
			contenuPanneauCentre = personneVue;
238
		contenuPanneauCentre = personneVue;
240
			panneauCentre.add(personneVue);
239
		panneauCentre.add(personneVue);
241
		}
240
		personneVue.rafraichir(personnes);
242
		contenuPanneauCentre.rafraichir(personnesACharger);
Line 241... Line 243...
241
		panneauCentre.layout();
243
		//contenuPanneauCentre.layout();
242
	}
244
	}
243
 
245
 
Line 373... Line 375...
373
 
375
 
374
	public void clicListeInstitution(Structure institution) {
376
	public void clicListeInstitution(Structure institution) {
375
		((StructureDetailPanneauVue) Registry.get(RegistreId.PANNEAU_INSTITUTION_DETAIL)).rafraichir(institution);		
377
		((StructureDetailPanneauVue) Registry.get(RegistreId.PANNEAU_INSTITUTION_DETAIL)).rafraichir(institution);		
Line 376... Line 378...
376
	}
378
	}
377
 
379
 
378
	public void afficherListeStructures(StructureListe nouvelleDonnees) {
380
	public void afficherListeStructures(StructureListe structuresACharger) {
379
		// TODO : créer dès l'initialisation de l'application InsitutionVue et la cacher
381
		// TODO : créer dès l'initialisation de l'application InsitutionVue et la cacher
380
		StructureVue institutionVue = new StructureVue();
382
		StructureVue institutionVue = new StructureVue();
381
		panneauCentre.add(institutionVue);
383
		panneauCentre.add(institutionVue);
382
		panneauCentre.setId(ComposantId.PANNEAU_STRUCTURE_LISTE);
384
		panneauCentre.setId(ComposantId.PANNEAU_STRUCTURE_LISTE);
383
		contenuPanneauCentre = institutionVue;
385
		contenuPanneauCentre = institutionVue;
Line 384... Line 386...
384
		institutionVue.rafraichir(nouvelleDonnees);
386
		institutionVue.rafraichir(structuresACharger);
385
	}
387
	}
386
	
388
	
Line 525... Line 527...
525
	//+----------------------------------------------------------------------------------------------------------------+
527
	//+----------------------------------------------------------------------------------------------------------------+
Line 526... Line 528...
526
	
528
	
527
	public void rafraichir(Object nouvelleDonnees) {
529
	public void rafraichir(Object nouvelleDonnees) {
528
		if (nouvelleDonnees instanceof Utilisateur) {
530
		if (nouvelleDonnees instanceof Utilisateur) {
-
 
531
			mettreAJourEtatIdentification((Utilisateur) nouvelleDonnees);
-
 
532
		} else {
529
			mettreAJourEtatIdentification((Utilisateur) nouvelleDonnees);
533
			GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
530
		}
534
		}
531
	}
535
	}
532
}
536
}