Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 565 Rev 567
Line 13... Line 13...
13
import org.tela_botanica.client.modeles.Information;
13
import org.tela_botanica.client.modeles.Information;
14
import org.tela_botanica.client.modeles.Utilisateur;
14
import org.tela_botanica.client.modeles.Utilisateur;
Line 15... Line 15...
15
 
15
 
16
import com.extjs.gxt.ui.client.Registry;
16
import com.extjs.gxt.ui.client.Registry;
-
 
17
import com.extjs.gxt.ui.client.Style.SortDir;
17
import com.extjs.gxt.ui.client.Style.SortDir;
18
import com.extjs.gxt.ui.client.event.BaseEvent;
-
 
19
import com.extjs.gxt.ui.client.event.ButtonEvent;
-
 
20
import com.extjs.gxt.ui.client.event.Events;
18
import com.extjs.gxt.ui.client.event.ButtonEvent;
21
import com.extjs.gxt.ui.client.event.Listener;
19
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
22
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
20
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
23
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
21
import com.extjs.gxt.ui.client.event.SelectionListener;
24
import com.extjs.gxt.ui.client.event.SelectionListener;
22
import com.extjs.gxt.ui.client.store.ListStore;
25
import com.extjs.gxt.ui.client.store.ListStore;
Line 102... Line 105...
102
		grille.setWidth("100%");
105
		grille.setWidth("100%");
103
		grille.setAutoExpandColumn("nom");
106
		grille.setAutoExpandColumn("nom");
104
		grille.getView().setAutoFill(true);
107
		grille.getView().setAutoFill(true);
105
		grille.getView().setForceFit(true);
108
		grille.getView().setForceFit(true);
106
		grille.setSelectionModel(modeleDeSelection);
109
		grille.setSelectionModel(modeleDeSelection);
-
 
110
		grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
-
 
111
			@Override
-
 
112
			public void handleEvent(BaseEvent be) {
-
 
113
				grille.getSelectionModel().select(0, false);
-
 
114
			}
-
 
115
		});
-
 
116
 
107
		add(grille);
117
		add(grille);
108
	}
118
	}
Line 109... Line 119...
109
 
119
 
110
	private void clicListe(Collection m) {
120
	private void clicListe(Collection m) {
Line 140... Line 150...
140
				List<Collection> liste = (List<Collection>) collections.toList();
150
				List<Collection> liste = (List<Collection>) collections.toList();
141
				store.removeAll();
151
				store.removeAll();
142
				store.add(liste);
152
				store.add(liste);
Line 143... Line 153...
143
	
153
	
144
				mediateur.actualiserPanneauCentral();
-
 
145
				
-
 
146
				if (store.getCount() > 0) {
-
 
147
					grille.getSelectionModel().select(0, false);
-
 
148
				}
154
				mediateur.actualiserPanneauCentral();
149
			}
155
			}
150
		} else if (nouvelleDonnees instanceof Information) {
156
		} else if (nouvelleDonnees instanceof Information) {
151
			Information info = (Information) nouvelleDonnees;
157
			Information info = (Information) nouvelleDonnees;
152
			if (info.getType().equals("suppression_collection")) {
158
			if (info.getType().equals("suppression_collection")) {