52,6 → 52,7 |
import org.tela_botanica.client.util.UtilArray; |
import org.tela_botanica.client.vues.ContenuVue; |
import org.tela_botanica.client.vues.EnteteVue; |
import org.tela_botanica.client.vues.FenetreForm; |
import org.tela_botanica.client.vues.Formulaire; |
import org.tela_botanica.client.vues.FenetreJournal; |
import org.tela_botanica.client.vues.NavigationVue; |
516,12 → 517,17 |
// GESTION des PROJETS |
//+----------------------------------------------------------------------------------------------------------------+ |
|
public void afficherFormProjet(String projetId) { |
panneauCentre.removeAll(); |
ProjetForm projetForm = new ProjetForm(this, projetId); |
panneauCentre.add(projetForm); |
|
panneauCentre.layout(); |
public void afficherFormProjet(String projetId) { |
final FenetreForm fenetre = new FenetreForm(""); |
ProjetForm projetForm = new ProjetForm(this, projetId) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
projetForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(projetForm); |
fenetre.show(); |
} |
|
public void afficherListeProjets(ProjetListe projetsACharger) { |
700,10 → 706,17 |
mode = Formulaire.MODE_MODIFIER; |
} |
|
panneauCentre.removeAll(); |
final FenetreForm fenetre = new FenetreForm(""); |
Sequenceur sequenceur = new Sequenceur(); |
StructureForm structureForm = new StructureForm(this, mode, sequenceur); |
panneauCentre.add(structureForm); |
StructureForm structureForm = new StructureForm(this, mode, sequenceur) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
structureForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(structureForm); |
fenetre.show(); |
|
if (mode.equals(Formulaire.MODE_MODIFIER)) { |
selectionnerStructure(structureForm, structureId, sequenceur); |
950,11 → 963,16 |
} |
|
public void afficherFormCollection(String collectionId) { |
panneauCentre.removeAll(); |
CollectionForm collectionForm = new CollectionForm(this, collectionId); |
panneauCentre.add(collectionForm); |
|
panneauCentre.layout(); |
final FenetreForm fenetre = new FenetreForm(""); |
CollectionForm collectionForm = new CollectionForm(this, collectionId) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
collectionForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(collectionForm); |
fenetre.show(); |
} |
|
public void clicListeCollection(Collection collectionCliquee) { |
1269,12 → 1287,17 |
panneauCentre.getContenu().rafraichir(personnesACharger); |
} |
|
public void afficherFormPersonne(String personneId) { |
panneauCentre.removeAll(); |
PersonneForm personneForm = new PersonneForm(this, personneId); |
panneauCentre.add(personneForm); |
|
panneauCentre.layout(); |
public void afficherFormPersonne(String personneId) { |
final FenetreForm fenetre = new FenetreForm(""); |
PersonneForm personneForm = new PersonneForm(this, personneId) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
personneForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(personneForm); |
fenetre.show(); |
} |
|
public void clicListePersonne(Personne personne) { |
1448,11 → 1471,16 |
} |
|
public void afficherFormPublication(String publicationId) { |
panneauCentre.removeAll(); |
PublicationForm publicationForm = new PublicationForm(this, publicationId); |
panneauCentre.add(publicationForm); |
|
panneauCentre.layout(); |
final FenetreForm fenetre = new FenetreForm(""); |
PublicationForm publicationForm = new PublicationForm(this, publicationId) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
publicationForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(publicationForm); |
fenetre.show(); |
} |
|
public void clicListePublication(Publication publication) { |
1713,11 → 1741,16 |
} |
|
public void afficherFormCommentaire(String commentaireId) { |
panneauCentre.removeAll(); |
CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId); |
panneauCentre.add(commentaireForm); |
|
panneauCentre.layout(); |
final FenetreForm fenetre = new FenetreForm(""); |
CommentaireForm commentaireForm = new CommentaireForm(this, commentaireId) { |
@Override |
public void surFermetureFormulaire() { |
fenetre.hide(); |
} |
}; |
commentaireForm.vueExterneARafraichirApresValidation = panneauCentre.getContenu(); |
fenetre.add(commentaireForm); |
fenetre.show(); |
} |
|
public void clicListeCommentaire(Commentaire commentaire) { |