Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1093 → Rev 1094

/trunk/src/org/tela_botanica/client/vues/projet/ProjetForm.java
97,7 → 97,7
initialiserFormulaire(mediateurCourant, modeDeCreation, MenuApplicationId.PROJET);
panneauFormulaire.setLayout(new FlowLayout());
actualiserTitreFormulaire();
genererTitreFormulaire();
creerZoneGeneralites();
panneauFormulaire.add(generalitesFieldset);
119,10 → 119,13
mediateur.obtenirListeValeurEtRafraichir(this, listeLanguesId);
}
private void actualiserTitreFormulaire() {
private void genererTitreFormulaire() {
String titre = i18nC.projetTitreFormAjout();
if (mode.equals(Formulaire.MODE_MODIFIER)) {
titre = i18nC.projetTitreFormModif()+" - "+i18nC.id()+": "+projet.getId();
titre = i18nC.projetTitreFormModif();
if (projet != null) {
titre += " - "+i18nC.id()+": "+projet.getId();
}
}
panneauFormulaire.setHeading(titre);
}
292,12 → 295,14
projet = (Projet) info.getDonnee(0);
}
peuplerFormulaire();
actualiserTitreFormulaire();
genererTitreFormulaire();
} else if (type.equals("ajout_projet") ) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
projetValideOk = true;
String projetId = (String) info.getDonnee(0);
projet.setId(projetId);
projetValideOk = true;
if (vueExterneARafraichirApresValidation != null) {
projet.setId(projetId);
}
}
}
307,10 → 312,12
} else if (type.equals("modif_projet")) {
Info.display(i18nC.projetTitreFormModif(), info.toString());
} else if (type.equals("ajout_projet")) {
if (!UtilString.isEmpty(projet.getId())) {
info.setMessage("Le projet '"+projet.getId()+"' a bien été ajouté");
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
String projetId = (String) info.getDonnee(0);
Info.display(i18nC.projetTitreFormAjout(), "Le projet '"+projetId+"' a bien été ajouté");
} else {
Info.display(i18nC.projetTitreFormAjout(), info.toString());
}
Info.display(i18nC.projetTitreFormAjout(), info.toString());
}
}