Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 286 → Rev 287

/trunk/src/org/tela_botanica/client/vues/PanneauPersonneListe.java
12,6 → 12,7
import org.tela_botanica.client.modeles.PersonneListe;
 
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.Style.SelectionMode;
import com.extjs.gxt.ui.client.binder.TableBinder;
import com.extjs.gxt.ui.client.event.ComponentEvent;
22,6 → 23,7
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.extjs.gxt.ui.client.widget.table.Table;
import com.extjs.gxt.ui.client.widget.table.TableColumn;
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
35,6 → 37,7
private Table table = null;
private ListStore<Personne> store = null;
private TableBinder<Personne> binder = null;
private Personne personneSelectionnee = null;
public PanneauPersonneListe() {
mediateur = Registry.get(RegistreId.MEDIATEUR);
58,7 → 61,7
modifier.setIconStyle(ComposantClass.ICONE_MODIFIER);
modifier.addSelectionListener(new SelectionListener<ComponentEvent>() {
public void componentSelected(ComponentEvent ce) {
//coelMediateur.clicModifierStructure(structureSelection)();
mediateur.clicModifierPersonne(personneSelectionnee);
}
});
toolBar.add(modifier);
80,8 → 83,6
 
List<TableColumn> columns = new ArrayList<TableColumn>();
//TODO : La liste déborde sur la droite, ce qui ajoute une scroll bar
// ATTENTION : les noms des colonnes doivent correspondrent aux noms variables de la classe utilisée dans la liste
columns.add(new TableColumn("fmt_nom_complet", "Nom Complet", .20f));
columns.add(new TableColumn("nom", "Nom", .20f));
94,7 → 95,11
table = new Table(cm);
table.setSelectionMode(SelectionMode.MULTI);
table.setBorders(false);
 
table.setHorizontalScroll(true);
add(table);
 
store = new ListStore<Personne>();
106,11 → 111,14
binder.addSelectionChangedListener(new SelectionChangedListener<Personne>() {
public void selectionChanged(SelectionChangedEvent<Personne> event) {
Personne p = (Personne) event.getSelectedItem();
personneSelectionnee = p;
clicListe(p);
}
});
 
setLayout(new FitLayout());
}
 
public ListStore<Personne> getStore() {