| Line 109... |
Line 109... |
| 109 |
|
109 |
|
| 110 |
FormLayout formulaireLayout = (FormLayout) this.getLayout();
|
110 |
FormLayout formulaireLayout = (FormLayout) this.getLayout();
|
| 111 |
formulaireLayout.setLabelAlign(LabelAlign.LEFT);
|
111 |
formulaireLayout.setLabelAlign(LabelAlign.LEFT);
|
| Line 112... |
Line 112... |
| 112 |
formulaireLayout.setLabelWidth(300);
|
112 |
formulaireLayout.setLabelWidth(300);
|
| - |
|
113 |
|
| - |
|
114 |
creerFieldsetTypesUniteEtat();
|
| - |
|
115 |
|
| - |
|
116 |
creerFieldsetConservation(); // Papier
|
| - |
|
117 |
|
| - |
|
118 |
creerFieldsetEtiquette(); // RAS
|
| - |
|
119 |
creerFieldsetTraitement(); // RAS
|
| 113 |
|
120 |
|
| 114 |
creerFieldsetPrecision();
|
- |
|
| 115 |
creerStorePrecision();
|
- |
|
| 116 |
creerFieldSetTypesUnite();
|
- |
|
| 117 |
creerFieldsetConservation();
|
- |
|
| 118 |
creerFieldsetEtiquette();
|
- |
|
| Line 119... |
Line 121... |
| 119 |
creerFieldsetTraitement();
|
121 |
creerFieldsetPrecision(); // A supprimer ou déplacer plus tard
|
| 120 |
creerFieldsetEtat();
|
122 |
creerStorePrecision();
|
| Line 121... |
Line 123... |
| 121 |
|
123 |
|
| 122 |
layout();
|
124 |
layout();
|
| 123 |
}
|
125 |
}
|
| 124 |
|
126 |
|
| - |
|
127 |
private void creerFieldsetPrecision() {
|
| 125 |
private void creerFieldsetPrecision() {
|
128 |
FieldSet precisionFieldSet = new FieldSet();
|
| Line 126... |
Line 129... |
| 126 |
FieldSet precisionFieldSet = new FieldSet();
|
129 |
precisionFieldSet.setHeadingHtml(i18nC.collectionTitrePrecision());
|
| 127 |
precisionFieldSet.setHeadingHtml(i18nC.collectionTitrePrecision());
|
130 |
precisionFieldSet.setCollapsible(true);
|
| 128 |
precisionFieldSet.setCollapsible(true);
|
131 |
precisionFieldSet.collapse();
|
| Line 189... |
Line 192... |
| 189 |
**/
|
192 |
**/
|
| 190 |
private NumberField creerChampNombre() {
|
193 |
private NumberField creerChampNombre() {
|
| 191 |
ChampNombre champNombre = new ChampNombre();
|
194 |
ChampNombre champNombre = new ChampNombre();
|
| 192 |
return champNombre;
|
195 |
return champNombre;
|
| 193 |
}
|
196 |
}
|
| 194 |
|
- |
|
| 195 |
private void creerFieldSetTypesUnite() {
|
- |
|
| 196 |
FieldSet typesUniteFieldSet = new FieldSet();
|
- |
|
| 197 |
typesUniteFieldSet.setHeadingHtml(i18nC.collectionUniteType());
|
- |
|
| 198 |
typesUniteFieldSet.setCollapsible(true);
|
- |
|
| 199 |
typesUniteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
- |
|
| 200 |
|
- |
|
| 201 |
etatUniteRangementCombo = new ChampComboBoxListeValeurs(i18nC.collectionUniteRangementEtatGeneral(), "etat");
|
- |
|
| 202 |
etatUniteRangementCombo.setToolTip(i18nC.collectionUniteRangementEtatGeneralInfo());
|
- |
|
| 203 |
etatUniteRangementCombo.setTrie("id_valeur");
|
- |
|
| 204 |
etatUniteRangementCombo.setWidth(300);
|
- |
|
| 205 |
typesUniteFieldSet.add(etatUniteRangementCombo);
|
- |
|
| 206 |
|
- |
|
| 207 |
typesUniteFieldSet.add(creerUniteRangement());
|
- |
|
| 208 |
typesUniteFieldSet.add(creerUniteBase());
|
- |
|
| Line 209... |
Line -... |
| 209 |
|
- |
|
| 210 |
add(typesUniteFieldSet);
|
- |
|
| 211 |
}
|
- |
|
| 212 |
|
197 |
|
| 213 |
private ContentPanel creerUniteRangement() {
|
198 |
private ContentPanel creerUniteRangement() {
|
| Line 214... |
Line 199... |
| 214 |
ContentPanel panneauGrille = creerPanneauContenantGrille(i18nC.collectionUniteRangementTitre());
|
199 |
ContentPanel panneauGrille = creerPanneauContenantGrille(i18nC.collectionUniteRangementTitre());
|
| 215 |
|
200 |
|
| Line 734... |
Line 719... |
| 734 |
|
719 |
|
| 735 |
private void creerFieldsetConservation() {
|
720 |
private void creerFieldsetConservation() {
|
| 736 |
FieldSet conservationFieldSet = new FieldSet();
|
721 |
FieldSet conservationFieldSet = new FieldSet();
|
| 737 |
conservationFieldSet.setHeadingHtml(i18nC.collectionTitreConservation());
|
722 |
conservationFieldSet.setHeadingHtml(i18nC.collectionTitreConservation());
|
| - |
|
723 |
conservationFieldSet.setCollapsible(true);
|
| 738 |
conservationFieldSet.setCollapsible(true);
|
724 |
conservationFieldSet.collapse();
|
| Line 739... |
Line 725... |
| 739 |
conservationFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
725 |
conservationFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| 740 |
|
726 |
|
| Line 749... |
Line 735... |
| 749 |
|
735 |
|
| 750 |
private void creerFieldsetEtiquette() {
|
736 |
private void creerFieldsetEtiquette() {
|
| 751 |
FieldSet etiquetteFieldSet = new FieldSet();
|
737 |
FieldSet etiquetteFieldSet = new FieldSet();
|
| 752 |
etiquetteFieldSet.setHeadingHtml(i18nC.collectionTitreEtiquette());
|
738 |
etiquetteFieldSet.setHeadingHtml(i18nC.collectionTitreEtiquette());
|
| - |
|
739 |
etiquetteFieldSet.setCollapsible(true);
|
| 753 |
etiquetteFieldSet.setCollapsible(true);
|
740 |
etiquetteFieldSet.collapse();
|
| Line 754... |
Line 741... |
| 754 |
etiquetteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
741 |
etiquetteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| 755 |
|
742 |
|
| Line 779... |
Line 766... |
| 779 |
|
766 |
|
| 780 |
private void creerFieldsetTraitement() {
|
767 |
private void creerFieldsetTraitement() {
|
| 781 |
FieldSet traitementFieldSet = new FieldSet();
|
768 |
FieldSet traitementFieldSet = new FieldSet();
|
| 782 |
traitementFieldSet.setHeadingHtml(i18nC.collectionTitreTraitement());
|
769 |
traitementFieldSet.setHeadingHtml(i18nC.collectionTitreTraitement());
|
| - |
|
770 |
traitementFieldSet.setCollapsible(true);
|
| 783 |
traitementFieldSet.setCollapsible(true);
|
771 |
traitementFieldSet.collapse();
|
| Line 784... |
Line 772... |
| 784 |
traitementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
772 |
traitementFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| 785 |
|
773 |
|
| 786 |
traitementCombo = new ChampComboBoxListeValeurs(i18nC.collectionTraitement(), "onpi");
|
774 |
traitementCombo = new ChampComboBoxListeValeurs(i18nC.collectionTraitement(), "onpi");
|
| Line 794... |
Line 782... |
| 794 |
traitementFieldSet.add(insecteTraitementChp);
|
782 |
traitementFieldSet.add(insecteTraitementChp);
|
| Line 795... |
Line 783... |
| 795 |
|
783 |
|
| 796 |
this.add(traitementFieldSet);
|
784 |
this.add(traitementFieldSet);
|
| Line 797... |
Line 785... |
| 797 |
}
|
785 |
}
|
| 798 |
|
786 |
|
| - |
|
787 |
private void creerFieldsetTypesUniteEtat() {
|
| 799 |
private void creerFieldsetEtat() {
|
788 |
FieldSet etatTypesUniteFieldSet = new FieldSet();
|
| 800 |
FieldSet etatFieldSet = new FieldSet();
|
789 |
// Etat général et nombre d'échantillons (à changer dans l'i18n
|
| - |
|
790 |
etatTypesUniteFieldSet.setHeadingHtml(i18nC.collectionEtatGeneralEtNombreEchantillons());
|
| 801 |
etatFieldSet.setHeadingHtml(i18nC.collectionTitreEtatEtDegradation());
|
791 |
etatTypesUniteFieldSet.setCollapsible(true);
|
| - |
|
792 |
etatTypesUniteFieldSet.collapse();
|
| - |
|
793 |
etatTypesUniteFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
| - |
|
794 |
|
| - |
|
795 |
etatUniteRangementCombo = new ChampComboBoxListeValeurs(i18nC.collectionUniteRangementEtatGeneral(), "etat");
|
| - |
|
796 |
etatUniteRangementCombo.setToolTip(i18nC.collectionUniteRangementEtatGeneralInfo());
|
| - |
|
797 |
etatUniteRangementCombo.setTrie("id_valeur");
|
| - |
|
798 |
etatUniteRangementCombo.setWidth(300);
|
| - |
|
799 |
etatTypesUniteFieldSet.add(etatUniteRangementCombo);
|
| - |
|
800 |
|
| - |
|
801 |
etatTypesUniteFieldSet.add(creerUniteRangement());
|
| - |
|
802 |
etatTypesUniteFieldSet.add(creerUniteBase());
|
| Line 802... |
Line 803... |
| 802 |
etatFieldSet.setCollapsible(true);
|
803 |
|
| 803 |
etatFieldSet.setLayout(Formulaire.creerFormLayout(largeurLabelDefaut, alignementLabelDefaut));
|
804 |
add(etatTypesUniteFieldSet);
|
| 804 |
|
805 |
|
| 805 |
etatGeneralCombo = new ChampComboBoxListeValeurs(i18nC.collectionEtatGeneral(), "etat");
|
806 |
etatGeneralCombo = new ChampComboBoxListeValeurs(i18nC.collectionEtatGeneral(), "etat");
|
| Line 806... |
Line 807... |
| 806 |
etatGeneralCombo.setToolTip(i18nC.collectionEtatGeneralInfo());
|
807 |
etatGeneralCombo.setToolTip(i18nC.collectionEtatGeneralInfo());
|
| 807 |
etatGeneralCombo.setTrie("id_valeur");
|
808 |
etatGeneralCombo.setTrie("id_valeur");
|
| 808 |
etatFieldSet.add(etatGeneralCombo, new FormData(300, 0));
|
809 |
etatTypesUniteFieldSet.add(etatGeneralCombo, new FormData(300, 0));
|
| 809 |
|
810 |
|
| Line 810... |
Line 811... |
| 810 |
specimenDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationSpecimen(), 150, true);
|
811 |
specimenDegradationChp = new ChampMultiValeursMultiTypes(i18nC.degradationSpecimen(), 150, true);
|
| 811 |
specimenDegradationChp.initialiserType("specimenDegradation");
|
812 |
specimenDegradationChp.initialiserType("specimenDegradation");
|
| 812 |
specimenDegradationChp.initialiserCombobox("niveauImportance");
|
813 |
specimenDegradationChp.initialiserCombobox("niveauImportance");
|
| Line 831... |
Line 832... |
| 831 |
labelPresentationDegradationChp.setText("");
|
832 |
labelPresentationDegradationChp.setText("");
|
| 832 |
labelPresentationDegradationChp.setVisible(false);
|
833 |
labelPresentationDegradationChp.setVisible(false);
|
| 833 |
}
|
834 |
}
|
| 834 |
}
|
835 |
}
|
| 835 |
});
|
836 |
});
|
| 836 |
etatFieldSet.add(presentationDegradationChp);
|
837 |
etatTypesUniteFieldSet.add(presentationDegradationChp);
|
| 837 |
etatFieldSet.add(labelPresentationDegradationChp);
|
838 |
etatTypesUniteFieldSet.add(labelPresentationDegradationChp);
|
| Line 838... |
Line 839... |
| 838 |
|
839 |
|
| 839 |
determinationCombo = new ChampComboBoxListeValeurs(i18nC.collectionDetermination(), "niveauDetermination");
|
840 |
determinationCombo = new ChampComboBoxListeValeurs(i18nC.collectionDetermination(), "niveauDetermination");
|
| 840 |
determinationCombo.setTrie("id_valeur");
|
841 |
determinationCombo.setTrie("id_valeur");
|
| Line 841... |
Line 842... |
| 841 |
etatFieldSet.add(determinationCombo, new FormData(450, 0));
|
842 |
etatTypesUniteFieldSet.add(determinationCombo, new FormData(450, 0));
|
| 842 |
|
843 |
|
| Line 843... |
Line 844... |
| 843 |
this.add(etatFieldSet);
|
844 |
this.add(etatTypesUniteFieldSet);
|
| 844 |
}
|
845 |
}
|
| 845 |
|
846 |
|