Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1097 → Rev 1098

/trunk/src/org/tela_botanica/client/vues/collection/CollectionForm.java
57,8 → 57,7
String modeDeCreation = (UtilString.isEmpty(collection.getId()) ? Formulaire.MODE_AJOUTER : Formulaire.MODE_MODIFIER);
initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COLLECTION);
String titre = genererTitreFormulaire();
panneauFormulaire.setHeading(titre);
genererTitreFormulaire();
creerOnglets();
creerFieldsetPrincipal();
71,12 → 70,15
}
}
private String genererTitreFormulaire() {
private void genererTitreFormulaire() {
String titre = i18nC.collectionTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.collectionTitreFormModif()+" - "+i18nC.id()+": "+collection.getId();
titre = i18nC.collectionTitreFormModif();
if (collection != null) {
titre += " - "+i18nC.id()+": "+collection.getId();
}
}
return titre;
panneauFormulaire.setHeading(titre);
}
private void creerFieldsetPrincipal() {
263,7 → 265,7
collection = (Collection) info.getDonnee(0);
}
peupler();
actualiserTitrePanneau();
genererTitreFormulaire();
} else if (info.getType().equals("ajout_collection")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String collectionId = (String) info.getDonnee(0);
272,6 → 274,7
// Suite à la récupération de l'id de l'institution nouvellement ajoutée nous ajoutons les personnes et les publications liées
personneOnglet.rafraichir(info);
publicationOnglet.rafraichir(info);
commentaireOnglet.rafraichir(info);
} else {
Info.display("Ajout d'une collection", info.toString());
}
301,13 → 304,6
commentaireOnglet.peupler();
}
 
private void actualiserTitrePanneau() {
String titre = i18nC.titreModifFormCollection();
// Composition du titre
titre += " - "+i18nC.id()+" : "+collection.getId();
panneauFormulaire.setHeading(titre);
}
 
public boolean soumettreFormulaire() {
// Vérification de la validité des champs du formulaire
boolean formulaireValide = verifierFormulaire();