Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 362 Rev 368
Line 115... Line 115...
115
		mediateur.clicListeInstitution(institution);
115
		mediateur.clicListeInstitution(institution);
116
	}
116
	}
Line 117... Line 117...
117
 
117
 
118
	public void rafraichir(Object nouvelleDonnees) {
118
	public void rafraichir(Object nouvelleDonnees) {
119
		if (nouvelleDonnees instanceof StructureListe) {
119
		if (nouvelleDonnees instanceof StructureListe) {
120
			StructureListe listeInstitutions = (StructureListe) nouvelleDonnees;
120
			StructureListe institutions = (StructureListe) nouvelleDonnees;
121
			setHeading("Institutions");
-
 
122
 
-
 
123
			List<Structure> liste = new ArrayList<Structure>();
-
 
124
			for (Iterator<String> it = listeInstitutions.keySet().iterator(); it.hasNext();) {
-
 
125
				liste.add(listeInstitutions.get(it.next()));
-
 
Line -... Line 121...
-
 
121
			setHeading("Institutions");
126
			}
122
			
127
			
123
			List<Structure> liste = (List<Structure>) institutions.toList();
Line 128... Line -...
128
			store.removeAll();
-
 
129
			store.add((List<Structure>) liste);
124
			store.removeAll();
130
 
125
			store.add(liste);
131
			// Test pour savoir si la liste contient des éléments
126
 
Line 132... Line 127...
132
			if (listeInstitutions.size() > 0) {
127
			if (institutions.size() > 0) {
133
				table.getSelectionModel().select(0);
-
 
134
			}
128
				table.getSelectionModel().select(0);
135
			
129
			}
136
			// Mise à jour du panneau central
130
			
137
			((LayoutContainer) Registry.get(RegistreId.PANNEAU_CENTRE)).layout();
131
			mediateur.actualiserPanneauCentral();
138
		} else if (nouvelleDonnees instanceof Information) {
132
		} else if (nouvelleDonnees instanceof Information) {