Line 2... |
Line 2... |
2 |
|
2 |
|
3 |
import org.tela_botanica.client.Mediateur;
|
3 |
import org.tela_botanica.client.Mediateur;
|
4 |
import org.tela_botanica.client.composants.ChampCaseACocher;
|
4 |
import org.tela_botanica.client.composants.ChampCaseACocher;
|
5 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
5 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
- |
|
6 |
import org.tela_botanica.client.composants.ChampSliderPourcentage;
|
6 |
import org.tela_botanica.client.composants.ChampSliderPourcentage;
|
7 |
import org.tela_botanica.client.composants.ConteneurMultiChamps;
|
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
- |
|
8 |
import org.tela_botanica.client.modeles.Valeur;
|
8 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
Line 9... |
Line -... |
9 |
import org.tela_botanica.client.modeles.ValeurListe;
|
- |
|
10 |
|
9 |
import org.tela_botanica.client.modeles.ValeurListe;
|
11 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
- |
|
12 |
import com.extjs.gxt.ui.client.event.Events;
|
- |
|
13 |
import com.extjs.gxt.ui.client.event.Listener;
|
- |
|
14 |
import com.extjs.gxt.ui.client.widget.Html;
|
10 |
|
15 |
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
11 |
import com.extjs.gxt.ui.client.util.Margins;
|
16 |
import com.extjs.gxt.ui.client.widget.Text;
|
12 |
import com.extjs.gxt.ui.client.widget.Text;
|
17 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
- |
|
18 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
13 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
19 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
- |
|
20 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
- |
|
21 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
- |
|
22 |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
|
- |
|
23 |
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
|
14 |
import com.extjs.gxt.ui.client.widget.form.FieldSet;
|
24 |
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
|
- |
|
25 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
15 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
26 |
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
|
16 |
import com.extjs.gxt.ui.client.widget.layout.FormData;
|
Line 27... |
Line 17... |
27 |
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
|
17 |
import com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData;
|
Line 28... |
Line 18... |
28 |
import com.google.gwt.core.client.GWT;
|
18 |
import com.google.gwt.core.client.GWT;
|
Line 88... |
Line 78... |
88 |
periodeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
78 |
periodeFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
Line 89... |
Line 79... |
89 |
|
79 |
|
90 |
periodeConstitutionChp = new ChampCaseACocher(i18nC.periodeConstitution(), "siecleNaturaliste", false);
|
80 |
periodeConstitutionChp = new ChampCaseACocher(i18nC.periodeConstitution(), "siecleNaturaliste", false);
|
Line 91... |
Line -... |
91 |
periodeFieldSet.add(periodeConstitutionChp);
|
- |
|
92 |
|
- |
|
93 |
LayoutContainer dateDebutConteneurGeneral = new LayoutContainer();
|
81 |
periodeFieldSet.add(periodeConstitutionChp);
|
94 |
dateDebutConteneurGeneral.setLayout(new RowLayout());
|
- |
|
95 |
LabelField dateDebutLabel = new LabelField(i18nC.dateDebutCollection()+":");
|
- |
|
96 |
dateDebutConteneurGeneral.add(dateDebutLabel);
|
- |
|
- |
|
82 |
|
97 |
LayoutContainer dateDebutConteneur = new LayoutContainer();
|
83 |
ConteneurMultiChamps dateDebutConteneur = new ConteneurMultiChamps(i18nC.dateDebutCollection());
|
98 |
dateDebutConteneur.setLayout(new ColumnLayout());
|
84 |
|
- |
|
85 |
dateDebutChp = new DateField();
|
99 |
dateDebutChp = new DateField();
|
86 |
dateDebutConteneur.ajouterChamp(dateDebutChp, new HBoxLayoutData(new Margins(0, 20, 0, 0)));
|
100 |
dateDebutConteneur.add(dateDebutChp, new ColumnData(220));
|
87 |
|
101 |
dateDebutCombo = new ChampComboBoxListeValeurs(null, "dateDebut");
|
- |
|
102 |
dateDebutCombo.setTrie("id_valeur");
|
88 |
dateDebutCombo = new ChampComboBoxListeValeurs(null, "dateDebut");
|
- |
|
89 |
dateDebutCombo.setTrie("id_valeur");
|
103 |
dateDebutConteneur.add(dateDebutCombo, new ColumnData(160));
|
90 |
dateDebutConteneur.ajouterChamp(dateDebutCombo);
|
104 |
dateDebutConteneurGeneral.add(dateDebutConteneur);
|
91 |
|
105 |
periodeFieldSet.add(dateDebutConteneurGeneral);
|
- |
|
106 |
|
- |
|
107 |
LayoutContainer dateFinConteneurGeneral = new LayoutContainer();
|
92 |
periodeFieldSet.add(dateDebutConteneur);
|
108 |
dateFinConteneurGeneral.setLayout(new RowLayout());
|
- |
|
109 |
LabelField dateFinLabel = new LabelField(i18nC.dateFinCollection()+":");
|
- |
|
110 |
dateFinConteneurGeneral.add(dateFinLabel);
|
- |
|
- |
|
93 |
|
111 |
LayoutContainer dateFinConteneur = new LayoutContainer();
|
94 |
ConteneurMultiChamps dateFinConteneur = new ConteneurMultiChamps(i18nC.dateFinCollection());
|
112 |
dateFinConteneur.setLayout(new ColumnLayout());
|
95 |
|
- |
|
96 |
dateFinChp = new DateField();
|
113 |
dateFinChp = new DateField();
|
97 |
dateFinConteneur.ajouterChamp(dateFinChp, new HBoxLayoutData(new Margins(0, 20, 0, 0)));
|
114 |
dateFinConteneur.add(dateFinChp, new ColumnData(220));
|
98 |
|
115 |
dateFinCombo = new ChampComboBoxListeValeurs(null, "dateFin");
|
- |
|
116 |
dateFinCombo.setTrie("id_valeur");
|
99 |
dateFinCombo = new ChampComboBoxListeValeurs(null, "dateFin");
|
- |
|
100 |
dateFinCombo.setTrie("id_valeur");
|
117 |
dateFinConteneur.add(dateFinCombo, new ColumnData(160));
|
101 |
dateFinConteneur.ajouterChamp(dateFinCombo);
|
Line 118... |
Line 102... |
118 |
dateFinConteneurGeneral.add(dateFinConteneur);
|
102 |
|
119 |
periodeFieldSet.add(dateFinConteneurGeneral);
|
103 |
periodeFieldSet.add(dateFinConteneur);
|
Line 120... |
Line 104... |
120 |
|
104 |
|
121 |
add(periodeFieldSet);
|
105 |
add(periodeFieldSet);
|
122 |
}
|
106 |
}
|
123 |
|
107 |
|
124 |
private void creerFieldsetClassement() {
|
108 |
private void creerFieldsetClassement() {
|
125 |
FieldSet classementFieldSet = new FieldSet();
|
109 |
FieldSet classementFieldSet = new FieldSet();
|
- |
|
110 |
classementFieldSet.setHeading("Classement");
|
- |
|
111 |
classementFieldSet.setCollapsible(true);
|
- |
|
112 |
classementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
126 |
classementFieldSet.setHeading("Classement");
|
113 |
|
127 |
classementFieldSet.setCollapsible(true);
|
114 |
etatClassementCombo = new ChampComboBoxListeValeurs(i18nC.etatClassementCollection(), "etat", tabIndex++);
|
128 |
classementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
- |
|
129 |
|
115 |
classementFieldSet.add(etatClassementCombo);
|
Line 130... |
Line 116... |
130 |
annotationClassementChp = new TextArea();
|
116 |
|
131 |
annotationClassementChp.setFieldLabel(i18nC.annotationClassementCollection());
|
117 |
annotationClassementChp = new TextArea();
|
Line 132... |
Line 118... |
132 |
annotationClassementChp.setToolTip(i18nC.annotationClassementCollectionInfo());
|
118 |
annotationClassementChp.setFieldLabel(i18nC.annotationClassementCollection());
|
133 |
classementFieldSet.add(annotationClassementChp, new FormData(550, 0));
|
119 |
classementFieldSet.add(annotationClassementChp, new FormData(550, 0));
|
Line 134... |
Line 120... |
134 |
|
120 |
|