| Line 5... |
Line 5... |
| 5 |
|
5 |
|
| 6 |
import org.tela_botanica.client.ComposantClass;
|
6 |
import org.tela_botanica.client.ComposantClass;
|
| 7 |
import org.tela_botanica.client.Mediateur;
|
7 |
import org.tela_botanica.client.Mediateur;
|
| 8 |
import org.tela_botanica.client.RegistreId;
|
8 |
import org.tela_botanica.client.RegistreId;
|
| - |
|
9 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
| 9 |
import org.tela_botanica.client.composants.ChampComboBoxListeValeurs;
|
10 |
import org.tela_botanica.client.composants.InfoLogger;
|
| 10 |
import org.tela_botanica.client.configuration.Configuration;
|
11 |
import org.tela_botanica.client.configuration.Configuration;
|
| 11 |
import org.tela_botanica.client.i18n.Constantes;
|
12 |
import org.tela_botanica.client.i18n.Constantes;
|
| 12 |
import org.tela_botanica.client.i18n.ErrorMessages;
|
13 |
import org.tela_botanica.client.i18n.ErrorMessages;
|
| 13 |
import org.tela_botanica.client.images.Images;
|
14 |
import org.tela_botanica.client.images.Images;
|
| Line 109... |
Line 110... |
| 109 |
@Override
|
110 |
@Override
|
| 110 |
public void componentSelected(ButtonEvent ce) {
|
111 |
public void componentSelected(ButtonEvent ce) {
|
| 111 |
String code = ((Button) ce.getComponent()).getData("code");
|
112 |
String code = ((Button) ce.getComponent()).getData("code");
|
| 112 |
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
|
113 |
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) {
|
| 113 |
if (mediateur.getUtilisateur().isIdentifie()) {
|
114 |
if (mediateur.getUtilisateur().isIdentifie()) {
|
| - |
|
115 |
clicBoutonvalidation = true;
|
| 114 |
soumettreFormulaire();
|
116 |
soumettreFormulaire();
|
| 115 |
clicBoutonvalidation = true;
|
- |
|
| - |
|
117 |
|
| 116 |
} else {
|
118 |
} else {
|
| 117 |
Info.display(i18nC.modeAnonyme(), i18nC.identificationNecessaire());
|
119 |
InfoLogger.display(i18nC.modeAnonyme(), i18nC.identificationNecessaire());
|
| 118 |
}
|
120 |
}
|
| 119 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
|
121 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_APPLIQUER)) {
|
| 120 |
if (mediateur.getUtilisateur().isIdentifie()) {
|
122 |
if (mediateur.getUtilisateur().isIdentifie()) {
|
| 121 |
soumettreFormulaire();
|
123 |
soumettreFormulaire();
|
| 122 |
} else {
|
124 |
} else {
|
| 123 |
Info.display(i18nC.modeAnonyme(), i18nC.identificationNecessaire());
|
125 |
InfoLogger.display(i18nC.modeAnonyme(), i18nC.identificationNecessaire());
|
| 124 |
}
|
126 |
}
|
| 125 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
|
127 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_ANNULER)) {
|
| 126 |
mediateur.clicMenu(menuIdCourant);
|
128 |
mediateur.clicMenu(menuIdCourant);
|
| 127 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
|
129 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) {
|
| 128 |
reinitialiserFormulaire();
|
130 |
reinitialiserFormulaire();
|
| Line 145... |
Line 147... |
| 145 |
onglet.setText(nom);
|
147 |
onglet.setText(nom);
|
| 146 |
FormulaireOnglet.parametrer(onglet);
|
148 |
FormulaireOnglet.parametrer(onglet);
|
| 147 |
return onglet;
|
149 |
return onglet;
|
| 148 |
}
|
150 |
}
|
| Line 149... |
Line 151... |
| 149 |
|
151 |
|
| 150 |
public void controlerFermetureApresRafraichissement() {
|
- |
|
| 151 |
// Si le bouton Valider a été cliqué, nous affichons la liste des structures
|
152 |
public void controlerFermeture() {
|
| 152 |
if (clicBoutonvalidation) {
|
153 |
if (clicBoutonvalidation) {
|
| 153 |
fermerFormulaire();
|
154 |
fermerFormulaire();
|
| 154 |
}
|
155 |
}
|
| Line 155... |
Line 156... |
| 155 |
}
|
156 |
}
|
| 156 |
|
157 |
|
| 157 |
public void fermerFormulaire() {
|
158 |
public void fermerFormulaire() {
|