1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues;
|
2 |
|
2 |
|
3 |
import java.util.ArrayList;
|
3 |
import java.util.ArrayList;
|
4 |
import java.util.Iterator;
|
4 |
import java.util.Iterator;
|
5 |
import java.util.List;
|
5 |
import java.util.List;
|
6 |
|
6 |
|
7 |
import org.tela_botanica.client.Modele;
|
7 |
import org.tela_botanica.client.Modele;
|
8 |
import org.tela_botanica.client.RegistreId;
|
8 |
import org.tela_botanica.client.RegistreId;
|
9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
9 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
10 |
import org.tela_botanica.client.modeles.Configuration;
|
10 |
import org.tela_botanica.client.modeles.Configuration;
|
11 |
import org.tela_botanica.client.modeles.InterneValeur;
|
11 |
import org.tela_botanica.client.modeles.InterneValeur;
|
12 |
import org.tela_botanica.client.modeles.InterneValeurListe;
|
12 |
import org.tela_botanica.client.modeles.InterneValeurListe;
|
13 |
import org.tela_botanica.client.modeles.Personne;
|
13 |
import org.tela_botanica.client.modeles.Personne;
|
14 |
import org.tela_botanica.client.modeles.Valeur;
|
14 |
import org.tela_botanica.client.modeles.Valeur;
|
15 |
import org.tela_botanica.client.modeles.ValeurListe;
|
15 |
import org.tela_botanica.client.modeles.ValeurListe;
|
- |
|
16 |
|
16 |
|
17 |
import com.extjs.gxt.ui.client.Events;
|
17 |
import com.extjs.gxt.ui.client.Registry;
|
18 |
import com.extjs.gxt.ui.client.Registry;
|
18 |
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
|
19 |
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
|
19 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
20 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
- |
|
21 |
import com.extjs.gxt.ui.client.data.ChangeListener;
|
- |
|
22 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
- |
|
23 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
- |
|
24 |
import com.extjs.gxt.ui.client.event.Listener;
|
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.event.ToolBarEvent;
|
28 |
import com.extjs.gxt.ui.client.event.ToolBarEvent;
|
24 |
import com.extjs.gxt.ui.client.store.ListStore;
|
29 |
import com.extjs.gxt.ui.client.store.ListStore;
|
- |
|
30 |
import com.extjs.gxt.ui.client.widget.Component;
|
25 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
31 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
26 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
32 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
27 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
33 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
28 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
34 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
29 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
35 |
import com.extjs.gxt.ui.client.widget.button.Button;
|
30 |
import com.extjs.gxt.ui.client.widget.form.CheckBox;
|
36 |
import com.extjs.gxt.ui.client.widget.form.CheckBox;
|
31 |
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
|
37 |
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
|
32 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
38 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
33 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
39 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
34 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
40 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
35 |
import com.extjs.gxt.ui.client.widget.form.FormPanel;
|
41 |
import com.extjs.gxt.ui.client.widget.form.FormPanel;
|
36 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
42 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
37 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
43 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
38 |
import com.extjs.gxt.ui.client.widget.form.Radio;
|
44 |
import com.extjs.gxt.ui.client.widget.form.Radio;
|
39 |
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
|
45 |
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
|
40 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
46 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
41 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
47 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
42 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
48 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
43 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
49 |
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
|
44 |
import com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel;
|
50 |
import com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel;
|
45 |
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
|
51 |
import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig;
|
46 |
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
|
52 |
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
|
47 |
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
|
53 |
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
|
48 |
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
|
54 |
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
|
49 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
55 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
50 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
56 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
51 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
57 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
52 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
58 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
53 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
59 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
54 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
60 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
55 |
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
|
61 |
import com.extjs.gxt.ui.client.widget.tips.ToolTipConfig;
|
56 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
62 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
57 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
63 |
import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
|
58 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
64 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
59 |
import com.google.gwt.core.client.GWT;
|
65 |
import com.google.gwt.core.client.GWT;
|
60 |
import com.google.gwt.i18n.client.DateTimeFormat;
|
66 |
import com.google.gwt.i18n.client.DateTimeFormat;
|
61 |
import com.google.gwt.i18n.client.NumberFormat;
|
67 |
import com.google.gwt.i18n.client.NumberFormat;
|
- |
|
68 |
import com.google.gwt.user.client.ui.RadioButton;
|
62 |
|
69 |
|
63 |
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
|
70 |
public class FormStructureVue extends LayoutContainer implements Rafraichissable {
|
64 |
|
71 |
|
65 |
private Modele coelModele = null ;
|
72 |
private Modele coelModele = null ;
|
66 |
private ListStore<Valeur> magazinLstpr = null;
|
73 |
private ListStore<Valeur> magazinLstpr = null;
|
67 |
private ComboBox<Valeur> comboLstpr = null;
|
74 |
private ComboBox<Valeur> comboLstpr = null;
|
68 |
private ListStore<Valeur> magazinLstpu = null;
|
75 |
private ListStore<Valeur> magazinLstpu = null;
|
69 |
private ComboBox<Valeur> comboLstpu = null;
|
76 |
private ComboBox<Valeur> comboLstpu = null;
|
70 |
private ListStore<Valeur> magazinLiStatut = null;
|
77 |
private ListStore<Valeur> magazinLiStatut = null;
|
71 |
private ComboBox<Valeur> comboLiStatut = null;
|
78 |
private ComboBox<Valeur> comboLiStatut = null;
|
72 |
private ListStore<Valeur> magazinLiFonction = null;
|
79 |
private ListStore<Valeur> magazinLiFonction = null;
|
73 |
private ComboBox<Valeur> comboLiFonction = null;
|
80 |
private ComboBox<Valeur> comboLiFonction = null;
|
74 |
private ComboBox<InterneValeur> comboAcronyme = null;
|
81 |
private ComboBox<InterneValeur> comboAcronyme = null;
|
75 |
private TextField<String> ihChp = null;
|
82 |
private TextField<String> ihChp = null;
|
76 |
private TextField<String> mnhnChp = null;
|
83 |
private TextField<String> mnhnChp = null;
|
77 |
private ComboBox<InterneValeur> comboTypeStructure = null;
|
84 |
private ComboBox<InterneValeur> comboTypeStructure = null;
|
78 |
private TabItem personnelOnglet = null;
|
85 |
private TabItem personnelOnglet = null;
|
79 |
private EditorGrid<Personne> grillePersonnel = null;
|
86 |
private EditorGrid<Personne> grillePersonnel = null;
|
80 |
private ListStore<Personne> personnelGrilleMagazin = null;
|
87 |
private ListStore<Personne> personnelGrilleMagazin = null;
|
81 |
private LabelField nbreTotalPersonnelChp = null;
|
88 |
private LabelField nbreTotalPersonnelChp = null;
|
82 |
private TabItem conservationOnglet = null;
|
89 |
private TabItem conservationOnglet = null;
|
83 |
private CheckBoxGroup trukLocalStockageCacGrpChp = null;
|
90 |
private CheckBoxGroup trukLocalStockageCacGrpChp = null;
|
84 |
private ContentPanel trukLocalStockageCp = null;
|
91 |
private ContentPanel trukLocalStockageCp = null;
|
85 |
private CheckBoxGroup trukMeubleStockageCacGrpChp = null;
|
92 |
private CheckBoxGroup trukMeubleStockageCacGrpChp = null;
|
86 |
private ContentPanel trukMeubleStockageCp = null;
|
93 |
private ContentPanel trukMeubleStockageCp = null;
|
87 |
private CheckBoxGroup trukParametreStockageCacGrpChp = null;
|
94 |
private CheckBoxGroup trukParametreStockageCacGrpChp = null;
|
88 |
private ContentPanel trukParametreStockageCp = null;
|
95 |
private ContentPanel trukParametreStockageCp = null;
|
89 |
private ContentPanel trukCollectionAutreCp = null;
|
96 |
private ContentPanel collectionAutreTrukCp = null;
|
90 |
private CheckBoxGroup trukCollectionAutreCacGrpChp = null;
|
97 |
private CheckBoxGroup collectionAutreTrukCacGrpChp = null;
|
91 |
private CheckBoxGroup trukOpRestauCacGrpChp = null;
|
98 |
private CheckBoxGroup trukOpRestauCacGrpChp = null;
|
92 |
private ContentPanel trukOpRestauCp = null;
|
99 |
private ContentPanel opRestauTrukCp = null;
|
93 |
private ContentPanel ceMaterielConservationCp = null;
|
100 |
private ContentPanel ceMaterielConservationCp = null;
|
94 |
private CheckBoxGroup ceMaterielConservationCacGrpChp = null;
|
101 |
private CheckBoxGroup ceMaterielConservationCacGrpChp = null;
|
95 |
private CheckBoxGroup trukAutreMaterielCacGrpChp = null;
|
102 |
private CheckBoxGroup trukAutreMaterielCacGrpChp = null;
|
96 |
private ContentPanel trukAutreMaterielCp = null;
|
103 |
private ContentPanel trukAutreMaterielCp = null;
|
97 |
private ContentPanel trukTraitementCp = null;
|
104 |
private ContentPanel traitementTrukCp = null;
|
98 |
private CheckBoxGroup trukTraitementCacGrpChp = null;
|
105 |
private CheckBoxGroup traitementTrukCacGrpChp = null;
|
99 |
private ContentPanel trukPoisonTraitementCp;
|
106 |
private ContentPanel trukPoisonTraitementCp = null;
|
100 |
private ContentPanel trukInsecteTraitementCp;
|
107 |
private ContentPanel insecteTraitementTrukCp = null;
|
101 |
private CheckBoxGroup trukInsecteTraitementCacGrpChp;
|
108 |
private CheckBoxGroup insecteTraitementTrukCacGrpChp = null;
|
102 |
private CheckBoxGroup trukPoisonTraitementCacGrpChp;
|
109 |
private CheckBoxGroup trukPoisonTraitementCacGrpChp = null;
|
- |
|
110 |
private TabItem valorisationOnglet = null;
|
- |
|
111 |
private ContentPanel actionTrukCp;
|
- |
|
112 |
private CheckBoxGroup trukActionCacGrpChp;
|
- |
|
113 |
private ContentPanel autreCollectionTrukCp;
|
- |
|
114 |
private CheckBoxGroup trukAutreCollectionCacGrpChp;
|
- |
|
115 |
private ContentPanel provenanceRechercheTrukCp;
|
- |
|
116 |
private CheckBoxGroup trukProvenanceRechercheCacGrpChp;
|
- |
|
117 |
private CheckBoxGroup trukTypeRechercheCacGrpChp;
|
- |
|
118 |
private ContentPanel TypeRechercheTrukCp;
|
- |
|
119 |
private TextField<String> futureActionChp;
|
- |
|
120 |
private TextField<String> sansMotifAccesChp;
|
- |
|
121 |
private TextField<String> avecMotifAccesChp;
|
- |
|
122 |
private TextField<String> formationChp;
|
103 |
|
123 |
|
104 |
public FormStructureVue() {
|
124 |
public FormStructureVue() {
|
105 |
//+-----------------------------------------------------------------------------------------------------------+
|
125 |
//+-----------------------------------------------------------------------------------------------------------+
|
106 |
// Initialisation de variables
|
126 |
// Initialisation de variables
|
107 |
setLayout(new FitLayout());
|
127 |
setLayout(new FitLayout());
|
108 |
coelModele = Registry.get(RegistreId.MODELE);
|
128 |
coelModele = Registry.get(RegistreId.MODELE);
|
109 |
|
129 |
|
110 |
//+-----------------------------------------------------------------------------------------------------------+
|
130 |
//+-----------------------------------------------------------------------------------------------------------+
|
111 |
// Création du panneau du FORMULAIRE GÉNÉRAL
|
131 |
// Création du panneau du FORMULAIRE GÉNÉRAL
|
112 |
FormPanel panel = new FormPanel();
|
132 |
FormPanel panel = new FormPanel();
|
113 |
panel.setFrame(true);
|
133 |
panel.setFrame(true);
|
114 |
panel.setIconStyle("icone-form-ajouter");
|
134 |
panel.setIconStyle("icone-form-ajouter");
|
115 |
panel.setCollapsible(false);
|
135 |
panel.setCollapsible(false);
|
116 |
panel.setHeading("Ajout d'une institution");
|
136 |
panel.setHeading("Ajout d'une institution");
|
117 |
panel.setButtonAlign(HorizontalAlignment.CENTER);
|
137 |
panel.setButtonAlign(HorizontalAlignment.CENTER);
|
118 |
panel.setLayout(new FlowLayout());
|
138 |
panel.setLayout(new FlowLayout());
|
119 |
|
139 |
|
120 |
//+-----------------------------------------------------------------------------------------------------------+
|
140 |
//+-----------------------------------------------------------------------------------------------------------+
|
121 |
// Création des onglets
|
141 |
// Création des onglets
|
122 |
TabPanel onglets = new TabPanel();
|
142 |
TabPanel onglets = new TabPanel();
|
123 |
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
|
143 |
// NOTE : pour faire apparaître les scrollBar il faut définir la hauteur du panneau d'onglets à 100% (autoHeight ne semble pas fonctionner)
|
124 |
onglets.setHeight("100%");
|
144 |
onglets.setHeight("100%");
|
125 |
|
145 |
|
126 |
//+-----------------------------------------------------------------------------------------------------------+
|
146 |
//+-----------------------------------------------------------------------------------------------------------+
|
127 |
// Onlget formulaire IDENTIFICATION
|
147 |
// Onlget formulaire IDENTIFICATION
|
128 |
onglets.add(creerOngletIdentification());
|
148 |
onglets.add(creerOngletIdentification());
|
129 |
|
149 |
|
130 |
//+-----------------------------------------------------------------------------------------------------------+
|
150 |
//+-----------------------------------------------------------------------------------------------------------+
|
131 |
// Onlget formulaire PERSONNEL
|
151 |
// Onlget formulaire PERSONNEL
|
132 |
onglets.add(creerOngletPersonnel());
|
152 |
onglets.add(creerOngletPersonnel());
|
133 |
|
153 |
|
134 |
//+-----------------------------------------------------------------------------------------------------------+
|
154 |
//+-----------------------------------------------------------------------------------------------------------+
|
135 |
// Onlget formulaire CONSERVATION
|
155 |
// Onlget formulaire CONSERVATION
|
136 |
onglets.add(creerOngletConservation());
|
156 |
onglets.add(creerOngletConservation());
|
137 |
onglets.setSelection(conservationOnglet);
|
- |
|
138 |
|
157 |
|
139 |
//+-----------------------------------------------------------------------------------------------------------+
|
158 |
//+-----------------------------------------------------------------------------------------------------------+
|
140 |
// Onlget formulaire VALORISATION
|
159 |
// Onlget formulaire VALORISATION
|
141 |
TabItem valorisationOnglet = new TabItem();
|
- |
|
142 |
valorisationOnglet.setText("Valorisation");
|
160 |
onglets.add(creerOngletValorisation());
|
143 |
valorisationOnglet.setLayout(new FormLayout());
|
- |
|
144 |
onglets.add(valorisationOnglet);
|
161 |
onglets.setSelection(valorisationOnglet);
|
145 |
|
162 |
|
146 |
//+-----------------------------------------------------------------------------------------------------------+
|
163 |
//+-----------------------------------------------------------------------------------------------------------+
|
147 |
// Gestion du FORMULAIRE GÉNÉRAL
|
164 |
// Gestion du FORMULAIRE GÉNÉRAL
|
148 |
|
165 |
|
149 |
// Ajout des onglets
|
166 |
// Ajout des onglets
|
150 |
panel.add(onglets);
|
167 |
panel.add(onglets);
|
151 |
|
168 |
|
152 |
// Ajout des boutons au panneau formulaire
|
169 |
// Ajout des boutons au panneau formulaire
|
153 |
Button annulerBtn = new Button("Annuler");
|
170 |
Button annulerBtn = new Button("Annuler");
|
154 |
panel.addButton(annulerBtn);
|
171 |
panel.addButton(annulerBtn);
|
155 |
Button validerBtn = new Button("Valider");
|
172 |
Button validerBtn = new Button("Valider");
|
156 |
panel.addButton(validerBtn);
|
173 |
panel.addButton(validerBtn);
|
157 |
|
174 |
|
158 |
// Ajout du panneau Formulaire à la disposition générale
|
175 |
// Ajout du panneau Formulaire à la disposition générale
|
159 |
add(panel);
|
176 |
add(panel);
|
160 |
}
|
177 |
}
|
- |
|
178 |
|
- |
|
179 |
private TabItem creerOngletValorisation() {
|
- |
|
180 |
valorisationOnglet = new TabItem();
|
- |
|
181 |
valorisationOnglet.setText("Valorisation");
|
- |
|
182 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
183 |
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
- |
|
184 |
|
- |
|
185 |
RadioGroup actionMarkRGrpChp = new RadioGroup("action_mark_grp");
|
- |
|
186 |
actionMarkRGrpChp.setFieldLabel("Avez-vous réalisé des actions de valorisation de vos collections botaniques ou avez-vous été sollicités pour la valorisation de ces collections ?");
|
- |
|
187 |
creerChoixUniqueBr(actionMarkRGrpChp, "action_mark_grp");
|
- |
|
188 |
valorisationOnglet.add(actionMarkRGrpChp);
|
- |
|
189 |
|
- |
|
190 |
actionTrukCp = creerChoixMultipleCp("actionValorisation");
|
- |
|
191 |
actionTrukCp.hide();
|
- |
|
192 |
valorisationOnglet.add(actionTrukCp);
|
- |
|
193 |
|
- |
|
194 |
TextField<String> publicationChp = new TextField<String>();
|
- |
|
195 |
publicationChp.setFieldLabel("Quelques titres des ouvrages, articles scientifiques, ...");
|
- |
|
196 |
valorisationOnglet.add(publicationChp);
|
- |
|
197 |
|
- |
|
198 |
autreCollectionTrukCp = creerChoixMultipleCp("autreCollection");
|
- |
|
199 |
valorisationOnglet.add(autreCollectionTrukCp);
|
- |
|
200 |
|
- |
|
201 |
RadioGroup futureActionMarkRGrpChp = new RadioGroup("future_action_mark_grp");
|
- |
|
202 |
futureActionMarkRGrpChp.setFieldLabel("Envisagez vous des actions de valorisation dans le cadre de votre politique culturelle ?");
|
- |
|
203 |
creerChoixUniqueBr(futureActionMarkRGrpChp, "future_action_mark_grp");
|
- |
|
204 |
valorisationOnglet.add(futureActionMarkRGrpChp);
|
- |
|
205 |
|
- |
|
206 |
futureActionChp = new TextField<String>();
|
- |
|
207 |
futureActionChp.setFieldLabel("Si oui, lesquelles ?");
|
- |
|
208 |
futureActionChp.hide();
|
- |
|
209 |
valorisationOnglet.add(futureActionChp);
|
- |
|
210 |
|
- |
|
211 |
RadioGroup rechercheMarkRGrpChp = new RadioGroup("recherche_mark_grp");
|
- |
|
212 |
rechercheMarkRGrpChp.setFieldLabel("Vos collections botaniques sont-elles utilisées pour des recherches scientifiques ?");
|
- |
|
213 |
creerChoixUniqueBr(rechercheMarkRGrpChp, "recherche_mark_grp");
|
- |
|
214 |
valorisationOnglet.add(rechercheMarkRGrpChp);
|
- |
|
215 |
|
- |
|
216 |
provenanceRechercheTrukCp = creerChoixMultipleCp("continentEtFr");
|
- |
|
217 |
provenanceRechercheTrukCp.hide();
|
- |
|
218 |
valorisationOnglet.add(provenanceRechercheTrukCp);
|
- |
|
219 |
|
- |
|
220 |
TypeRechercheTrukCp = creerChoixMultipleCp("typeRecherche");
|
- |
|
221 |
TypeRechercheTrukCp.hide();
|
- |
|
222 |
valorisationOnglet.add(TypeRechercheTrukCp);
|
- |
|
223 |
|
- |
|
224 |
RadioGroup sansMotifAccesMarkRGrpChp = new RadioGroup("sans_motif_acces_mark_grp");
|
- |
|
225 |
sansMotifAccesMarkRGrpChp.setFieldLabel("Peut-on consulter vos collections botaniques sans motif de recherches scientifiques ?");
|
- |
|
226 |
creerChoixUniqueBr(sansMotifAccesMarkRGrpChp, "sans_motif_acces_mark_grp");
|
- |
|
227 |
valorisationOnglet.add(sansMotifAccesMarkRGrpChp);
|
- |
|
228 |
|
- |
|
229 |
sansMotifAccesChp = new TextField<String>();
|
- |
|
230 |
sansMotifAccesChp.hide();
|
- |
|
231 |
sansMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les consulter ?");
|
- |
|
232 |
valorisationOnglet.add(sansMotifAccesChp);
|
- |
|
233 |
|
- |
|
234 |
RadioGroup avecMotifAccesMarkRGrpChp = new RadioGroup("avec_motif_acces_mark_grp");
|
- |
|
235 |
avecMotifAccesMarkRGrpChp.setFieldLabel("Peut-on visiter vos collections botaniques avec des objectifs de recherches scientifiques ?");
|
- |
|
236 |
creerChoixUniqueBr(avecMotifAccesMarkRGrpChp, "avec_motif_acces_mark_grp");
|
- |
|
237 |
valorisationOnglet.add(avecMotifAccesMarkRGrpChp);
|
- |
|
238 |
|
- |
|
239 |
avecMotifAccesChp = new TextField<String>();
|
- |
|
240 |
avecMotifAccesChp.hide();
|
- |
|
241 |
avecMotifAccesChp.setFieldLabel("Si oui, quelles démarches doit-on faire pour les visiter ?");
|
- |
|
242 |
valorisationOnglet.add(avecMotifAccesChp);
|
- |
|
243 |
|
- |
|
244 |
return valorisationOnglet;
|
- |
|
245 |
}
|
161 |
|
246 |
|
162 |
private TabItem creerOngletConservation() {
|
247 |
private TabItem creerOngletConservation() {
|
163 |
conservationOnglet = new TabItem();
|
248 |
conservationOnglet = new TabItem();
|
164 |
conservationOnglet.setText("Conservation");
|
249 |
conservationOnglet.setText("Conservation");
|
165 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
250 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
166 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
251 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
167 |
|
252 |
|
168 |
RadioGroup markFormationRGrpChp = new RadioGroup("mark_formation_grp");
|
253 |
RadioGroup markFormationRGrpChp = new RadioGroup("formation_mark_grp");
|
169 |
markFormationRGrpChp.setFieldLabel("Le personnel s'occupant des collections a-t-il suivi des formations en conservations ?");
|
254 |
markFormationRGrpChp.setFieldLabel("Le personnel s'occupant des collections a-t-il suivi des formations en conservations ?");
|
170 |
creerChoixUniqueBr(markFormationRGrpChp, "mark_formation");
|
255 |
creerChoixUniqueBr(markFormationRGrpChp, "formation_mark_grp");
|
171 |
conservationOnglet.add(markFormationRGrpChp);
|
256 |
conservationOnglet.add(markFormationRGrpChp);
|
- |
|
257 |
|
172 |
|
258 |
formationChp = new TextField<String>();
|
173 |
TextField<String> formationChp = new TextField<String>();
|
259 |
formationChp.hide();
|
174 |
formationChp.setFieldLabel("Lesquelles ?");
|
260 |
formationChp.setFieldLabel("Si oui, lesquelles ?");
|
175 |
conservationOnglet.add(formationChp);
|
261 |
conservationOnglet.add(formationChp);
|
176 |
|
262 |
|
177 |
RadioGroup markInteretFormationRGrpChp = new RadioGroup("mark_interet_formation_grp");
|
263 |
RadioGroup markInteretFormationRGrpChp = new RadioGroup("mark_interet_formation_grp");
|
178 |
markInteretFormationRGrpChp.setFieldLabel("Seriez vous intéressé par une formation à la conservation et à la restauration d'herbier ?");
|
264 |
markInteretFormationRGrpChp.setFieldLabel("Seriez vous intéressé par une formation à la conservation et à la restauration d'herbier ?");
|
179 |
creerChoixUniqueBr(markInteretFormationRGrpChp, "mark_interet_formation_grp");
|
265 |
creerChoixUniqueBr(markInteretFormationRGrpChp, "mark_interet_formation_grp");
|
180 |
conservationOnglet.add(markInteretFormationRGrpChp);
|
266 |
conservationOnglet.add(markInteretFormationRGrpChp);
|
181 |
|
267 |
|
182 |
trukLocalStockageCp = creerChoixMultipleCp("localStockage");
|
268 |
trukLocalStockageCp = creerChoixMultipleCp("localStockage");
|
183 |
conservationOnglet.add(trukLocalStockageCp);
|
269 |
conservationOnglet.add(trukLocalStockageCp);
|
184 |
|
270 |
|
185 |
trukMeubleStockageCp = creerChoixMultipleCp("meubleStockage");
|
271 |
trukMeubleStockageCp = creerChoixMultipleCp("meubleStockage");
|
186 |
conservationOnglet.add(trukMeubleStockageCp);
|
272 |
conservationOnglet.add(trukMeubleStockageCp);
|
187 |
|
273 |
|
188 |
trukParametreStockageCp = creerChoixMultipleCp("parametreStockage");
|
274 |
trukParametreStockageCp = creerChoixMultipleCp("parametreStockage");
|
189 |
conservationOnglet.add(trukParametreStockageCp);
|
275 |
conservationOnglet.add(trukParametreStockageCp);
|
190 |
|
276 |
|
191 |
RadioGroup markCollectionCommuneRGrpChp = new RadioGroup("mark_collection_commune_grp");
|
277 |
RadioGroup collectionCommuneMarkRGrpChp = new RadioGroup("collection_commune_mark_grp");
|
192 |
markCollectionCommuneRGrpChp.setFieldLabel("Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ?");
|
278 |
collectionCommuneMarkRGrpChp.setFieldLabel("Les collections botaniques sont-elles conservées avec d'autres collections dans les mêmes locaux (problème de conservation en commun) ?");
|
193 |
creerChoixUniqueBr(markCollectionCommuneRGrpChp, "mark_collection_commune");
|
279 |
creerChoixUniqueBr(collectionCommuneMarkRGrpChp, "collection_commune_mark");
|
194 |
conservationOnglet.add(markCollectionCommuneRGrpChp);
|
280 |
conservationOnglet.add(collectionCommuneMarkRGrpChp);
|
195 |
|
281 |
|
- |
|
282 |
collectionAutreTrukCp = creerChoixMultipleCp("autreCollection");
|
196 |
trukCollectionAutreCp = creerChoixMultipleCp("autreCollection");
|
283 |
collectionAutreTrukCp.hide();
|
197 |
conservationOnglet.add(trukCollectionAutreCp);
|
284 |
conservationOnglet.add(collectionAutreTrukCp);
|
198 |
|
285 |
|
199 |
RadioGroup markAccesControleRGrpChp = new RadioGroup("mark_acces_controle_grp");
|
286 |
RadioGroup markAccesControleRGrpChp = new RadioGroup("mark_acces_controle_grp");
|
200 |
markAccesControleRGrpChp.setFieldLabel("L'accès à vos collections botanique est-il contrôlé (ex. : manipulation réservées à des personnes compétentes) ?");
|
287 |
markAccesControleRGrpChp.setFieldLabel("L'accès à vos collections botanique est-il contrôlé (ex. : manipulation réservées à des personnes compétentes) ?");
|
201 |
creerChoixUniqueBr(markAccesControleRGrpChp, "mark_acces_controle");
|
288 |
creerChoixUniqueBr(markAccesControleRGrpChp, "mark_acces_controle");
|
202 |
conservationOnglet.add(markAccesControleRGrpChp);
|
289 |
conservationOnglet.add(markAccesControleRGrpChp);
|
203 |
|
290 |
|
204 |
RadioGroup markRestaurationRGrpChp = new RadioGroup("restauration_grp");
|
291 |
RadioGroup markRestaurationRGrpChp = new RadioGroup("restauration_mark_grp");
|
205 |
markRestaurationRGrpChp.setFieldLabel("Effectuez vous des opérations de restauration ou de remise en état de vos collections botaniques ?");
|
292 |
markRestaurationRGrpChp.setFieldLabel("Effectuez vous des opérations de restauration ou de remise en état de vos collections botaniques ?");
|
206 |
creerChoixUniqueBr(markRestaurationRGrpChp, "mark_restauration");
|
293 |
creerChoixUniqueBr(markRestaurationRGrpChp, "restauration_mark");
|
207 |
conservationOnglet.add(markRestaurationRGrpChp);
|
294 |
conservationOnglet.add(markRestaurationRGrpChp);
|
- |
|
295 |
|
208 |
|
296 |
opRestauTrukCp = creerChoixMultipleCp("opRestau");
|
209 |
trukOpRestauCp = creerChoixMultipleCp("opRestau");
|
297 |
opRestauTrukCp.hide();
|
210 |
conservationOnglet.add(trukOpRestauCp);
|
298 |
conservationOnglet.add(opRestauTrukCp);
|
211 |
|
299 |
|
212 |
ceMaterielConservationCp = creerChoixMultipleCp("onep");
|
300 |
ceMaterielConservationCp = creerChoixMultipleCp("onep");
|
213 |
conservationOnglet.add(ceMaterielConservationCp);
|
301 |
conservationOnglet.add(ceMaterielConservationCp);
|
214 |
|
302 |
|
215 |
trukAutreMaterielCp = creerChoixMultipleCp("autreMateriel");
|
303 |
trukAutreMaterielCp = creerChoixMultipleCp("autreMateriel");
|
216 |
conservationOnglet.add(trukAutreMaterielCp);
|
304 |
conservationOnglet.add(trukAutreMaterielCp);
|
217 |
|
305 |
|
218 |
RadioGroup markTraitementRGrpChp = new RadioGroup("traitement_grp");
|
306 |
RadioGroup markTraitementRGrpChp = new RadioGroup("traitement_grp");
|
219 |
markTraitementRGrpChp.setFieldLabel("Réalisez vous actuellement des traitements globaux contre les insectes ?");
|
307 |
markTraitementRGrpChp.setFieldLabel("Réalisez vous actuellement des traitements globaux contre les insectes ?");
|
220 |
creerChoixUniqueBr(markTraitementRGrpChp, "mark_traitement");
|
308 |
creerChoixUniqueBr(markTraitementRGrpChp, "mark_traitement");
|
221 |
conservationOnglet.add(markTraitementRGrpChp);
|
309 |
conservationOnglet.add(markTraitementRGrpChp);
|
222 |
|
310 |
|
223 |
trukTraitementCp = creerChoixMultipleCp("insecteTraitement");
|
311 |
traitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
224 |
conservationOnglet.add(trukTraitementCp);
|
312 |
conservationOnglet.add(traitementTrukCp);
|
225 |
|
313 |
|
226 |
RadioGroup markCollectionAcquisitionRGrpChp = new RadioGroup("collection_acquisition_grp");
|
314 |
RadioGroup markCollectionAcquisitionRGrpChp = new RadioGroup("collection_acquisition_grp");
|
227 |
markCollectionAcquisitionRGrpChp.setFieldLabel("Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ?");
|
315 |
markCollectionAcquisitionRGrpChp.setFieldLabel("Actuellement, vos collections botaniques s'accroissent-elles de nouvelles acquisitions ?");
|
228 |
creerChoixUniqueBr(markCollectionAcquisitionRGrpChp, "mark_collection_acquisition");
|
316 |
creerChoixUniqueBr(markCollectionAcquisitionRGrpChp, "mark_collection_acquisition");
|
229 |
conservationOnglet.add(markCollectionAcquisitionRGrpChp);
|
317 |
conservationOnglet.add(markCollectionAcquisitionRGrpChp);
|
230 |
|
318 |
|
231 |
RadioGroup markEchantillonAcquisitionRGrpChp = new RadioGroup("echantillon_acquisition_grp");
|
319 |
RadioGroup markEchantillonAcquisitionRGrpChp = new RadioGroup("echantillon_acquisition_grp");
|
232 |
markEchantillonAcquisitionRGrpChp.setFieldLabel("Actuellement, mettez vous en herbier de nouveaux échantillons ?");
|
320 |
markEchantillonAcquisitionRGrpChp.setFieldLabel("Actuellement, mettez vous en herbier de nouveaux échantillons ?");
|
233 |
creerChoixUniqueBr(markEchantillonAcquisitionRGrpChp, "mark_echantillon_acquisition");
|
321 |
creerChoixUniqueBr(markEchantillonAcquisitionRGrpChp, "mark_echantillon_acquisition");
|
234 |
conservationOnglet.add(markEchantillonAcquisitionRGrpChp);
|
322 |
conservationOnglet.add(markEchantillonAcquisitionRGrpChp);
|
235 |
|
323 |
|
236 |
RadioGroup markTraitementAcquisitionRGrpChp = new RadioGroup("traitement_acquisition_grp");
|
324 |
RadioGroup markTraitementAcquisitionRGrpChp = new RadioGroup("traitement_acquisition_grp");
|
237 |
markTraitementAcquisitionRGrpChp.setFieldLabel("Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ?");
|
325 |
markTraitementAcquisitionRGrpChp.setFieldLabel("Si oui, faites-vous un traitement contre les insectes avant l'intégration dans vos collections ?");
|
238 |
creerChoixUniqueBr(markTraitementAcquisitionRGrpChp, "mark_traitement_acquisition");
|
326 |
creerChoixUniqueBr(markTraitementAcquisitionRGrpChp, "mark_traitement_acquisition");
|
239 |
conservationOnglet.add(markTraitementAcquisitionRGrpChp);
|
327 |
conservationOnglet.add(markTraitementAcquisitionRGrpChp);
|
240 |
|
328 |
|
241 |
LabelField question = new LabelField();
|
329 |
LabelField question = new LabelField();
|
242 |
question.setFieldLabel("Si oui, lesquels ?");
|
330 |
question.setFieldLabel("Si oui, lesquels ?");
|
243 |
conservationOnglet.add(question);
|
331 |
conservationOnglet.add(question);
|
244 |
|
332 |
|
245 |
trukPoisonTraitementCp = creerChoixMultipleCp("poisonTraitement");
|
333 |
trukPoisonTraitementCp = creerChoixMultipleCp("poisonTraitement");
|
246 |
conservationOnglet.add(trukPoisonTraitementCp);
|
334 |
conservationOnglet.add(trukPoisonTraitementCp);
|
247 |
|
335 |
|
248 |
trukInsecteTraitementCp = creerChoixMultipleCp("insecteTraitement");
|
336 |
insecteTraitementTrukCp = creerChoixMultipleCp("insecteTraitement");
|
249 |
conservationOnglet.add(trukInsecteTraitementCp);
|
337 |
conservationOnglet.add(insecteTraitementTrukCp);
|
250 |
|
338 |
|
251 |
return conservationOnglet;
|
339 |
return conservationOnglet;
|
252 |
}
|
340 |
}
|
253 |
|
- |
|
254 |
|
341 |
|
255 |
private TabItem creerOngletPersonnel() {
|
342 |
private TabItem creerOngletPersonnel() {
|
256 |
personnelOnglet = new TabItem();
|
343 |
personnelOnglet = new TabItem();
|
257 |
personnelOnglet.setText("Personnel");
|
344 |
personnelOnglet.setText("Personnel");
|
258 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
345 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
259 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, null));
|
346 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, null));
|
260 |
|
347 |
|
261 |
NumberField nbreTotalPersonneStructureChp = new NumberField();
|
348 |
NumberField nbreTotalPersonneStructureChp = new NumberField();
|
262 |
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
|
349 |
nbreTotalPersonneStructureChp.setFieldLabel("Nombre de personne travaillant dans l'institution");
|
263 |
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
|
350 |
nbreTotalPersonneStructureChp.setFormat(NumberFormat.getFormat("#"));
|
264 |
nbreTotalPersonneStructureChp.setToolTip("Ce champ doit contenir un nombre");
|
351 |
nbreTotalPersonneStructureChp.setToolTip("Ce champ doit contenir un nombre");
|
265 |
personnelOnglet.add(nbreTotalPersonneStructureChp);
|
352 |
personnelOnglet.add(nbreTotalPersonneStructureChp);
|
266 |
|
353 |
|
267 |
personnelOnglet.add(this.creerGrillePersonnel());
|
354 |
personnelOnglet.add(this.creerGrillePersonnel());
|
268 |
|
355 |
|
269 |
nbreTotalPersonnelChp = new LabelField();
|
356 |
nbreTotalPersonnelChp = new LabelField();
|
270 |
nbreTotalPersonnelChp.setFieldLabel("Nombre de personne travaillant sur les collections");
|
357 |
nbreTotalPersonnelChp.setFieldLabel("Nombre de personne travaillant sur les collections");
|
271 |
nbreTotalPersonnelChp.setLabelSeparator(":");
|
358 |
nbreTotalPersonnelChp.setLabelSeparator(":");
|
272 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
359 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
273 |
personnelOnglet.add(nbreTotalPersonnelChp);
|
360 |
personnelOnglet.add(nbreTotalPersonnelChp);
|
274 |
|
361 |
|
275 |
return personnelOnglet;
|
362 |
return personnelOnglet;
|
276 |
}
|
363 |
}
|
277 |
|
364 |
|
278 |
private ContentPanel creerGrillePersonnel() {
|
365 |
private ContentPanel creerGrillePersonnel() {
|
279 |
|
366 |
|
280 |
List<Personne> personnes = new ArrayList<Personne>();
|
367 |
List<Personne> personnes = new ArrayList<Personne>();
|
281 |
personnes.add(new Personne(Valeur.FONCTION_DIRECTEUR));
|
368 |
personnes.add(new Personne(Valeur.FONCTION_DIRECTEUR));
|
282 |
personnes.add(new Personne(Valeur.FONCTION_CONSERVATEUR));
|
369 |
personnes.add(new Personne(Valeur.FONCTION_CONSERVATEUR));
|
283 |
|
370 |
|
284 |
personnelGrilleMagazin = new ListStore<Personne>();
|
371 |
personnelGrilleMagazin = new ListStore<Personne>();
|
285 |
personnelGrilleMagazin.add(personnes);
|
372 |
personnelGrilleMagazin.add(personnes);
|
286 |
|
373 |
|
287 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
374 |
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
|
288 |
|
375 |
|
289 |
CheckBoxSelectionModel<Personne> sm = new CheckBoxSelectionModel<Personne>();
|
376 |
CheckBoxSelectionModel<Personne> sm = new CheckBoxSelectionModel<Personne>();
|
290 |
configs.add(sm.getColumn());
|
377 |
configs.add(sm.getColumn());
|
291 |
|
378 |
|
292 |
ColumnConfig column = new ColumnConfig("ce_truk_fonction", "Fonction", 100);
|
379 |
ColumnConfig column = new ColumnConfig("ce_truk_fonction", "Fonction", 100);
|
293 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
|
380 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("fonction"));
|
294 |
magazinLiFonction = new ListStore<Valeur>();
|
381 |
magazinLiFonction = new ListStore<Valeur>();
|
295 |
magazinLiFonction.add(new ArrayList<Valeur>());
|
382 |
magazinLiFonction.add(new ArrayList<Valeur>());
|
296 |
|
383 |
|
297 |
comboLiFonction = new ComboBox<Valeur>();
|
384 |
comboLiFonction = new ComboBox<Valeur>();
|
298 |
comboLiFonction.setTriggerAction(TriggerAction.ALL);
|
385 |
comboLiFonction.setTriggerAction(TriggerAction.ALL);
|
299 |
comboLiFonction.setEditable(true);
|
386 |
comboLiFonction.setEditable(true);
|
300 |
comboLiFonction.setDisplayField("nom");
|
387 |
comboLiFonction.setDisplayField("nom");
|
301 |
//comboLiStatut.setEmptyText("Sélectionez une fonction...");
|
388 |
//comboLiStatut.setEmptyText("Sélectionez une fonction...");
|
302 |
comboLiFonction.setStore(magazinLiFonction);
|
389 |
comboLiFonction.setStore(magazinLiFonction);
|
303 |
|
390 |
|
304 |
CellEditor fonctionEditor = new CellEditor(comboLiFonction) {
|
391 |
CellEditor fonctionEditor = new CellEditor(comboLiFonction) {
|
305 |
@Override
|
392 |
@Override
|
306 |
public Object preProcessValue(Object value) {
|
393 |
public Object preProcessValue(Object value) {
|
307 |
if (value == null) {
|
394 |
if (value == null) {
|
308 |
return value;
|
395 |
return value;
|
309 |
}
|
396 |
}
|
310 |
//GWT.log("pre : "+value.toString(), null);
|
397 |
//GWT.log("pre : "+value.toString(), null);
|
311 |
return comboLiFonction.getStore().findModel("nom", (String) value);
|
398 |
return comboLiFonction.getStore().findModel("nom", (String) value);
|
312 |
}
|
399 |
}
|
313 |
|
400 |
|
314 |
@Override
|
401 |
@Override
|
315 |
public Object postProcessValue(Object value) {
|
402 |
public Object postProcessValue(Object value) {
|
316 |
if (value == null) {
|
403 |
if (value == null) {
|
317 |
return value;
|
404 |
return value;
|
318 |
}
|
405 |
}
|
319 |
//GWT.log("post : "+value.toString(), null);
|
406 |
//GWT.log("post : "+value.toString(), null);
|
320 |
return ((Valeur) value).get("nom");
|
407 |
return ((Valeur) value).get("nom");
|
321 |
}
|
408 |
}
|
322 |
};
|
409 |
};
|
323 |
column.setEditor(fonctionEditor);
|
410 |
column.setEditor(fonctionEditor);
|
324 |
configs.add(column);
|
411 |
configs.add(column);
|
325 |
|
412 |
|
326 |
column = new ColumnConfig();
|
413 |
column = new ColumnConfig();
|
327 |
column.setId("prenom");
|
414 |
column.setId("prenom");
|
328 |
column.setHeader("Prénom");
|
415 |
column.setHeader("Prénom");
|
329 |
column.setWidth(100);
|
416 |
column.setWidth(100);
|
330 |
TextField<String> prenomChp = new TextField<String>();
|
417 |
TextField<String> prenomChp = new TextField<String>();
|
331 |
prenomChp.setAllowBlank(false);
|
418 |
prenomChp.setAllowBlank(false);
|
332 |
prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
419 |
prenomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
333 |
prenomChp.setAutoValidate(true);
|
420 |
prenomChp.setAutoValidate(true);
|
334 |
column.setEditor(new CellEditor(prenomChp));
|
421 |
column.setEditor(new CellEditor(prenomChp));
|
335 |
configs.add(column);
|
422 |
configs.add(column);
|
336 |
|
423 |
|
337 |
column = new ColumnConfig();
|
424 |
column = new ColumnConfig();
|
338 |
column.setId("nom");
|
425 |
column.setId("nom");
|
339 |
column.setHeader("Nom");
|
426 |
column.setHeader("Nom");
|
340 |
column.setWidth(100);
|
427 |
column.setWidth(100);
|
341 |
TextField<String> nomChp = new TextField<String>();
|
428 |
TextField<String> nomChp = new TextField<String>();
|
342 |
nomChp.setAllowBlank(false);
|
429 |
nomChp.setAllowBlank(false);
|
343 |
nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
430 |
nomChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
344 |
nomChp.setAutoValidate(true);
|
431 |
nomChp.setAutoValidate(true);
|
345 |
column.setEditor(new CellEditor(nomChp));
|
432 |
column.setEditor(new CellEditor(nomChp));
|
346 |
configs.add(column);
|
433 |
configs.add(column);
|
347 |
|
434 |
|
348 |
column = new ColumnConfig("tel", "Téléphone", 100);
|
435 |
column = new ColumnConfig("tel", "Téléphone", 100);
|
349 |
TextField<String> telChp = new TextField<String>();
|
436 |
TextField<String> telChp = new TextField<String>();
|
350 |
column.setEditor(new CellEditor(telChp));
|
437 |
column.setEditor(new CellEditor(telChp));
|
351 |
configs.add(column);
|
438 |
configs.add(column);
|
352 |
|
439 |
|
353 |
column = new ColumnConfig("fax", "Fax", 100);
|
440 |
column = new ColumnConfig("fax", "Fax", 100);
|
354 |
TextField<String> faxChp = new TextField<String>();
|
441 |
TextField<String> faxChp = new TextField<String>();
|
355 |
column.setEditor(new CellEditor(faxChp));
|
442 |
column.setEditor(new CellEditor(faxChp));
|
356 |
configs.add(column);
|
443 |
configs.add(column);
|
357 |
|
444 |
|
358 |
column = new ColumnConfig("courriel", "Courriel", 100);
|
445 |
column = new ColumnConfig("courriel", "Courriel", 100);
|
359 |
TextField<String> emailChp = new TextField<String>();
|
446 |
TextField<String> emailChp = new TextField<String>();
|
360 |
column.setEditor(new CellEditor(emailChp));
|
447 |
column.setEditor(new CellEditor(emailChp));
|
361 |
configs.add(column);
|
448 |
configs.add(column);
|
362 |
|
449 |
|
363 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
|
450 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("statut"));
|
364 |
magazinLiStatut = new ListStore<Valeur>();
|
451 |
magazinLiStatut = new ListStore<Valeur>();
|
365 |
magazinLiStatut.add(new ArrayList<Valeur>());
|
452 |
magazinLiStatut.add(new ArrayList<Valeur>());
|
366 |
|
453 |
|
367 |
comboLiStatut = new ComboBox<Valeur>();
|
454 |
comboLiStatut = new ComboBox<Valeur>();
|
368 |
comboLiStatut.setTriggerAction(TriggerAction.ALL);
|
455 |
comboLiStatut.setTriggerAction(TriggerAction.ALL);
|
369 |
comboLiStatut.setEditable(false);
|
456 |
comboLiStatut.setEditable(false);
|
370 |
comboLiStatut.setDisplayField("nom");
|
457 |
comboLiStatut.setDisplayField("nom");
|
371 |
comboLiStatut.setEmptyText("Sélectionez un statut...");
|
458 |
comboLiStatut.setEmptyText("Sélectionez un statut...");
|
372 |
comboLiStatut.setStore(magazinLiStatut);
|
459 |
comboLiStatut.setStore(magazinLiStatut);
|
373 |
|
460 |
|
374 |
CellEditor statutEditor = new CellEditor(comboLiStatut) {
|
461 |
CellEditor statutEditor = new CellEditor(comboLiStatut) {
|
375 |
@Override
|
462 |
@Override
|
376 |
public Object preProcessValue(Object value) {
|
463 |
public Object preProcessValue(Object value) {
|
377 |
if (value == null) {
|
464 |
if (value == null) {
|
378 |
return value;
|
465 |
return value;
|
379 |
}
|
466 |
}
|
380 |
//GWT.log("pre : "+value.toString(), null);
|
467 |
//GWT.log("pre : "+value.toString(), null);
|
381 |
return comboLiStatut.getStore().findModel("nom", (String) value);
|
468 |
return comboLiStatut.getStore().findModel("nom", (String) value);
|
382 |
}
|
469 |
}
|
383 |
|
470 |
|
384 |
@Override
|
471 |
@Override
|
385 |
public Object postProcessValue(Object value) {
|
472 |
public Object postProcessValue(Object value) {
|
386 |
if (value == null) {
|
473 |
if (value == null) {
|
387 |
return value;
|
474 |
return value;
|
388 |
}
|
475 |
}
|
389 |
//GWT.log("post : "+value.toString(), null);
|
476 |
//GWT.log("post : "+value.toString(), null);
|
390 |
return ((Valeur) value).get("nom");
|
477 |
return ((Valeur) value).get("nom");
|
391 |
}
|
478 |
}
|
392 |
};
|
479 |
};
|
393 |
column = new ColumnConfig("statut", "Statut", 100);
|
480 |
column = new ColumnConfig("statut", "Statut", 100);
|
394 |
column.setEditor(statutEditor);
|
481 |
column.setEditor(statutEditor);
|
395 |
configs.add(column);
|
482 |
configs.add(column);
|
396 |
|
483 |
|
397 |
column = new ColumnConfig("tps_w", "Temps travail", 100);
|
484 |
column = new ColumnConfig("tps_w", "Temps travail", 100);
|
398 |
column.setNumberFormat(NumberFormat.getFormat("##"));
|
485 |
column.setNumberFormat(NumberFormat.getFormat("##"));
|
399 |
NumberField tpsWChp = new NumberField();
|
486 |
NumberField tpsWChp = new NumberField();
|
400 |
tpsWChp.setFormat(NumberFormat.getFormat("##"));
|
487 |
tpsWChp.setFormat(NumberFormat.getFormat("##"));
|
401 |
tpsWChp.setToolTip("Ce champ doit contenir un nombre");
|
488 |
tpsWChp.setToolTip("Ce champ doit contenir un nombre");
|
402 |
column.setEditor(new CellEditor(tpsWChp));
|
489 |
column.setEditor(new CellEditor(tpsWChp));
|
403 |
configs.add(column);
|
490 |
configs.add(column);
|
404 |
|
491 |
|
405 |
column = new ColumnConfig("specialites", "Spécialités botaniques", 150);
|
492 |
column = new ColumnConfig("specialites", "Spécialités botaniques", 150);
|
406 |
TextField<String> speChp = new TextField<String>();
|
493 |
TextField<String> speChp = new TextField<String>();
|
407 |
column.setEditor(new CellEditor(speChp));
|
494 |
column.setEditor(new CellEditor(speChp));
|
408 |
configs.add(column);
|
495 |
configs.add(column);
|
409 |
|
496 |
|
410 |
CheckColumnConfig checkColumn = new CheckColumnConfig("mark_contact", "Contact ?", 60);
|
497 |
CheckColumnConfig checkColumn = new CheckColumnConfig("mark_contact", "Contact ?", 60);
|
411 |
configs.add(checkColumn);
|
498 |
configs.add(checkColumn);
|
412 |
|
499 |
|
413 |
ContentPanel cp = new ContentPanel();
|
500 |
ContentPanel cp = new ContentPanel();
|
414 |
cp.setHeading("Personnes travaillant sur les collections");
|
501 |
cp.setHeading("Personnes travaillant sur les collections");
|
415 |
cp.setIconStyle("icone-table");
|
502 |
cp.setIconStyle("icone-table");
|
416 |
cp.setScrollMode(Scroll.AUTO);
|
503 |
cp.setScrollMode(Scroll.AUTO);
|
417 |
cp.setLayout(new FitLayout());
|
504 |
cp.setLayout(new FitLayout());
|
418 |
cp.setSize(1100, 200);
|
505 |
cp.setSize(1100, 200);
|
419 |
cp.setFrame(true);
|
506 |
cp.setFrame(true);
|
420 |
|
507 |
|
421 |
ToolBar toolBar = new ToolBar();
|
508 |
ToolBar toolBar = new ToolBar();
|
422 |
|
509 |
|
423 |
TextToolItem ajouterPersonnelBtn = new TextToolItem("Ajouter", "icone-vcard-ajouter");
|
510 |
TextToolItem ajouterPersonnelBtn = new TextToolItem("Ajouter", "icone-vcard-ajouter");
|
424 |
ajouterPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
511 |
ajouterPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
425 |
@Override
|
512 |
@Override
|
426 |
public void componentSelected(ToolBarEvent ce) {
|
513 |
public void componentSelected(ToolBarEvent ce) {
|
427 |
Personne personne = new Personne();
|
514 |
Personne personne = new Personne();
|
428 |
grillePersonnel.stopEditing();
|
515 |
grillePersonnel.stopEditing();
|
429 |
personnelGrilleMagazin.insert(personne, 0);
|
516 |
personnelGrilleMagazin.insert(personne, 0);
|
430 |
grillePersonnel.startEditing(0, 0);
|
517 |
grillePersonnel.startEditing(0, 0);
|
431 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
518 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
432 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
519 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
433 |
// Activation du bouton supprimer si la grille contient un élément
|
520 |
// Activation du bouton supprimer si la grille contient un élément
|
434 |
if (grillePersonnel.getStore().getCount() > 0) {
|
521 |
if (grillePersonnel.getStore().getCount() > 0) {
|
435 |
ce.component.enable();
|
522 |
ce.component.enable();
|
436 |
}
|
523 |
}
|
437 |
}
|
524 |
}
|
438 |
});
|
525 |
});
|
439 |
toolBar.add(ajouterPersonnelBtn);
|
526 |
toolBar.add(ajouterPersonnelBtn);
|
440 |
toolBar.add(new SeparatorToolItem());
|
527 |
toolBar.add(new SeparatorToolItem());
|
441 |
TextToolItem supprimerPersonnelBtn = new TextToolItem("Supprimer", "icone-vcard-supprimer");
|
528 |
TextToolItem supprimerPersonnelBtn = new TextToolItem("Supprimer", "icone-vcard-supprimer");
|
442 |
supprimerPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
529 |
supprimerPersonnelBtn.addSelectionListener(new SelectionListener<ToolBarEvent>() {
|
443 |
@Override
|
530 |
@Override
|
444 |
public void componentSelected(ToolBarEvent ce) {
|
531 |
public void componentSelected(ToolBarEvent ce) {
|
445 |
grillePersonnel.getStore().remove(grillePersonnel.getStore().getAt(0));
|
532 |
grillePersonnel.getStore().remove(grillePersonnel.getStore().getAt(0));
|
446 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
533 |
// Mise à jour du nombre de personnel travaillant sur les collections
|
447 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
534 |
nbreTotalPersonnelChp.setValue(""+grillePersonnel.getStore().getCount());
|
448 |
// Désactivation du bouton supprimer si la grille contient plus d'élément
|
535 |
// Désactivation du bouton supprimer si la grille contient plus d'élément
|
449 |
if (grillePersonnel.getStore().getCount() == 0) {
|
536 |
if (grillePersonnel.getStore().getCount() == 0) {
|
450 |
ce.item.disable();
|
537 |
ce.item.disable();
|
451 |
}
|
538 |
}
|
452 |
}
|
539 |
}
|
453 |
});
|
540 |
});
|
454 |
toolBar.add(supprimerPersonnelBtn);
|
541 |
toolBar.add(supprimerPersonnelBtn);
|
455 |
cp.setTopComponent(toolBar);
|
542 |
cp.setTopComponent(toolBar);
|
456 |
|
543 |
|
457 |
ColumnModel cm = new ColumnModel(configs);
|
544 |
ColumnModel cm = new ColumnModel(configs);
|
458 |
|
545 |
|
459 |
grillePersonnel = new EditorGrid<Personne>(personnelGrilleMagazin, cm);
|
546 |
grillePersonnel = new EditorGrid<Personne>(personnelGrilleMagazin, cm);
|
460 |
grillePersonnel.setBorders(true);
|
547 |
grillePersonnel.setBorders(true);
|
461 |
grillePersonnel.setSelectionModel(sm);
|
548 |
grillePersonnel.setSelectionModel(sm);
|
462 |
grillePersonnel.addPlugin(sm);
|
549 |
grillePersonnel.addPlugin(sm);
|
463 |
grillePersonnel.addPlugin(checkColumn);
|
550 |
grillePersonnel.addPlugin(checkColumn);
|
464 |
grillePersonnel.setAutoExpandColumn("specialites");
|
551 |
grillePersonnel.setAutoExpandColumn("specialites");
|
465 |
|
552 |
|
466 |
cp.add(grillePersonnel);
|
553 |
cp.add(grillePersonnel);
|
467 |
return cp;
|
554 |
return cp;
|
468 |
}
|
555 |
}
|
469 |
|
556 |
|
470 |
private TabItem creerOngletIdentification() {
|
557 |
private TabItem creerOngletIdentification() {
|
471 |
//+-----------------------------------------------------------------------------------------------------------+
|
558 |
//+-----------------------------------------------------------------------------------------------------------+
|
472 |
// Onlget formulaire IDENTIFICATION
|
559 |
// Onlget formulaire IDENTIFICATION
|
473 |
TabItem identificationOnglet = new TabItem();
|
560 |
TabItem identificationOnglet = new TabItem();
|
474 |
identificationOnglet.setText("Identification");
|
561 |
identificationOnglet.setText("Identification");
|
475 |
identificationOnglet.setLayout(new FormLayout());
|
562 |
identificationOnglet.setLayout(new FormLayout());
|
476 |
|
563 |
|
477 |
//+-----------------------------------------------------------------------------------------------------------+
|
564 |
//+-----------------------------------------------------------------------------------------------------------+
|
478 |
// Fieldset IDENTITÉ
|
565 |
// Fieldset IDENTITÉ
|
479 |
FieldSet fieldSetIdentite = new FieldSet();
|
566 |
FieldSet fieldSetIdentite = new FieldSet();
|
480 |
fieldSetIdentite.setHeading("Identité");
|
567 |
fieldSetIdentite.setHeading("Identité");
|
481 |
fieldSetIdentite.setCollapsible(true);
|
568 |
fieldSetIdentite.setCollapsible(true);
|
482 |
fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
569 |
fieldSetIdentite.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
483 |
|
570 |
|
484 |
TextField<String> nomStructureChp = new TextField<String>();
|
571 |
TextField<String> nomStructureChp = new TextField<String>();
|
485 |
nomStructureChp.setFieldLabel("Nom de la structure");
|
572 |
nomStructureChp.setFieldLabel("Nom de la structure");
|
486 |
nomStructureChp.setAllowBlank(false);
|
573 |
nomStructureChp.setAllowBlank(false);
|
487 |
nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
574 |
nomStructureChp.getMessages().setBlankText("Ce champ est obligatoire.");
|
488 |
fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
|
575 |
fieldSetIdentite.add(nomStructureChp, new FormData(450, 0));
|
489 |
|
576 |
|
490 |
// Création du sous-formulaire : Acronyme
|
577 |
// Création du sous-formulaire : Acronyme
|
491 |
LayoutContainer ligne = new LayoutContainer();
|
578 |
LayoutContainer ligne = new LayoutContainer();
|
492 |
ligne.setLayout(new ColumnLayout());
|
579 |
ligne.setLayout(new ColumnLayout());
|
493 |
LayoutContainer gauche = new LayoutContainer();
|
580 |
LayoutContainer gauche = new LayoutContainer();
|
494 |
gauche.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
581 |
gauche.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
495 |
LayoutContainer droite = new LayoutContainer();
|
582 |
LayoutContainer droite = new LayoutContainer();
|
496 |
droite.setLayout(creerFormLayout(0, null, 0));
|
583 |
droite.setLayout(creerFormLayout(0, null, 0));
|
497 |
|
584 |
|
498 |
ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();
|
585 |
ListStore<InterneValeur> acronymes = new ListStore<InterneValeur>();
|
499 |
acronymes.add(InterneValeurListe.getTypeAcronyme());
|
586 |
acronymes.add(InterneValeurListe.getTypeAcronyme());
|
500 |
|
587 |
|
501 |
comboAcronyme = new ComboBox<InterneValeur>();
|
588 |
comboAcronyme = new ComboBox<InterneValeur>();
|
502 |
comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
|
589 |
comboAcronyme.setEmptyText("Sélectioner un type d'acronyme...");
|
503 |
comboAcronyme.setFieldLabel("Acronymes");
|
590 |
comboAcronyme.setFieldLabel("Acronymes");
|
504 |
comboAcronyme.setDisplayField("nom");
|
591 |
comboAcronyme.setDisplayField("nom");
|
505 |
comboAcronyme.setStore(acronymes);
|
592 |
comboAcronyme.setStore(acronymes);
|
506 |
comboAcronyme.setEditable(false);
|
593 |
comboAcronyme.setEditable(false);
|
507 |
comboAcronyme.setTypeAhead(true);
|
594 |
comboAcronyme.setTypeAhead(true);
|
508 |
comboAcronyme.setTriggerAction(TriggerAction.ALL);
|
595 |
comboAcronyme.setTriggerAction(TriggerAction.ALL);
|
509 |
comboAcronyme.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
596 |
comboAcronyme.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
510 |
@Override
|
597 |
@Override
|
511 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
598 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
512 |
String acronymeAbr = se.getSelectedItem().getAbr();
|
599 |
String acronymeAbr = se.getSelectedItem().getAbr();
|
513 |
if (acronymeAbr.equals("IH")) {
|
600 |
if (acronymeAbr.equals("IH")) {
|
514 |
mnhnChp.hide();
|
601 |
mnhnChp.hide();
|
515 |
ihChp.show();
|
602 |
ihChp.show();
|
516 |
} else if (acronymeAbr.equals("MNHN")) {
|
603 |
} else if (acronymeAbr.equals("MNHN")) {
|
517 |
ihChp.hide();
|
604 |
ihChp.hide();
|
518 |
mnhnChp.show();
|
605 |
mnhnChp.show();
|
519 |
} else if (acronymeAbr.equals("")) {
|
606 |
} else if (acronymeAbr.equals("")) {
|
520 |
ihChp.hide();
|
607 |
ihChp.hide();
|
521 |
mnhnChp.hide();
|
608 |
mnhnChp.hide();
|
522 |
comboAcronyme.clearSelections();
|
609 |
comboAcronyme.clearSelections();
|
523 |
}
|
610 |
}
|
524 |
}
|
611 |
}
|
525 |
});
|
612 |
});
|
526 |
gauche.add(comboAcronyme);
|
613 |
gauche.add(comboAcronyme);
|
527 |
|
614 |
|
528 |
ihChp = new TextField<String>();
|
615 |
ihChp = new TextField<String>();
|
529 |
//ihChp.setEmptyText("Index Herbariorum");
|
616 |
//ihChp.setEmptyText("Index Herbariorum");
|
530 |
ihChp.setLabelSeparator("");
|
617 |
ihChp.setLabelSeparator("");
|
531 |
ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
|
618 |
ihChp.setToolTip("Index Herbariorum : herbier de plus de 5000 échantillons");
|
532 |
ihChp.hide();
|
619 |
ihChp.hide();
|
533 |
droite.add(ihChp);
|
620 |
droite.add(ihChp);
|
534 |
|
621 |
|
535 |
mnhnChp = new TextField<String>();
|
622 |
mnhnChp = new TextField<String>();
|
536 |
//mnhnChp.setEmptyText("MNHN");
|
623 |
//mnhnChp.setEmptyText("MNHN");
|
537 |
mnhnChp.setLabelSeparator("");
|
624 |
mnhnChp.setLabelSeparator("");
|
538 |
mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
|
625 |
mnhnChp.setToolTip("Acronyme MNHN : herbier de moins de 5000 échantillons");
|
539 |
mnhnChp.hide();
|
626 |
mnhnChp.hide();
|
540 |
droite.add(mnhnChp);
|
627 |
droite.add(mnhnChp);
|
541 |
|
628 |
|
542 |
ligne.add(gauche, new ColumnData(0.5));
|
629 |
ligne.add(gauche, new ColumnData(0.5));
|
543 |
ligne.add(droite, new ColumnData(0.5));
|
630 |
ligne.add(droite, new ColumnData(0.5));
|
544 |
fieldSetIdentite.add(ligne);
|
631 |
fieldSetIdentite.add(ligne);
|
545 |
|
632 |
|
546 |
// Création du sous-formulaire : Type de Structure
|
633 |
// Création du sous-formulaire : Type de Structure
|
547 |
LayoutContainer ligneTs = new LayoutContainer();
|
634 |
LayoutContainer ligneTs = new LayoutContainer();
|
548 |
ligneTs.setLayout(new ColumnLayout());
|
635 |
ligneTs.setLayout(new ColumnLayout());
|
549 |
|
636 |
|
550 |
LayoutContainer gaucheTs = new LayoutContainer();
|
637 |
LayoutContainer gaucheTs = new LayoutContainer();
|
551 |
gaucheTs.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
638 |
gaucheTs.setLayout(creerFormLayout(200, LabelAlign.LEFT, 0));
|
552 |
|
639 |
|
553 |
LayoutContainer droiteTs = new LayoutContainer();
|
640 |
LayoutContainer droiteTs = new LayoutContainer();
|
554 |
droiteTs.setLayout(creerFormLayout(0, null, 0));
|
641 |
droiteTs.setLayout(creerFormLayout(0, null, 0));
|
555 |
|
642 |
|
556 |
ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();
|
643 |
ListStore<InterneValeur> typesStructure = new ListStore<InterneValeur>();
|
557 |
typesStructure.add(InterneValeurListe.getTypeStructure());
|
644 |
typesStructure.add(InterneValeurListe.getTypeStructure());
|
558 |
|
645 |
|
559 |
this.comboTypeStructure = new ComboBox<InterneValeur>();
|
646 |
this.comboTypeStructure = new ComboBox<InterneValeur>();
|
560 |
comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
|
647 |
comboTypeStructure.setEmptyText("Sélectioner un type de structure...");
|
561 |
comboTypeStructure.setFieldLabel("Statut des structures");
|
648 |
comboTypeStructure.setFieldLabel("Statut des structures");
|
562 |
comboTypeStructure.setDisplayField("nom");
|
649 |
comboTypeStructure.setDisplayField("nom");
|
563 |
comboTypeStructure.setStore(typesStructure);
|
650 |
comboTypeStructure.setStore(typesStructure);
|
564 |
comboTypeStructure.setEditable(false);
|
651 |
comboTypeStructure.setEditable(false);
|
565 |
comboTypeStructure.setTypeAhead(true);
|
652 |
comboTypeStructure.setTypeAhead(true);
|
566 |
comboTypeStructure.setTriggerAction(TriggerAction.ALL);
|
653 |
comboTypeStructure.setTriggerAction(TriggerAction.ALL);
|
567 |
comboTypeStructure.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
654 |
comboTypeStructure.addSelectionChangedListener(new SelectionChangedListener<InterneValeur>() {
|
568 |
@Override
|
655 |
@Override
|
569 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
656 |
public void selectionChanged(SelectionChangedEvent<InterneValeur> se) {
|
570 |
String typeAbr = se.getSelectedItem().getAbr();
|
657 |
String typeAbr = se.getSelectedItem().getAbr();
|
571 |
if (typeAbr.equals("stpu")) {
|
658 |
if (typeAbr.equals("stpu")) {
|
572 |
comboLstpr.hide();
|
659 |
comboLstpr.hide();
|
573 |
comboLstpu.show();
|
660 |
comboLstpu.show();
|
574 |
} else if (typeAbr.equals("stpr")) {
|
661 |
} else if (typeAbr.equals("stpr")) {
|
575 |
comboLstpu.hide();
|
662 |
comboLstpu.hide();
|
576 |
comboLstpr.show();
|
663 |
comboLstpr.show();
|
577 |
} else if (typeAbr.equals("")) {
|
664 |
} else if (typeAbr.equals("")) {
|
578 |
comboLstpr.hide();
|
665 |
comboLstpr.hide();
|
579 |
comboLstpu.hide();
|
666 |
comboLstpu.hide();
|
580 |
comboTypeStructure.clearSelections();
|
667 |
comboTypeStructure.clearSelections();
|
581 |
}
|
668 |
}
|
582 |
}
|
669 |
}
|
583 |
});
|
670 |
});
|
584 |
gaucheTs.add(comboTypeStructure);
|
671 |
gaucheTs.add(comboTypeStructure);
|
585 |
|
672 |
|
586 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
|
673 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpu"));
|
587 |
magazinLstpu = new ListStore<Valeur>();
|
674 |
magazinLstpu = new ListStore<Valeur>();
|
588 |
magazinLstpu.add(new ArrayList<Valeur>());
|
675 |
magazinLstpu.add(new ArrayList<Valeur>());
|
589 |
comboLstpu = new ComboBox<Valeur>();
|
676 |
comboLstpu = new ComboBox<Valeur>();
|
590 |
//comboLstpu.setFieldLabel("Statut des structures publiques");
|
677 |
//comboLstpu.setFieldLabel("Statut des structures publiques");
|
591 |
comboLstpu.setLabelSeparator("");
|
678 |
comboLstpu.setLabelSeparator("");
|
592 |
comboLstpu.setDisplayField("nom");
|
679 |
comboLstpu.setDisplayField("nom");
|
593 |
comboLstpu.setEditable(false);
|
680 |
comboLstpu.setEditable(false);
|
594 |
comboLstpu.setTriggerAction(TriggerAction.ALL);
|
681 |
comboLstpu.setTriggerAction(TriggerAction.ALL);
|
595 |
comboLstpu.setStore(magazinLstpu);
|
682 |
comboLstpu.setStore(magazinLstpu);
|
596 |
comboLstpu.hide();
|
683 |
comboLstpu.hide();
|
597 |
droiteTs.add(comboLstpu);
|
684 |
droiteTs.add(comboLstpu);
|
598 |
|
685 |
|
599 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
|
686 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId("stpr"));
|
600 |
magazinLstpr = new ListStore<Valeur>();
|
687 |
magazinLstpr = new ListStore<Valeur>();
|
601 |
magazinLstpr.add(new ArrayList<Valeur>());
|
688 |
magazinLstpr.add(new ArrayList<Valeur>());
|
602 |
comboLstpr = new ComboBox<Valeur>();
|
689 |
comboLstpr = new ComboBox<Valeur>();
|
603 |
//comboLstpr.setFieldLabel("Statut des structures privées");
|
690 |
//comboLstpr.setFieldLabel("Statut des structures privées");
|
604 |
comboLstpr.setLabelSeparator("");
|
691 |
comboLstpr.setLabelSeparator("");
|
605 |
comboLstpr.setDisplayField("nom");
|
692 |
comboLstpr.setDisplayField("nom");
|
606 |
comboLstpr.setEditable(false);
|
693 |
comboLstpr.setEditable(false);
|
607 |
comboLstpr.setTriggerAction(TriggerAction.ALL);
|
694 |
comboLstpr.setTriggerAction(TriggerAction.ALL);
|
608 |
comboLstpr.setStore(magazinLstpr);
|
695 |
comboLstpr.setStore(magazinLstpr);
|
609 |
comboLstpr.hide();
|
696 |
comboLstpr.hide();
|
610 |
droiteTs.add(comboLstpr);
|
697 |
droiteTs.add(comboLstpr);
|
611 |
|
698 |
|
612 |
ligneTs.add(gaucheTs, new ColumnData(0.5));
|
699 |
ligneTs.add(gaucheTs, new ColumnData(0.5));
|
613 |
ligneTs.add(droiteTs, new ColumnData(0.5));
|
700 |
ligneTs.add(droiteTs, new ColumnData(0.5));
|
614 |
fieldSetIdentite.add(ligneTs);
|
701 |
fieldSetIdentite.add(ligneTs);
|
615 |
|
702 |
|
616 |
DateField dateFondationChp = new DateField();
|
703 |
DateField dateFondationChp = new DateField();
|
617 |
dateFondationChp.setFieldLabel("Date de fondation");
|
704 |
dateFondationChp.setFieldLabel("Date de fondation");
|
618 |
dateFondationChp.getPropertyEditor().getFormat();
|
705 |
dateFondationChp.getPropertyEditor().getFormat();
|
619 |
dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
|
706 |
dateFondationChp.getPropertyEditor().setFormat(DateTimeFormat.getFormat("dd/MM/yyyy"));
|
620 |
dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
|
707 |
dateFondationChp.getMessages().setInvalidText("La valeur saisie n'est pas une date valide. La date doit être au format «jj/mm/aaaa».");
|
621 |
fieldSetIdentite.add(dateFondationChp);
|
708 |
fieldSetIdentite.add(dateFondationChp);
|
622 |
|
709 |
|
623 |
identificationOnglet.add(fieldSetIdentite);
|
710 |
identificationOnglet.add(fieldSetIdentite);
|
624 |
|
711 |
|
625 |
//+-----------------------------------------------------------------------------------------------------------+
|
712 |
//+-----------------------------------------------------------------------------------------------------------+
|
626 |
// Fieldset ADRESSE
|
713 |
// Fieldset ADRESSE
|
627 |
LayoutContainer principalFdAdresse = new LayoutContainer();
|
714 |
LayoutContainer principalFdAdresse = new LayoutContainer();
|
628 |
principalFdAdresse.setLayout(new ColumnLayout());
|
715 |
principalFdAdresse.setLayout(new ColumnLayout());
|
629 |
|
716 |
|
630 |
LayoutContainer gaucheFdAdresse = new LayoutContainer();
|
717 |
LayoutContainer gaucheFdAdresse = new LayoutContainer();
|
631 |
gaucheFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
718 |
gaucheFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
632 |
|
719 |
|
633 |
LayoutContainer droiteFdAdresse = new LayoutContainer();
|
720 |
LayoutContainer droiteFdAdresse = new LayoutContainer();
|
634 |
droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
721 |
droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
635 |
|
722 |
|
636 |
FieldSet fieldSetAdresse = new FieldSet();
|
723 |
FieldSet fieldSetAdresse = new FieldSet();
|
637 |
fieldSetAdresse.setHeading("Adresse");
|
724 |
fieldSetAdresse.setHeading("Adresse");
|
638 |
fieldSetAdresse.setCollapsible(true);
|
725 |
fieldSetAdresse.setCollapsible(true);
|
639 |
|
726 |
|
640 |
fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
|
727 |
fieldSetAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT, 4));
|
641 |
|
728 |
|
642 |
TextField<String> adrChp = new TextField<String>();
|
729 |
TextField<String> adrChp = new TextField<String>();
|
643 |
adrChp.setFieldLabel("Adresse");
|
730 |
adrChp.setFieldLabel("Adresse");
|
644 |
fieldSetAdresse.add(adrChp, new FormData(550, 0));
|
731 |
fieldSetAdresse.add(adrChp, new FormData(550, 0));
|
645 |
|
732 |
|
646 |
TextField<String> cpChp = new TextField<String>();
|
733 |
TextField<String> cpChp = new TextField<String>();
|
647 |
cpChp.setFieldLabel("Code postal");
|
734 |
cpChp.setFieldLabel("Code postal");
|
648 |
gaucheFdAdresse.add(cpChp);
|
735 |
gaucheFdAdresse.add(cpChp);
|
649 |
|
736 |
|
650 |
TextField<String> villeChp = new TextField<String>();
|
737 |
TextField<String> villeChp = new TextField<String>();
|
651 |
villeChp.setFieldLabel("Ville");
|
738 |
villeChp.setFieldLabel("Ville");
|
652 |
droiteFdAdresse.add(villeChp);
|
739 |
droiteFdAdresse.add(villeChp);
|
653 |
|
740 |
|
654 |
TextField<String> regionChp = new TextField<String>();
|
741 |
TextField<String> regionChp = new TextField<String>();
|
655 |
regionChp.setFieldLabel("Région");
|
742 |
regionChp.setFieldLabel("Région");
|
656 |
gaucheFdAdresse.add(regionChp);
|
743 |
gaucheFdAdresse.add(regionChp);
|
657 |
|
744 |
|
658 |
TextField<String> paysChp = new TextField<String>();
|
745 |
TextField<String> paysChp = new TextField<String>();
|
659 |
paysChp.setFieldLabel("Pays");
|
746 |
paysChp.setFieldLabel("Pays");
|
660 |
droiteFdAdresse.add(paysChp);
|
747 |
droiteFdAdresse.add(paysChp);
|
661 |
|
748 |
|
662 |
principalFdAdresse.add(gaucheFdAdresse, new ColumnData(.5));
|
749 |
principalFdAdresse.add(gaucheFdAdresse, new ColumnData(.5));
|
663 |
principalFdAdresse.add(droiteFdAdresse, new ColumnData(.5));
|
750 |
principalFdAdresse.add(droiteFdAdresse, new ColumnData(.5));
|
664 |
fieldSetAdresse.add(principalFdAdresse);
|
751 |
fieldSetAdresse.add(principalFdAdresse);
|
665 |
identificationOnglet.add(fieldSetAdresse);
|
752 |
identificationOnglet.add(fieldSetAdresse);
|
666 |
|
753 |
|
667 |
//+-----------------------------------------------------------------------------------------------------------+
|
754 |
//+-----------------------------------------------------------------------------------------------------------+
|
668 |
// Fieldset TÉLÉPHONE et EMAIL
|
755 |
// Fieldset TÉLÉPHONE et EMAIL
|
669 |
LayoutContainer principalFdTelMail = new LayoutContainer();
|
756 |
LayoutContainer principalFdTelMail = new LayoutContainer();
|
670 |
principalFdTelMail.setLayout(new ColumnLayout());
|
757 |
principalFdTelMail.setLayout(new ColumnLayout());
|
671 |
|
758 |
|
672 |
LayoutContainer gaucheFdTelMail = new LayoutContainer();
|
759 |
LayoutContainer gaucheFdTelMail = new LayoutContainer();
|
673 |
gaucheFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
760 |
gaucheFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
674 |
|
761 |
|
675 |
LayoutContainer droiteFdTelMail = new LayoutContainer();
|
762 |
LayoutContainer droiteFdTelMail = new LayoutContainer();
|
676 |
droiteFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
763 |
droiteFdTelMail.setLayout(creerFormLayout(100, LabelAlign.LEFT, 0));
|
677 |
|
764 |
|
678 |
FieldSet fieldSetTelMail = new FieldSet();
|
765 |
FieldSet fieldSetTelMail = new FieldSet();
|
679 |
fieldSetTelMail.setHeading("Communication");
|
766 |
fieldSetTelMail.setHeading("Communication");
|
680 |
fieldSetTelMail.setCollapsible(true);
|
767 |
fieldSetTelMail.setCollapsible(true);
|
681 |
|
768 |
|
682 |
fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
769 |
fieldSetTelMail.setLayout(creerFormLayout(200, LabelAlign.LEFT, 4));
|
683 |
|
770 |
|
684 |
TextField<String> telChp = new TextField<String>();
|
771 |
TextField<String> telChp = new TextField<String>();
|
685 |
telChp.setFieldLabel("Téléphone");
|
772 |
telChp.setFieldLabel("Téléphone");
|
686 |
gaucheFdTelMail.add(telChp);
|
773 |
gaucheFdTelMail.add(telChp);
|
687 |
|
774 |
|
688 |
TextField<String> faxChp = new TextField<String>();
|
775 |
TextField<String> faxChp = new TextField<String>();
|
689 |
faxChp.setFieldLabel("Fax");
|
776 |
faxChp.setFieldLabel("Fax");
|
690 |
droiteFdTelMail.add(faxChp);
|
777 |
droiteFdTelMail.add(faxChp);
|
691 |
|
778 |
|
692 |
TextField<String> emailChp = new TextField<String>();
|
779 |
TextField<String> emailChp = new TextField<String>();
|
693 |
emailChp.setFieldLabel("Courriel");
|
780 |
emailChp.setFieldLabel("Courriel");
|
694 |
emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
|
781 |
emailChp.setToolTip("Saisir le courriel de l'organisation, pas de courriel individuel. Ex. : accueil@organisation.org");
|
695 |
gaucheFdTelMail.add(emailChp);
|
782 |
gaucheFdTelMail.add(emailChp);
|
696 |
|
783 |
|
697 |
TextField<String> urlChp = new TextField<String>();
|
784 |
TextField<String> urlChp = new TextField<String>();
|
698 |
urlChp.setFieldLabel("Site web");
|
785 |
urlChp.setFieldLabel("Site web");
|
699 |
droiteFdTelMail.add(urlChp);
|
786 |
droiteFdTelMail.add(urlChp);
|
700 |
|
787 |
|
701 |
principalFdTelMail.add(gaucheFdTelMail, new ColumnData(.5));
|
788 |
principalFdTelMail.add(gaucheFdTelMail, new ColumnData(.5));
|
702 |
principalFdTelMail.add(droiteFdTelMail, new ColumnData(.5));
|
789 |
principalFdTelMail.add(droiteFdTelMail, new ColumnData(.5));
|
703 |
fieldSetTelMail.add(principalFdTelMail);
|
790 |
fieldSetTelMail.add(principalFdTelMail);
|
704 |
identificationOnglet.add(fieldSetTelMail);
|
791 |
identificationOnglet.add(fieldSetTelMail);
|
705 |
|
792 |
|
706 |
return identificationOnglet;
|
793 |
return identificationOnglet;
|
707 |
}
|
794 |
}
|
708 |
|
795 |
|
709 |
/** Méthode simplifiant la création de FormLayout.
|
796 |
/** Méthode simplifiant la création de FormLayout.
|
710 |
* Chacun des paramètres peut prendre la valeur null pour utiliser la valeur par défaut.
|
797 |
* Chacun des paramètres peut prendre la valeur null pour utiliser la valeur par défaut.
|
711 |
*
|
798 |
*
|
712 |
* @param labelWidth largeur des labels.
|
799 |
* @param labelWidth largeur des labels.
|
713 |
* @param labelAlign alignement des labels
|
800 |
* @param labelAlign alignement des labels
|
714 |
* @param padding padding du layout
|
801 |
* @param padding padding du layout
|
715 |
* @return
|
802 |
* @return
|
716 |
*/
|
803 |
*/
|
717 |
private FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign, Integer padding) {
|
804 |
private FormLayout creerFormLayout(Integer labelWidth, LabelAlign labelAlign, Integer padding) {
|
718 |
FormLayout formLayout = new FormLayout();
|
805 |
FormLayout formLayout = new FormLayout();
|
719 |
if (labelWidth != null) {
|
806 |
if (labelWidth != null) {
|
720 |
formLayout.setLabelWidth(labelWidth);
|
807 |
formLayout.setLabelWidth(labelWidth);
|
721 |
}
|
808 |
}
|
722 |
if (labelAlign != null) {
|
809 |
if (labelAlign != null) {
|
723 |
formLayout.setLabelAlign(labelAlign);
|
810 |
formLayout.setLabelAlign(labelAlign);
|
724 |
}
|
811 |
}
|
725 |
if (padding != null) {
|
812 |
if (padding != null) {
|
726 |
formLayout.setPadding(padding);
|
813 |
formLayout.setPadding(padding);
|
727 |
}
|
814 |
}
|
728 |
return formLayout;
|
815 |
return formLayout;
|
729 |
}
|
816 |
}
|
730 |
|
817 |
|
731 |
/** Méthode simplifiant la création de bouton radio oui/non
|
818 |
/** Méthode simplifiant la création de bouton radio oui/non
|
732 |
*
|
819 |
*
|
733 |
* @param listeNom nom de la liste de valeur
|
820 |
* @param listeNom nom de la liste de valeur
|
734 |
* @return
|
821 |
* @return
|
735 |
*/
|
822 |
*/
|
736 |
private void creerChoixUniqueBr(RadioGroup radioGroup, String attributNom ) {
|
823 |
private void creerChoixUniqueBr(RadioGroup radioGroup, String attributNom ) {
|
737 |
Radio ouiRadio = new Radio();
|
824 |
Radio ouiRadio = new Radio();
|
738 |
ouiRadio.setName(attributNom);
|
825 |
ouiRadio.setName(attributNom);
|
- |
|
826 |
ouiRadio.setId("oui_"+attributNom);
|
739 |
ouiRadio.setBoxLabel("Oui");
|
827 |
ouiRadio.setBoxLabel("Oui");
|
- |
|
828 |
ouiRadio.addListener(Events.OnClick, new Listener<BaseEvent>() {
|
- |
|
829 |
|
- |
|
830 |
public void handleEvent(BaseEvent be) {
|
- |
|
831 |
afficherChamp(((Radio) be.source), "oui");
|
- |
|
832 |
}
|
- |
|
833 |
|
- |
|
834 |
});
|
- |
|
835 |
|
740 |
//ouiRadio.setValue(true);
|
836 |
//ouiRadio.setValue(true);
|
741 |
|
837 |
|
742 |
Radio nonRadio = new Radio();
|
838 |
Radio nonRadio = new Radio();
|
743 |
nonRadio.setName(attributNom);
|
839 |
nonRadio.setName(attributNom);
|
- |
|
840 |
nonRadio.setId("non_"+attributNom);
|
744 |
nonRadio.setBoxLabel("Non");
|
841 |
nonRadio.setBoxLabel("Non");
|
- |
|
842 |
nonRadio.addListener(Events.OnClick, new Listener<BaseEvent>() {
|
- |
|
843 |
|
- |
|
844 |
public void handleEvent(BaseEvent be) {
|
- |
|
845 |
afficherChamp(((Radio) be.source), "non");
|
- |
|
846 |
}
|
- |
|
847 |
|
- |
|
848 |
});
|
745 |
|
849 |
|
746 |
radioGroup.add(ouiRadio);
|
850 |
radioGroup.add(ouiRadio);
|
747 |
radioGroup.add(nonRadio);
|
851 |
radioGroup.add(nonRadio);
|
748 |
}
|
852 |
}
|
- |
|
853 |
|
- |
|
854 |
private void afficherChamp(Radio r, String type) {
|
- |
|
855 |
|
- |
|
856 |
|
- |
|
857 |
ArrayList<Component> cp = new ArrayList<Component>();
|
- |
|
858 |
if (r.getName().equals("action_mark_grp")) {
|
- |
|
859 |
cp.add(actionTrukCp);
|
- |
|
860 |
} else if (r.getName().equals("future_action_mark_grp")) {
|
- |
|
861 |
cp.add(futureActionChp);
|
- |
|
862 |
} else if (r.getName().equals("sans_motif_acces_mark_grp")) {
|
- |
|
863 |
cp.add(sansMotifAccesChp);
|
- |
|
864 |
} else if (r.getName().equals("avec_motif_acces_mark_grp")) {
|
- |
|
865 |
cp.add(avecMotifAccesChp);
|
- |
|
866 |
} else if (r.getName().equals("recherche_mark_grp")) {
|
- |
|
867 |
cp.add(provenanceRechercheTrukCp);
|
- |
|
868 |
cp.add(TypeRechercheTrukCp);
|
- |
|
869 |
} else if (r.getName().equals("formation_mark_grp")) {
|
- |
|
870 |
cp.add(formationChp);
|
- |
|
871 |
} else if (r.getName().equals("collection_commune_mark")) {
|
- |
|
872 |
cp.add(collectionAutreTrukCp);
|
- |
|
873 |
} else if (r.getName().equals("restauration_mark")) {
|
- |
|
874 |
cp.add(opRestauTrukCp);
|
- |
|
875 |
}
|
- |
|
876 |
|
- |
|
877 |
final int tailleMax = cp.size();
|
- |
|
878 |
for (int i = 0; i < tailleMax; i++) {
|
- |
|
879 |
// En fonction du type de bouton cliquer, on affiche ou cache les champs
|
- |
|
880 |
if (r.getValue() == true && type.equals("oui")) {
|
- |
|
881 |
cp.get(i).show();
|
- |
|
882 |
}
|
- |
|
883 |
if (r.getValue() == true && type.equals("non")) {
|
- |
|
884 |
cp.get(i).hide();
|
- |
|
885 |
}
|
- |
|
886 |
|
- |
|
887 |
// Si on a à faire à un ContentPanel, on l'actualise pour déclencher l'affichage
|
- |
|
888 |
// FIXME : régler le problème ci-dessous : instanceof ne fonctionne pas car cp est un tableau de componet...
|
- |
|
889 |
if (cp.get(i) instanceof ContentPanel) {
|
- |
|
890 |
GWT.log(r.getId(), null);
|
- |
|
891 |
((ContentPanel) cp.get(i)).layout();
|
- |
|
892 |
}
|
- |
|
893 |
}
|
- |
|
894 |
|
- |
|
895 |
}
|
749 |
|
896 |
|
750 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
897 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
751 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
898 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
752 |
* Ajoute ou pas un champ "Autre".
|
899 |
* Ajoute ou pas un champ "Autre".
|
753 |
*
|
900 |
*
|
754 |
* @param listeNom nom de la liste de valeur
|
901 |
* @param listeNom nom de la liste de valeur
|
755 |
* @return
|
902 |
* @return
|
756 |
*/
|
903 |
*/
|
757 |
private ContentPanel creerChoixMultipleCp(String listeNom) {
|
904 |
private ContentPanel creerChoixMultipleCp(String listeNom) {
|
758 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
|
905 |
coelModele.obtenirListeValeurs(((Configuration) Registry.get(RegistreId.CONFIG)).getListeId(listeNom));
|
759 |
ContentPanel cp = new ContentPanel();
|
906 |
ContentPanel cp = new ContentPanel();
|
760 |
cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
|
907 |
cp.setLayout(creerFormLayout(650, LabelAlign.TOP, 0));
|
761 |
cp.setHeaderVisible(false);
|
908 |
cp.setHeaderVisible(false);
|
762 |
return cp;
|
909 |
return cp;
|
763 |
}
|
910 |
}
|
764 |
|
911 |
|
765 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
912 |
/** Méthode simplifiant la création de choix multiple sous forme de case à cocher.
|
766 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
913 |
* Apelle un service retournant la liste des valeurs représentant les cases à cocher.
|
767 |
* Ajoute ou pas un champ "Autre".
|
914 |
* Ajoute ou pas un champ "Autre".
|
768 |
*
|
915 |
*
|
769 |
* @param cp panneau conteant le groupe de case à cocher
|
916 |
* @param cp panneau conteant le groupe de case à cocher
|
770 |
* @param cacGroup le groupe de case à cocher
|
917 |
* @param cacGroup le groupe de case à cocher
|
771 |
* @param labelTxt le texte du champ
|
918 |
* @param labelTxt le texte du champ
|
772 |
* @param listeValeurs la liste de valeurs à transformer en case à cocher
|
919 |
* @param listeValeurs la liste de valeurs à transformer en case à cocher
|
773 |
* @param boolAutreChp booléen indiquant si oui ou non le champ autre doit apparaître
|
920 |
* @param boolAutreChp booléen indiquant si oui ou non le champ autre doit apparaître
|
774 |
* @return
|
921 |
* @return
|
775 |
*/
|
922 |
*/
|
776 |
private void creerChoixMultipleCac(ContentPanel cp, CheckBoxGroup cacGroupe, String labelTxt, ValeurListe listeValeurs, Boolean boolAutreChp) {
|
923 |
private void creerChoixMultipleCac(ContentPanel cp, CheckBoxGroup cacGroupe, String labelTxt, ValeurListe listeValeurs, Boolean boolAutreChp) {
|
777 |
cacGroupe.setFieldLabel(labelTxt);
|
924 |
cacGroupe.setFieldLabel(labelTxt);
|
778 |
cacGroupe.setAutoWidth(true);
|
925 |
cacGroupe.setAutoWidth(true);
|
779 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
926 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
780 |
String nom = listeValeurs.get(it.next()).get("nom");
|
927 |
Valeur val = listeValeurs.get(it.next());
|
- |
|
928 |
String nom = val.get("nom");
|
781 |
CheckBox cac = new CheckBox();
|
929 |
CheckBox cac = new CheckBox();
|
782 |
// TODO : supprimer le code ci-dessous si inutile
|
- |
|
783 |
/*
|
- |
|
784 |
//GWT.log("Taille '"+nom+"' : "+nom.length(), null);
|
- |
|
785 |
// Calcul de la largeur de la checkbox en fonction de la taille du label
|
- |
|
786 |
int largeur = nom.length()*10;
|
- |
|
787 |
if (nom.length() > 15) {
|
- |
|
788 |
largeur = 170;
|
- |
|
789 |
}
|
- |
|
790 |
if (nom.length() > 25) {
|
- |
|
791 |
largeur = 250;
|
- |
|
792 |
}
|
- |
|
793 |
cac.setWidth(largeur);
|
- |
|
794 |
*/
|
- |
|
795 |
cac.setBoxLabel(nom);
|
930 |
cac.setBoxLabel(nom);
|
- |
|
931 |
if (! val.getDescription().equals("NULL")) {
|
- |
|
932 |
cac.setToolTip(new ToolTipConfig(val.getNom(), val.getDescription()));
|
- |
|
933 |
}
|
796 |
cacGroupe.add(cac);
|
934 |
cacGroupe.add(cac);
|
797 |
}
|
935 |
}
|
798 |
cp.add(cacGroupe);
|
936 |
cp.add(cacGroupe);
|
799 |
|
937 |
|
800 |
if (boolAutreChp == true) {
|
938 |
if (boolAutreChp == true) {
|
801 |
ContentPanel autreCp = new ContentPanel();
|
939 |
ContentPanel autreCp = new ContentPanel();
|
802 |
autreCp.setLayout(creerFormLayout(75, LabelAlign.TOP, 0));
|
940 |
autreCp.setLayout(creerFormLayout(75, LabelAlign.TOP, 0));
|
803 |
autreCp.setHeaderVisible(false);
|
941 |
autreCp.setHeaderVisible(false);
|
804 |
TextField<String> autreTrukLocalStockageChp = new TextField<String>();
|
942 |
TextField<String> autreTrukLocalStockageChp = new TextField<String>();
|
805 |
autreTrukLocalStockageChp.setFieldLabel("Autre");
|
943 |
autreTrukLocalStockageChp.setFieldLabel("Autre");
|
806 |
autreTrukLocalStockageChp.setLabelStyle("font-weight:normal;");
|
944 |
autreTrukLocalStockageChp.setLabelStyle("font-weight:normal;");
|
807 |
autreTrukLocalStockageChp.setWidth(300);
|
945 |
autreTrukLocalStockageChp.setWidth(300);
|
808 |
autreCp.add(autreTrukLocalStockageChp);
|
946 |
autreCp.add(autreTrukLocalStockageChp);
|
809 |
cp.add(autreCp);
|
947 |
cp.add(autreCp);
|
810 |
}
|
948 |
}
|
811 |
|
949 |
|
812 |
cp.layout();
|
950 |
cp.layout();
|
813 |
}
|
951 |
}
|
814 |
|
952 |
|
815 |
public void rafraichir(Object nouvelleDonnees) {
|
953 |
public void rafraichir(Object nouvelleDonnees) {
|
816 |
if (nouvelleDonnees instanceof ValeurListe) {
|
954 |
if (nouvelleDonnees instanceof ValeurListe) {
|
817 |
ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
|
955 |
ValeurListe listeValeurs = (ValeurListe) nouvelleDonnees;
|
818 |
|
956 |
|
819 |
List<Valeur> liste = new ArrayList<Valeur>();
|
957 |
List<Valeur> liste = new ArrayList<Valeur>();
|
820 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
958 |
for (Iterator<String> it = listeValeurs.keySet().iterator(); it.hasNext();) {
|
821 |
liste.add(listeValeurs.get(it.next()));
|
959 |
liste.add(listeValeurs.get(it.next()));
|
822 |
}
|
960 |
}
|
823 |
// Test pour savoir si la liste contient des éléments
|
961 |
// Test pour savoir si la liste contient des éléments
|
824 |
if (liste.size() > 0) {
|
962 |
if (liste.size() > 0) {
|
825 |
Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
|
963 |
Configuration config = (Configuration) Registry.get(RegistreId.CONFIG);
|
826 |
if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
|
964 |
if (listeValeurs.getId().equals(config.getListeId("stpr"))) {
|
827 |
magazinLstpr.removeAll();
|
965 |
magazinLstpr.removeAll();
|
828 |
magazinLstpr.add(liste);
|
966 |
magazinLstpr.add(liste);
|
829 |
comboLstpr.setStore(magazinLstpr);
|
967 |
comboLstpr.setStore(magazinLstpr);
|
830 |
}
|
968 |
}
|
831 |
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
|
969 |
if (listeValeurs.getId().equals(config.getListeId("stpu"))) {
|
832 |
magazinLstpu.removeAll();
|
970 |
magazinLstpu.removeAll();
|
833 |
magazinLstpu.add(liste);
|
971 |
magazinLstpu.add(liste);
|
834 |
comboLstpu.setStore(magazinLstpu);
|
972 |
comboLstpu.setStore(magazinLstpu);
|
835 |
}
|
973 |
}
|
836 |
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
|
974 |
if (listeValeurs.getId().equals(config.getListeId("statut"))) {
|
837 |
magazinLiStatut.removeAll();
|
975 |
magazinLiStatut.removeAll();
|
838 |
magazinLiStatut.add(liste);
|
976 |
magazinLiStatut.add(liste);
|
839 |
comboLiStatut.setStore(magazinLiStatut);
|
977 |
comboLiStatut.setStore(magazinLiStatut);
|
840 |
}
|
978 |
}
|
841 |
if (listeValeurs.getId().equals(config.getListeId("fonction"))) {
|
979 |
if (listeValeurs.getId().equals(config.getListeId("fonction"))) {
|
842 |
magazinLiFonction.removeAll();
|
980 |
magazinLiFonction.removeAll();
|
843 |
magazinLiFonction.add(liste);
|
981 |
magazinLiFonction.add(liste);
|
844 |
comboLiFonction.setStore(magazinLiFonction);
|
982 |
comboLiFonction.setStore(magazinLiFonction);
|
845 |
}
|
983 |
}
|
846 |
if (listeValeurs.getId().equals(config.getListeId("localStockage"))) {
|
984 |
if (listeValeurs.getId().equals(config.getListeId("localStockage"))) {
|
847 |
trukLocalStockageCacGrpChp = new CheckBoxGroup();
|
985 |
trukLocalStockageCacGrpChp = new CheckBoxGroup();
|
848 |
String labelTxt = "Avez vous des locaux spécifiques de stockage des collections botaniques ?";
|
986 |
String labelTxt = "Avez vous des locaux spécifiques de stockage des collections botaniques ?";
|
849 |
creerChoixMultipleCac(trukLocalStockageCp, trukLocalStockageCacGrpChp, labelTxt, listeValeurs, true);
|
987 |
creerChoixMultipleCac(trukLocalStockageCp, trukLocalStockageCacGrpChp, labelTxt, listeValeurs, true);
|
850 |
}
|
988 |
}
|
851 |
if (listeValeurs.getId().equals(config.getListeId("meubleStockage"))) {
|
989 |
if (listeValeurs.getId().equals(config.getListeId("meubleStockage"))) {
|
852 |
trukMeubleStockageCp.setToolTip(new ToolTipConfig("Rayonnages mobiles", "rayonnages sur rails pouvant être déplacés, manuellement ou automatiquement, de façon à utiliser l'espace ordinairement occupé par les allées de desserte entre travées."));
|
- |
|
853 |
trukMeubleStockageCacGrpChp = new CheckBoxGroup();
|
990 |
trukMeubleStockageCacGrpChp = new CheckBoxGroup();
|
854 |
String labelTxt = "Avez vous des meubles spécifiques au stockage des collections botaniques ?";
|
991 |
String labelTxt = "Avez vous des meubles spécifiques au stockage des collections botaniques ?";
|
855 |
creerChoixMultipleCac(trukMeubleStockageCp, trukMeubleStockageCacGrpChp, labelTxt, listeValeurs, true);
|
992 |
creerChoixMultipleCac(trukMeubleStockageCp, trukMeubleStockageCacGrpChp, labelTxt, listeValeurs, true);
|
856 |
}
|
993 |
}
|
857 |
if (listeValeurs.getId().equals(config.getListeId("parametreStockage"))) {
|
994 |
if (listeValeurs.getId().equals(config.getListeId("parametreStockage"))) {
|
858 |
trukParametreStockageCacGrpChp = new CheckBoxGroup();
|
995 |
trukParametreStockageCacGrpChp = new CheckBoxGroup();
|
859 |
String labelTxt = "Quels paramètres maîtrisez vous ?";
|
996 |
String labelTxt = "Quels paramètres maîtrisez vous ?";
|
860 |
creerChoixMultipleCac(trukParametreStockageCp, trukParametreStockageCacGrpChp, labelTxt, listeValeurs, true);
|
997 |
creerChoixMultipleCac(trukParametreStockageCp, trukParametreStockageCacGrpChp, labelTxt, listeValeurs, true);
|
861 |
}
|
998 |
}
|
862 |
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
|
999 |
if (listeValeurs.getId().equals(config.getListeId("autreCollection"))) {
|
- |
|
1000 |
if (collectionAutreTrukCp.getItemByItemId("collectionAutreTrukCacGrpChp") == null) {
|
863 |
trukCollectionAutreCacGrpChp = new CheckBoxGroup();
|
1001 |
collectionAutreTrukCacGrpChp = new CheckBoxGroup();
|
- |
|
1002 |
collectionAutreTrukCacGrpChp.setId("collectionAutreTrukCacGrpChp");
|
864 |
String labelTxt = "Si oui, lesquelles ?";
|
1003 |
String labelTxt = "Si oui, lesquelles ?";
|
865 |
creerChoixMultipleCac(trukCollectionAutreCp, trukCollectionAutreCacGrpChp, labelTxt, listeValeurs, true);
|
1004 |
creerChoixMultipleCac(collectionAutreTrukCp, collectionAutreTrukCacGrpChp, labelTxt, listeValeurs, true);
|
- |
|
1005 |
}
|
- |
|
1006 |
if (autreCollectionTrukCp.getItemByItemId("autreCollectionTrukCacGrpChp") == null) {
|
- |
|
1007 |
trukAutreCollectionCacGrpChp = new CheckBoxGroup();
|
- |
|
1008 |
trukAutreCollectionCacGrpChp.setId("autreCollectionTrukCacGrpChp");
|
- |
|
1009 |
String labelTxt = "L'organisme dispose-t-il d'autres collections (permettant une valorisation pluridisciplinaire) ?";
|
- |
|
1010 |
creerChoixMultipleCac(autreCollectionTrukCp, trukAutreCollectionCacGrpChp, labelTxt, listeValeurs, true);
|
- |
|
1011 |
}
|
866 |
}
|
1012 |
}
|
867 |
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
|
1013 |
if (listeValeurs.getId().equals(config.getListeId("opRestau"))) {
|
868 |
trukOpRestauCacGrpChp = new CheckBoxGroup();
|
1014 |
trukOpRestauCacGrpChp = new CheckBoxGroup();
|
869 |
String labelTxt = "Si oui, lesquelles ?";
|
1015 |
String labelTxt = "Si oui, lesquelles ?";
|
870 |
creerChoixMultipleCac(trukOpRestauCp, trukOpRestauCacGrpChp, labelTxt, listeValeurs, true);
|
1016 |
creerChoixMultipleCac(opRestauTrukCp, trukOpRestauCacGrpChp, labelTxt, listeValeurs, true);
|
871 |
}
|
1017 |
}
|
872 |
if (listeValeurs.getId().equals(config.getListeId("onep"))) {
|
1018 |
if (listeValeurs.getId().equals(config.getListeId("onep"))) {
|
873 |
ceMaterielConservationCacGrpChp = new CheckBoxGroup();
|
1019 |
ceMaterielConservationCacGrpChp = new CheckBoxGroup();
|
874 |
String labelTxt = "Utilisez vous du matériel de conservation ?";
|
1020 |
String labelTxt = "Utilisez vous du matériel de conservation ?";
|
875 |
ceMaterielConservationCp.setToolTip(new ToolTipConfig("Matériel de conservation", "matériel spécialisé pour la conservation des archives ou du patrimoine fragile. Ce matériel possède des propriétés mécaniques et chimiques qui font qu'il résiste dans le temps et que sa dégradation n'entraîne pas de dommages sur le matériel qu'il aide à conserver. Exemples : papier neutre, papier gommé, etc..."));
|
1021 |
ceMaterielConservationCp.setToolTip(new ToolTipConfig("Matériel de conservation", "matériel spécialisé pour la conservation des archives ou du patrimoine fragile. Ce matériel possède des propriétés mécaniques et chimiques qui font qu'il résiste dans le temps et que sa dégradation n'entraîne pas de dommages sur le matériel qu'il aide à conserver. Exemples : papier neutre, papier gommé, etc..."));
|
876 |
creerChoixMultipleCac(ceMaterielConservationCp, ceMaterielConservationCacGrpChp, labelTxt, listeValeurs, true);
|
1022 |
creerChoixMultipleCac(ceMaterielConservationCp, ceMaterielConservationCacGrpChp, labelTxt, listeValeurs, true);
|
877 |
}
|
1023 |
}
|
878 |
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
|
1024 |
if (listeValeurs.getId().equals(config.getListeId("autreMateriel"))) {
|
879 |
trukAutreMaterielCacGrpChp = new CheckBoxGroup();
|
1025 |
trukAutreMaterielCacGrpChp = new CheckBoxGroup();
|
880 |
String labelTxt = "Si non, qu'utilisez vous comme matériel ?";
|
1026 |
String labelTxt = "Si non, qu'utilisez vous comme matériel ?";
|
881 |
creerChoixMultipleCac(trukAutreMaterielCp, trukAutreMaterielCacGrpChp, labelTxt, listeValeurs, true);
|
1027 |
creerChoixMultipleCac(trukAutreMaterielCp, trukAutreMaterielCacGrpChp, labelTxt, listeValeurs, true);
|
882 |
}
|
1028 |
}
|
883 |
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
|
1029 |
if (listeValeurs.getId().equals(config.getListeId("poisonTraitement"))) {
|
884 |
trukPoisonTraitementCacGrpChp = new CheckBoxGroup();
|
1030 |
trukPoisonTraitementCacGrpChp = new CheckBoxGroup();
|
885 |
String labelTxt = "Empoisonnement";
|
1031 |
String labelTxt = "Empoisonnement";
|
886 |
trukPoisonTraitementCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
1032 |
trukPoisonTraitementCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
887 |
trukPoisonTraitementCacGrpChp.setLabelSeparator("");
|
1033 |
trukPoisonTraitementCacGrpChp.setLabelSeparator("");
|
888 |
creerChoixMultipleCac(trukPoisonTraitementCp, trukPoisonTraitementCacGrpChp, labelTxt, listeValeurs, true);
|
1034 |
creerChoixMultipleCac(trukPoisonTraitementCp, trukPoisonTraitementCacGrpChp, labelTxt, listeValeurs, true);
|
889 |
}
|
1035 |
}
|
890 |
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
|
1036 |
if (listeValeurs.getId().equals(config.getListeId("insecteTraitement"))) {
|
891 |
if (trukTraitementCp.isRendered() && trukTraitementCp.getItemByItemId("trukTraitementCacGrpChp") == null) {
|
1037 |
if (traitementTrukCp.getItemByItemId("trukTraitementCacGrpChp") == null) {
|
892 |
trukTraitementCacGrpChp = new CheckBoxGroup();
|
1038 |
traitementTrukCacGrpChp = new CheckBoxGroup();
|
893 |
trukTraitementCacGrpChp.setId("trukTraitementCacGrpChp");
|
1039 |
traitementTrukCacGrpChp.setId("trukTraitementCacGrpChp");
|
894 |
creerChoixMultipleCac(trukTraitementCp, trukTraitementCacGrpChp, "Si oui, lesquels ?", listeValeurs, true);
|
1040 |
creerChoixMultipleCac(traitementTrukCp, traitementTrukCacGrpChp, "Si oui, lesquels ?", listeValeurs, true);
|
895 |
}
|
1041 |
}
|
896 |
if (trukInsecteTraitementCp.isRendered() && trukInsecteTraitementCp.getItemByItemId("trukInsecteTraitementCacGrpChp") == null) {
|
1042 |
if (insecteTraitementTrukCp.getItemByItemId("trukInsecteTraitementCacGrpChp") == null) {
|
897 |
trukInsecteTraitementCacGrpChp = new CheckBoxGroup();
|
1043 |
insecteTraitementTrukCacGrpChp = new CheckBoxGroup();
|
898 |
trukInsecteTraitementCacGrpChp.setId("trukInsecteTraitementCacGrpChp");
|
1044 |
insecteTraitementTrukCacGrpChp.setId("trukInsecteTraitementCacGrpChp");
|
899 |
trukInsecteTraitementCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
1045 |
insecteTraitementTrukCacGrpChp.setLabelStyle("font-weight:normal;text-decoration:underline;");
|
900 |
trukInsecteTraitementCacGrpChp.setLabelSeparator("");
|
1046 |
insecteTraitementTrukCacGrpChp.setLabelSeparator("");
|
901 |
creerChoixMultipleCac(trukInsecteTraitementCp, trukInsecteTraitementCacGrpChp, "Désinsectisation", listeValeurs, true);
|
1047 |
creerChoixMultipleCac(insecteTraitementTrukCp, insecteTraitementTrukCacGrpChp, "Désinsectisation", listeValeurs, true);
|
902 |
}
|
1048 |
}
|
903 |
}
|
1049 |
}
|
- |
|
1050 |
if (listeValeurs.getId().equals(config.getListeId("actionValorisation"))) {
|
- |
|
1051 |
trukActionCacGrpChp = new CheckBoxGroup();
|
- |
|
1052 |
String labelTxt = "Si oui, lesquelles ?";
|
- |
|
1053 |
creerChoixMultipleCac(actionTrukCp, trukActionCacGrpChp, labelTxt, listeValeurs, true);
|
- |
|
1054 |
}
|
- |
|
1055 |
if (listeValeurs.getId().equals(config.getListeId("continentEtFr"))) {
|
- |
|
1056 |
trukProvenanceRechercheCacGrpChp = new CheckBoxGroup();
|
- |
|
1057 |
String labelTxt = "Si oui, par des chercheurs (professionnels ou amateurs) de quelle provenance ?";
|
- |
|
1058 |
creerChoixMultipleCac(provenanceRechercheTrukCp, trukProvenanceRechercheCacGrpChp, labelTxt, listeValeurs, true);
|
- |
|
1059 |
}
|
- |
|
1060 |
if (listeValeurs.getId().equals(config.getListeId("typeRecherche"))) {
|
- |
|
1061 |
trukTypeRechercheCacGrpChp = new CheckBoxGroup();
|
- |
|
1062 |
String labelTxt = "Et pour quelles recherches ?";
|
- |
|
1063 |
creerChoixMultipleCac(TypeRechercheTrukCp, trukTypeRechercheCacGrpChp, labelTxt, listeValeurs, true);
|
- |
|
1064 |
}
|
904 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
1065 |
//GWT.log("La liste #"+listeValeurs.getId()+" a été reçue!", null);
|
905 |
} else {
|
1066 |
} else {
|
906 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
1067 |
GWT.log("La liste #"+listeValeurs.getId()+" ne contient aucune valeurs!", null);
|
907 |
}
|
1068 |
}
|
908 |
}
|
1069 |
}
|
909 |
}
|
1070 |
}
|
910 |
|
1071 |
|
911 |
}
|
1072 |
}
|