Line 14... |
Line 14... |
14 |
import org.tela_botanica.client.modeles.StructureListe;
|
14 |
import org.tela_botanica.client.modeles.StructureListe;
|
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.SelectionMode;
|
17 |
import com.extjs.gxt.ui.client.Style.SelectionMode;
|
- |
|
18 |
import com.extjs.gxt.ui.client.binder.TableBinder;
|
- |
|
19 |
import com.extjs.gxt.ui.client.data.BasePagingLoader;
|
- |
|
20 |
import com.extjs.gxt.ui.client.data.Loader;
|
- |
|
21 |
import com.extjs.gxt.ui.client.data.PagingLoader;
|
- |
|
22 |
import com.extjs.gxt.ui.client.data.PagingModelMemoryProxy;
|
18 |
import com.extjs.gxt.ui.client.binder.TableBinder;
|
23 |
import com.extjs.gxt.ui.client.data.RpcProxy;
|
19 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
24 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
20 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
25 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
21 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
26 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
22 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
27 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
23 |
import com.extjs.gxt.ui.client.store.ListStore;
|
28 |
import com.extjs.gxt.ui.client.store.ListStore;
|
- |
|
29 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
24 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
30 |
import com.extjs.gxt.ui.client.widget.PagingToolBar;
|
25 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
31 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
26 |
import com.extjs.gxt.ui.client.widget.table.Table;
|
32 |
import com.extjs.gxt.ui.client.widget.table.Table;
|
27 |
import com.extjs.gxt.ui.client.widget.table.TableColumn;
|
33 |
import com.extjs.gxt.ui.client.widget.table.TableColumn;
|
28 |
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
|
34 |
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
|
29 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
35 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
30 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
36 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
31 |
import com.google.gwt.core.client.GWT;
|
37 |
import com.google.gwt.core.client.GWT;
|
- |
|
38 |
import com.google.gwt.user.client.Window;
|
Line 32... |
Line 39... |
32 |
import com.google.gwt.user.client.Window;
|
39 |
import com.google.gwt.user.client.rpc.AsyncCallback;
|
Line 33... |
Line 40... |
33 |
|
40 |
|
34 |
public class PanneauPersonneListe extends ContentPanel implements Rafraichissable {
|
41 |
public class PanneauPersonneListe extends ContentPanel implements Rafraichissable {
|
Line 49... |
Line 56... |
49 |
public void componentSelected(ComponentEvent ce) {
|
56 |
public void componentSelected(ComponentEvent ce) {
|
50 |
coelMediateur.clicAjouterPersonne();
|
57 |
coelMediateur.clicAjouterPersonne();
|
51 |
}
|
58 |
}
|
52 |
});
|
59 |
});
|
53 |
toolBar.add(ajouter);
|
60 |
toolBar.add(ajouter);
|
- |
|
61 |
|
- |
|
62 |
|
- |
|
63 |
final Rafraichissable r = this ;
|
Line 54... |
Line -... |
54 |
|
- |
|
55 |
/*
|
64 |
|
56 |
TODO : ajouter btn mod & supp
|
65 |
// TODO : ajouter btn mod & supp
|
57 |
TextToolItem modifier = new TextToolItem("Modifier");
|
66 |
final TextToolItem modifier = new TextToolItem("Modifier");
|
- |
|
67 |
modifier.setIconStyle(ComposantClass.ICONE_MODIFIER);
|
- |
|
68 |
modifier.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
- |
|
69 |
public void componentSelected(ComponentEvent ce) {
|
- |
|
70 |
//coelMediateur.clicModifierStructure(structureSelection)();
|
- |
|
71 |
}
|
58 |
modifier.setIconStyle(ComposantClass.ICONE_MODIFIER);
|
72 |
});
|
Line 59... |
Line 73... |
59 |
toolBar.add(modifier);
|
73 |
toolBar.add(modifier);
|
- |
|
74 |
|
- |
|
75 |
final TextToolItem supprimer = new TextToolItem("Supprimer");
|
- |
|
76 |
supprimer.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
- |
|
77 |
public void componentSelected(ComponentEvent ce) {
|
- |
|
78 |
|
- |
|
79 |
coelMediateur.clicSupprimerPersonne(r,binder.getSelection());
|
60 |
|
80 |
}
|
61 |
TextToolItem supprimer = new TextToolItem("Supprimer");
|
81 |
});
|
62 |
supprimer.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
|
82 |
supprimer.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
|
63 |
toolBar.add(supprimer);
|
83 |
toolBar.add(supprimer);
|
Line 64... |
Line 84... |
64 |
*/
|
84 |
|
Line 65... |
Line 85... |
65 |
setTopComponent(toolBar);
|
85 |
setTopComponent(toolBar);
|
Line 91... |
Line 111... |
91 |
|
111 |
|
92 |
binder.addSelectionChangedListener(new SelectionChangedListener<Personne>() {
|
112 |
binder.addSelectionChangedListener(new SelectionChangedListener<Personne>() {
|
93 |
public void selectionChanged(SelectionChangedEvent<Personne> event) {
|
113 |
public void selectionChanged(SelectionChangedEvent<Personne> event) {
|
94 |
Personne p = (Personne) event.getSelectedItem();
|
114 |
Personne p = (Personne) event.getSelectedItem();
|
- |
|
115 |
clicListe(p);
|
95 |
clicListe(p);
|
116 |
|
96 |
}
|
117 |
}
|
Line 97... |
Line 118... |
97 |
});
|
118 |
});
|
98 |
|
119 |
|