| Line 14... |
Line 14... |
| 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;
|
| Line 16... |
Line 16... |
| 16 |
|
16 |
|
| 17 |
import com.extjs.gxt.ui.client.store.ListStore;
|
17 |
import com.extjs.gxt.ui.client.store.ListStore;
|
| 18 |
import com.extjs.gxt.ui.client.util.Margins;
|
- |
|
| 19 |
import com.extjs.gxt.ui.client.util.Padding;
|
- |
|
| 20 |
import com.extjs.gxt.ui.client.widget.ContentPanel;
|
- |
|
| 21 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
18 |
import com.extjs.gxt.ui.client.util.Margins;
|
| 22 |
import com.extjs.gxt.ui.client.widget.Text;
|
19 |
import com.extjs.gxt.ui.client.widget.Text;
|
| 23 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
20 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
| 24 |
import com.extjs.gxt.ui.client.widget.form.Field;
|
21 |
import com.extjs.gxt.ui.client.widget.form.Field;
|
| 25 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
22 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
| 26 |
import com.extjs.gxt.ui.client.widget.form.HiddenField;
|
- |
|
| 27 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
23 |
import com.extjs.gxt.ui.client.widget.form.HiddenField;
|
| 28 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
24 |
import com.extjs.gxt.ui.client.widget.form.NumberField;
|
| - |
|
25 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
| 29 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
26 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
| 30 |
import com.extjs.gxt.ui.client.widget.form.Validator;
|
27 |
import com.extjs.gxt.ui.client.widget.form.Validator;
|
| 31 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
- |
|
| 32 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
- |
|
| 33 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
- |
|
| 34 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
- |
|
| 35 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
28 |
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
|
| 36 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
- |
|
| 37 |
import com.extjs.gxt.ui.client.widget.layout.HBoxLayout;
|
29 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
| 38 |
import com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData;
|
- |
|
| 39 |
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
|
- |
|
| 40 |
import com.extjs.gxt.ui.client.widget.layout.HBoxLayout.HBoxLayoutAlign;
|
30 |
import com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData;
|
| 41 |
import com.google.gwt.core.client.GWT;
|
31 |
import com.google.gwt.core.client.GWT;
|
| Line 42... |
Line 32... |
| 42 |
import com.google.gwt.i18n.client.NumberFormat;
|
32 |
import com.google.gwt.i18n.client.NumberFormat;
|
| Line 47... |
Line 37... |
| 47 |
|
37 |
|
| 48 |
private ComboBox<Projet> projetsCombo = null;
|
38 |
private ComboBox<Projet> projetsCombo = null;
|
| 49 |
private ComboBox<Structure> structuresCombo = null;
|
39 |
private ComboBox<Structure> structuresCombo = null;
|
| Line 50... |
Line -... |
| 50 |
private ComboBox<Collection> collectionsCombo = null;
|
- |
|
| 51 |
|
40 |
private ComboBox<Collection> collectionsCombo = null;
|
| 52 |
private FieldSet descriptionFieldSet = null;
|
- |
|
| 53 |
private ComboBox<Valeur> typeDepotCombo = null;
|
41 |
|
| Line 54... |
Line 42... |
| 54 |
|
42 |
private ChampComboBoxListeValeurs groupementPrincipeCombo;
|
| 55 |
private TextArea lieuCouvertureChp = null;
|
43 |
private ChampMultiValeurs lieuCouvertureChp = null;
|
| 56 |
|
44 |
|
| 57 |
private ChampComboBoxListeValeurs specimenTypeCombo = null;
|
- |
|
| 58 |
private ChampComboBoxListeValeurs precisionTypeNbreCombo = null;
|
45 |
private ChampComboBoxListeValeurs specimenTypeCombo = null;
|
| Line -... |
Line 46... |
| - |
|
46 |
private ChampComboBoxListeValeurs precisionTypeNbreCombo = null;
|
| - |
|
47 |
private NumberField nbreTypeChp = null;
|
| - |
|
48 |
private ChampComboBoxListeValeurs classementSpecimenTypeCombo;
|
| - |
|
49 |
|
| - |
|
50 |
private ComboBox<Valeur> typeDepotCombo = null;
|
| - |
|
51 |
private TextField<String> guidChp;
|
| - |
|
52 |
private ChampMultiValeurs idAlternatifsChp;
|
| - |
|
53 |
private ChampMultiValeurs nomsAlternatifsChp;
|
| - |
|
54 |
private ChampMultiValeurs codesAlternatifsChp;
|
| - |
|
55 |
|
| - |
|
56 |
private TextArea descriptionSpecialisteChp;
|
| - |
|
57 |
private TextArea descriptionChp;
|
| - |
|
58 |
private TextArea historiqueChp;
|
| 59 |
private NumberField nbreTypeChp = null;
|
59 |
private ChampMultiValeurs urlsChp;
|
| 60 |
|
60 |
|
| 61 |
private ChampComboBoxListeValeurs classementSpecimenTypeCombo;
|
61 |
private ChampComboBoxListeValeurs butRealisationCombo;
|
| 62 |
|
62 |
|
| Line 171... |
Line 171... |
| 171 |
administratifFieldSet.setCollapsible(true);
|
171 |
administratifFieldSet.setCollapsible(true);
|
| 172 |
administratifFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
172 |
administratifFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| Line 173... |
Line 173... |
| 173 |
|
173 |
|
| 174 |
typeDepotCombo = new ChampComboBoxListeValeurs(i18nC.typeDepot(), "typeDepot", tabIndex++);
|
174 |
typeDepotCombo = new ChampComboBoxListeValeurs(i18nC.typeDepot(), "typeDepot", tabIndex++);
|
| 175 |
administratifFieldSet.add(typeDepotCombo);
|
175 |
administratifFieldSet.add(typeDepotCombo);
|
| - |
|
176 |
|
| - |
|
177 |
guidChp = new TextField<String>();
|
| - |
|
178 |
guidChp.setFieldLabel(i18nC.guidCollection());
|
| - |
|
179 |
administratifFieldSet.add(guidChp);
|
| - |
|
180 |
|
| - |
|
181 |
idAlternatifsChp = new ChampMultiValeurs(i18nC.idAlternatifCollection());
|
| - |
|
182 |
administratifFieldSet.add(idAlternatifsChp);
|
| 176 |
|
183 |
|
| 177 |
ChampMultiValeurs nomsAlternatifsChp = new ChampMultiValeurs(i18nC.intituleAlternatifCollection());
|
184 |
nomsAlternatifsChp = new ChampMultiValeurs(i18nC.intituleAlternatifCollection());
|
| Line 178... |
Line 185... |
| 178 |
administratifFieldSet.add(nomsAlternatifsChp);
|
185 |
administratifFieldSet.add(nomsAlternatifsChp);
|
| 179 |
|
186 |
|
| Line 180... |
Line 187... |
| 180 |
ChampMultiValeurs codesAlternatifsChp = new ChampMultiValeurs(i18nC.codeAlternatifCollection());
|
187 |
codesAlternatifsChp = new ChampMultiValeurs(i18nC.codeAlternatifCollection());
|
| 181 |
administratifFieldSet.add(codesAlternatifsChp);
|
188 |
administratifFieldSet.add(codesAlternatifsChp);
|
| Line 182... |
Line 189... |
| 182 |
|
189 |
|
| 183 |
this.add(administratifFieldSet);
|
190 |
this.add(administratifFieldSet);
|
| 184 |
}
|
191 |
}
|
| 185 |
|
192 |
|
| 186 |
private void creerFieldsetDescription() {
|
193 |
private void creerFieldsetDescription() {
|
| 187 |
// Fieldset DESCRIPTION
|
194 |
// Fieldset DESCRIPTION
|
| Line 188... |
Line 195... |
| 188 |
descriptionFieldSet = new FieldSet();
|
195 |
FieldSet descriptionFieldSet = new FieldSet();
|
| 189 |
descriptionFieldSet.setHeading(i18nC.collectionDescriptionTitre());
|
196 |
descriptionFieldSet.setHeading(i18nC.collectionDescriptionTitre());
|
| 190 |
descriptionFieldSet.setCollapsible(true);
|
197 |
descriptionFieldSet.setCollapsible(true);
|
| Line 191... |
Line 198... |
| 191 |
descriptionFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
198 |
descriptionFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| 192 |
|
199 |
|
| 193 |
TextArea descriptionChp = new TextArea();
|
200 |
descriptionChp = new TextArea();
|
| Line 194... |
Line 201... |
| 194 |
descriptionChp.setFieldLabel(i18nC.description());
|
201 |
descriptionChp.setFieldLabel(i18nC.description());
|
| 195 |
descriptionFieldSet.add(descriptionChp, new FormData(550, 0));
|
202 |
descriptionFieldSet.add(descriptionChp, new FormData(550, 0));
|
| 196 |
|
203 |
|
| Line 197... |
Line 204... |
| 197 |
TextArea descriptionSpecialisteChp = new TextArea();
|
204 |
descriptionSpecialisteChp = new TextArea();
|
| 198 |
descriptionSpecialisteChp.setFieldLabel(i18nC.descriptionSpecialiste());
|
205 |
descriptionSpecialisteChp.setFieldLabel(i18nC.descriptionSpecialiste());
|
| Line 199... |
Line 206... |
| 199 |
descriptionFieldSet.add(descriptionSpecialisteChp, new FormData(550, 0));
|
206 |
descriptionFieldSet.add(descriptionSpecialisteChp, new FormData(550, 0));
|
| 200 |
|
207 |
|
| Line 212... |
Line 219... |
| 212 |
FieldSet couvertureFieldSet = new FieldSet();
|
219 |
FieldSet couvertureFieldSet = new FieldSet();
|
| 213 |
couvertureFieldSet.setHeading("Couvertures");
|
220 |
couvertureFieldSet.setHeading("Couvertures");
|
| 214 |
couvertureFieldSet.setCollapsible(true);
|
221 |
couvertureFieldSet.setCollapsible(true);
|
| 215 |
couvertureFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
222 |
couvertureFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| Line -... |
Line 223... |
| - |
|
223 |
|
| - |
|
224 |
groupementPrincipeCombo = new ChampComboBoxListeValeurs(i18nC.groupementPrincipeCollection(), "groupementPrincipe", tabIndex++);
|
| - |
|
225 |
groupementPrincipeCombo.setToolTip(i18nC.groupementPrincipeCollectionInfo());
|
| - |
|
226 |
couvertureFieldSet.add(groupementPrincipeCombo);
|
| - |
|
227 |
|
| 216 |
|
228 |
butRealisationCombo = new ChampComboBoxListeValeurs(i18nC.butCollection(), "realisationBut", tabIndex++);
|
| - |
|
229 |
couvertureFieldSet.add(butRealisationCombo);
|
| 217 |
lieuCouvertureChp = new TextArea();
|
230 |
|
| 218 |
lieuCouvertureChp.setFieldLabel(i18nC.lieuCouvertureCollection());
|
231 |
lieuCouvertureChp = new ChampMultiValeurs(i18nC.lieuCouvertureCollection());
|
| Line 219... |
Line 232... |
| 219 |
couvertureFieldSet.add(lieuCouvertureChp, new FormData(550, 0));
|
232 |
couvertureFieldSet.add(lieuCouvertureChp);
|
| 220 |
|
233 |
|
| Line 221... |
Line 234... |
| 221 |
this.add(couvertureFieldSet);
|
234 |
this.add(couvertureFieldSet);
|
| Line 251... |
Line 264... |
| 251 |
|
264 |
|
| 252 |
this.add(typeFieldSet);
|
265 |
this.add(typeFieldSet);
|
| Line 253... |
Line 266... |
| 253 |
}
|
266 |
}
|
| 254 |
|
267 |
|
| 255 |
public void rafraichir(Object nouvellesDonnees) {
|
268 |
public void rafraichir(Object nouvellesDonnees) {
|
| 256 |
if (nouvellesDonnees instanceof ProjetListe) {
|
269 |
if (nouvellesDonnees instanceof ProjetListe) {
|
| 257 |
ProjetListe projets = (ProjetListe) nouvellesDonnees;
|
270 |
ProjetListe projets = (ProjetListe) nouvellesDonnees;
|
| 258 |
Formulaire.rafraichirComboBox(projets, projetsCombo);
|
271 |
Formulaire.rafraichirComboBox(projets, projetsCombo);
|
| 259 |
} else if (nouvellesDonnees instanceof StructureListe) {
|
272 |
} else if (nouvellesDonnees instanceof StructureListe) {
|