Line 12... |
Line 12... |
12 |
import org.tela_botanica.client.modeles.PublicationListe;
|
12 |
import org.tela_botanica.client.modeles.PublicationListe;
|
Line 13... |
Line 13... |
13 |
|
13 |
|
14 |
import com.extjs.gxt.ui.client.Registry;
|
14 |
import com.extjs.gxt.ui.client.Registry;
|
15 |
import com.extjs.gxt.ui.client.Style.SelectionMode;
|
15 |
import com.extjs.gxt.ui.client.Style.SelectionMode;
|
16 |
import com.extjs.gxt.ui.client.binder.TableBinder;
|
16 |
import com.extjs.gxt.ui.client.binder.TableBinder;
|
17 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
17 |
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
18 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
18 |
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
19 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
19 |
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
20 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
20 |
import com.extjs.gxt.ui.client.event.SelectionListener;
|
21 |
import com.extjs.gxt.ui.client.store.ListStore;
|
21 |
import com.extjs.gxt.ui.client.store.ListStore;
|
22 |
import com.extjs.gxt.ui.client.widget.Component;
|
22 |
import com.extjs.gxt.ui.client.widget.Component;
|
- |
|
23 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
23 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
24 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
24 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
25 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
25 |
import com.extjs.gxt.ui.client.widget.table.CellRenderer;
|
26 |
import com.extjs.gxt.ui.client.widget.table.CellRenderer;
|
26 |
import com.extjs.gxt.ui.client.widget.table.Table;
|
27 |
import com.extjs.gxt.ui.client.widget.table.Table;
|
27 |
import com.extjs.gxt.ui.client.widget.table.TableColumn;
|
28 |
import com.extjs.gxt.ui.client.widget.table.TableColumn;
|
28 |
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
|
- |
|
29 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
29 |
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
|
Line 30... |
Line 30... |
30 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
30 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
Line 31... |
Line 31... |
31 |
|
31 |
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
public PublicationListeVue() {
|
39 |
public PublicationListeVue() {
|
Line 40... |
Line 40... |
40 |
coelMediateur = Registry.get(RegistreId.MEDIATEUR);
|
40 |
coelMediateur = Registry.get(RegistreId.MEDIATEUR);
|
41 |
|
41 |
|
42 |
ToolBar toolBar = new ToolBar();
|
42 |
ToolBar toolBar = new ToolBar();
|
43 |
TextToolItem ajouter = new TextToolItem("Ajouter");
|
43 |
Button ajouter = new Button("Ajouter");
|
44 |
ajouter.setIconStyle(ComposantClass.ICONE_AJOUTER);
|
44 |
ajouter.setIconStyle(ComposantClass.ICONE_AJOUTER);
|
45 |
ajouter.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
45 |
ajouter.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
46 |
public void componentSelected(ComponentEvent ce) {
|
46 |
public void componentSelected(ButtonEvent be) {
|
47 |
coelMediateur.clicAjouterPublication();
|
47 |
coelMediateur.clicAjouterPublication();
|
48 |
}
|
48 |
}
|
Line 49... |
Line 49... |
49 |
});
|
49 |
});
|
50 |
toolBar.add(ajouter);
|
50 |
toolBar.add(ajouter);
|
51 |
|
51 |
|
52 |
TextToolItem modifier = new TextToolItem("Modifier");
|
52 |
Button modifier = new Button("Modifier");
|
53 |
modifier.setIconStyle(ComposantClass.ICONE_MODIFIER);
|
53 |
modifier.setIconStyle(ComposantClass.ICONE_MODIFIER);
|
54 |
toolBar.add(modifier);
|
54 |
toolBar.add(modifier);
|
55 |
modifier.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
55 |
modifier.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
56 |
public void componentSelected(ComponentEvent ce) {
|
56 |
public void componentSelected(ButtonEvent be) {
|
Line 57... |
Line 57... |
57 |
coelMediateur.clicModifierPublication(binder.getSelection());
|
57 |
coelMediateur.clicModifierPublication(binder.getSelection());
|
58 |
}
|
58 |
}
|
59 |
});
|
59 |
});
|
60 |
|
60 |
|
61 |
TextToolItem supprimer = new TextToolItem("Supprimer");
|
61 |
Button supprimer = new Button("Supprimer");
|
62 |
supprimer.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
|
62 |
supprimer.setIconStyle(ComposantClass.ICONE_SUPPRIMER);
|
63 |
toolBar.add(supprimer);
|
63 |
toolBar.add(supprimer);
|
64 |
supprimer.addSelectionListener(new SelectionListener<ComponentEvent>() {
|
64 |
supprimer.addSelectionListener(new SelectionListener<ButtonEvent>() {
|
Line 65... |
Line 65... |
65 |
public void componentSelected(ComponentEvent ce) {
|
65 |
public void componentSelected(ButtonEvent be) {
|