Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 924 Rev 926
Line 11... Line 11...
11
import org.tela_botanica.client.interfaces.Rafraichissable;
11
import org.tela_botanica.client.interfaces.Rafraichissable;
12
import org.tela_botanica.client.modeles.Information;
12
import org.tela_botanica.client.modeles.Information;
13
import org.tela_botanica.client.modeles.Projet;
13
import org.tela_botanica.client.modeles.Projet;
14
import org.tela_botanica.client.modeles.ProjetListe;
14
import org.tela_botanica.client.modeles.ProjetListe;
15
import org.tela_botanica.client.modeles.Utilisateur;
15
import org.tela_botanica.client.modeles.Utilisateur;
-
 
16
import org.tela_botanica.client.util.Debug;
Line 16... Line 17...
16
 
17
 
17
import com.extjs.gxt.ui.client.Registry;
18
import com.extjs.gxt.ui.client.Registry;
18
import com.extjs.gxt.ui.client.Style.SortDir;
19
import com.extjs.gxt.ui.client.Style.SortDir;
19
import com.extjs.gxt.ui.client.event.BaseEvent;
20
import com.extjs.gxt.ui.client.event.BaseEvent;
Line 103... Line 104...
103
				clicListe(projet);
104
				clicListe(projet);
104
			}
105
			}
105
		});
106
		});
Line 106... Line 107...
106
		
107
		
107
		store = new ListStore<Projet>();
108
		store = new ListStore<Projet>();
Line 108... Line 109...
108
		store.sort("titre", SortDir.ASC);
109
		store.sort("id_projet", SortDir.ASC);
109
		
110
		
110
		grille = new Grid<Projet>(store, modeleDesColonnes);
111
		grille = new Grid<Projet>(store, modeleDesColonnes);
111
		grille.setWidth("100%");
112
		grille.setWidth("100%");
Line 157... Line 158...
157
	public void rafraichir(Object nouvellesDonnees) {
158
	public void rafraichir(Object nouvellesDonnees) {
158
		if (nouvellesDonnees instanceof ProjetListe) {
159
		if (nouvellesDonnees instanceof ProjetListe) {
159
			ProjetListe projets = (ProjetListe) nouvellesDonnees;
160
			ProjetListe projets = (ProjetListe) nouvellesDonnees;
160
			if (projets != null) {
161
			if (projets != null) {
161
				List<Projet> liste = projets.toList();
162
				List<Projet> liste = projets.toList();
162
				store = new ListStore<Projet>();
-
 
163
				store.removeAll();
163
				store.removeAll();
164
				store.add(liste);
164
				store.add(liste);
165
				mediateur.actualiserPanneauCentral();
165
				mediateur.actualiserPanneauCentral();
166
			}
166
			}
167
		} else if (nouvellesDonnees instanceof Information) {
167
		} else if (nouvellesDonnees instanceof Information) {