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,14 → 89,15 |
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); |
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")) { |