Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 566 → Rev 567

/trunk/src/org/tela_botanica/client/vues/PersonneListeVue.java
142,20 → 142,23
public void rafraichir(Object nouvellesDonnees) {
if (nouvellesDonnees instanceof PersonneListe) {
PersonneListe listePersonnes = (PersonneListe) nouvellesDonnees;
List<Personne> liste = (List<Personne>) listePersonnes.toList();
PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(liste);
PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
loader.setRemoteSort(true);
pagination.bind(loader);
loader.load(0, nbElementsPage);
ListStore<Personne> store = new ListStore<Personne>(loader);
grille.reconfigure(store, modeleColonnes);
mediateur.actualiserPanneauCentral();
store.sort("fmt_nom_complet", SortDir.ASC);
if (listePersonnes != null) {
List<Personne> liste = (List<Personne>) listePersonnes.toList();
PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(liste);
PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
loader.setRemoteSort(true);
pagination.bind(loader);
loader.load(0, nbElementsPage);
ListStore<Personne> store = new ListStore<Personne>(loader);
grille.reconfigure(store, modeleColonnes);
mediateur.actualiserPanneauCentral();
store.sort("fmt_nom_complet", SortDir.ASC);
}
} else if (nouvellesDonnees instanceof Information) {
Information info = (Information) nouvellesDonnees;
if (info.getType().equals("suppression_personne")) {