Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 206 → Rev 210

/trunk/src/org/tela_botanica/client/vues/StructureListePanneauVue.java
15,6 → 15,7
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.SelectionMode;
import com.extjs.gxt.ui.client.Style.SortDir;
import com.extjs.gxt.ui.client.binder.TableBinder;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
88,15 → 89,16
columns.add(new TableColumn("nom", "Nom", .7f));
TableColumnModel cm = new TableColumnModel(columns);
 
table = new Table(cm);
table.setSelectionMode(SelectionMode.MULTI);
table.setBorders(false);
 
table.setStripeRows(true);
add(table);
 
store = new ListStore<Structure>();
 
store.sort("ville", SortDir.ASC);
binder = new TableBinder<Structure>(table, store);
binder.setAutoSelect(true);
binder.addSelectionChangedListener(new SelectionChangedListener<Structure>() {
138,6 → 140,7
if (listeInstitutions.size() > 0) {
binder.setSelection((Structure) listeInstitutions.get(0));
}
} else if (nouvelleDonnees instanceof Information) {
Information info = (Information) nouvelleDonnees;
if (info.getType().equals("suppression_structure")) {