Subversion Repositories eFlore/Applications.coel

Rev

Rev 565 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 565 Rev 566
Line 13... Line 13...
13
import org.tela_botanica.client.modeles.StructureListe;
13
import org.tela_botanica.client.modeles.StructureListe;
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 100... Line 103...
100
		grille.setWidth("100%");
103
		grille.setWidth("100%");
101
		grille.setAutoExpandColumn("nom");
104
		grille.setAutoExpandColumn("nom");
102
		grille.getView().setAutoFill(true);
105
		grille.getView().setAutoFill(true);
103
		grille.getView().setForceFit(true);
106
		grille.getView().setForceFit(true);
104
		grille.setSelectionModel(modeleDeSelection);
107
		grille.setSelectionModel(modeleDeSelection);
-
 
108
		grille.addListener(Events.ViewReady, new Listener<BaseEvent>() {
-
 
109
			@Override
-
 
110
			public void handleEvent(BaseEvent be) {
-
 
111
				grille.getSelectionModel().select(0, false);
-
 
112
			}
-
 
113
		});
105
		add(grille);
114
		add(grille);
106
	}
115
	}
Line 107... Line 116...
107
 
116
 
108
	private void clicListe(Structure structure) {
117
	private void clicListe(Structure structure) {
Line 139... Line 148...
139
				store.removeAll();
148
				store.removeAll();
140
				store.add(liste);
149
				store.add(liste);
Line 141... Line 150...
141
	
150
	
Line 142... Line -...
142
				gererEtatActivationBouton();
-
 
143
				
-
 
144
				if (store.getCount() > 0) {
-
 
145
					grille.getSelectionModel().select(0, false);
151
				gererEtatActivationBouton();
146
				}
152
				
147
				mediateur.actualiserPanneauCentral();
153
				mediateur.actualiserPanneauCentral();
148
			}
154
			}
149
		} else if (nouvelleDonnees instanceof Information) {
155
		} else if (nouvelleDonnees instanceof Information) {