111,15 → 111,10 |
@Override |
public void componentSelected(ButtonEvent ce) { |
|
Debug.log("<$$$> BEGIN Formulaire.creerEcouteurValidation.componentSelected(ButtonEvent ce)"); |
|
String code = ((Button) ce.getComponent()).getData("code"); |
if (code.equals(FormulaireBarreValidation.CODE_BOUTON_VALIDER)) { |
if (mediateur.getUtilisateur().isIdentifie()) { |
Debug.log("<$$$> Formulaire.creerEcouteurValidation.componentSelected(ButtonEvent ce), clicBoutonvalidation = true;"); |
clicBoutonvalidation = true; |
|
Debug.log("<$$$> Formulaire.creerEcouteurValidation.componentSelected(ButtonEvent ce), appel à soumettreFormulaire()"); |
soumettreFormulaire(); |
|
} else { |
136,8 → 131,6 |
} else if (code.equals(FormulaireBarreValidation.CODE_BOUTON_REINITIALISER)) { |
reinitialiserFormulaire(); |
} |
|
Debug.log("<$$$> END CollectionForm.Formulaire.creerEcouteurValidation.componentSelected(ButtonEvent ce)"); |
} |
}; |
|
158,25 → 151,17 |
return onglet; |
} |
|
public void controlerFermeture() { |
Debug.log("<$$$> BEGIN Formulaire.controlerFermeture()"); |
public void controlerFermeture() { |
// Si le bouton Valider a été cliqué, nous affichons la liste des structures |
if (clicBoutonvalidation) { |
fermerFormulaire(); |
} |
else Debug.log("<$$$> clicBoutonvalidation==false"); |
Debug.log("<$$$> END Formulaire.controlerFermeture()"); |
} |
} |
|
public void fermerFormulaire() { |
|
Debug.log("<$$$> BEGIN Formulaire.fermerFormulaire()"); |
|
clicBoutonvalidation = false; |
panneauFormulaire.setEnabled(false); |
mediateur.clicMenu(menuIdCourant); |
|
Debug.log("<$$$> END Formulaire.fermerFormulaire()"); |
mediateur.clicMenu(menuIdCourant); |
} |
|
/** Méthode simplifiant la création de FormLayout. |