Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 703 Rev 851
Line 145... Line 145...
145
				supprimer.enable();
145
				supprimer.enable();
146
			}
146
			}
147
		}
147
		}
148
	}
148
	}
Line 149... Line 149...
149
 
149
 
150
	public void rafraichir(Object nouvelleDonnees) {
150
	public void rafraichir(Object nouvellesDonnees) {
151
		if (nouvelleDonnees instanceof CollectionListe) {
151
		if (nouvellesDonnees instanceof CollectionListe) {
Line 152... Line 152...
152
			CollectionListe collections = (CollectionListe) nouvelleDonnees;
152
			CollectionListe collections = (CollectionListe) nouvellesDonnees;
153
 
153
 
154
			if (collections != null) {			
154
			if (collections != null) {			
155
				List<Collection> liste = collections.toList();
155
				List<Collection> liste = collections.toList();
Line 156... Line 156...
156
				store.removeAll();
156
				store.removeAll();
157
				store.add(liste);
157
				store.add(liste);
158
	
158
	
159
				mediateur.actualiserPanneauCentral();
159
				mediateur.actualiserPanneauCentral();
160
			}
160
			}
161
		} else if (nouvelleDonnees instanceof Information) {
161
		} else if (nouvellesDonnees instanceof Information) {
162
			Information info = (Information) nouvelleDonnees;
162
			Information info = (Information) nouvellesDonnees;
Line 163... Line 163...
163
			if (info.getType().equals("suppression_collection")) {
163
			if (info.getType().equals("suppression_collection")) {
Line 175... Line 175...
175
				gererEtatActivationBouton();
175
				gererEtatActivationBouton();
176
			} else if (info.getType().equals("maj_utilisateur")) {
176
			} else if (info.getType().equals("maj_utilisateur")) {
177
				gererEtatActivationBouton();
177
				gererEtatActivationBouton();
178
			}
178
			}
179
		} else {
179
		} else {
180
			GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
180
			GWT.log(mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()), null);
181
		}
181
		}
182
		layout();
182
		layout();
183
	}
183
	}
184
}
184
}