Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 566 Rev 567
Line 140... Line 140...
140
	}
140
	}
Line 141... Line 141...
141
 
141
 
142
	public void rafraichir(Object nouvellesDonnees) {
142
	public void rafraichir(Object nouvellesDonnees) {
143
		if (nouvellesDonnees instanceof PersonneListe) {
143
		if (nouvellesDonnees instanceof PersonneListe) {
144
			PersonneListe listePersonnes = (PersonneListe) nouvellesDonnees;
-
 
145
			List<Personne> liste = (List<Personne>) listePersonnes.toList();
-
 
146
			
-
 
147
			PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(liste);  
-
 
148
			PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
-
 
149
		    loader.setRemoteSort(true); 
-
 
150
		    pagination.bind(loader);
-
 
151
		    loader.load(0, nbElementsPage);
-
 
152
			
-
 
153
			ListStore<Personne> store = new ListStore<Personne>(loader);
-
 
154
			grille.reconfigure(store, modeleColonnes);
-
 
155
			
-
 
156
			mediateur.actualiserPanneauCentral();
-
 
Line -... Line 144...
-
 
144
			PersonneListe listePersonnes = (PersonneListe) nouvellesDonnees;
-
 
145
			
-
 
146
			if (listePersonnes != null) {
-
 
147
				List<Personne> liste = (List<Personne>) listePersonnes.toList();
-
 
148
				
-
 
149
				PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(liste);
-
 
150
				PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
-
 
151
			    loader.setRemoteSort(true); 
-
 
152
			    pagination.bind(loader);
-
 
153
			    
-
 
154
			    loader.load(0, nbElementsPage);
-
 
155
				
-
 
156
				ListStore<Personne> store = new ListStore<Personne>(loader);
-
 
157
				grille.reconfigure(store, modeleColonnes);
-
 
158
				
-
 
159
				mediateur.actualiserPanneauCentral();
157
			store.sort("fmt_nom_complet", SortDir.ASC);
160
				store.sort("fmt_nom_complet", SortDir.ASC);
158
			
161
			}
159
		} else if (nouvellesDonnees instanceof Information)	{
162
		} else if (nouvellesDonnees instanceof Information)	{
160
			Information info = (Information) nouvellesDonnees;
163
			Information info = (Information) nouvellesDonnees;
161
			if (info.getType().equals("suppression_personne")) 	{
164
			if (info.getType().equals("suppression_personne")) 	{