Line 22... |
Line 22... |
22 |
import org.tela_botanica.client.modeles.commentaire.Commentaire;
|
22 |
import org.tela_botanica.client.modeles.commentaire.Commentaire;
|
23 |
import org.tela_botanica.client.modeles.personne.Personne;
|
23 |
import org.tela_botanica.client.modeles.personne.Personne;
|
24 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
24 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
25 |
import org.tela_botanica.client.modeles.publication.Publication;
|
25 |
import org.tela_botanica.client.modeles.publication.Publication;
|
26 |
import org.tela_botanica.client.modeles.structure.Structure;
|
26 |
import org.tela_botanica.client.modeles.structure.Structure;
|
- |
|
27 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
27 |
import org.tela_botanica.client.util.Debug;
|
28 |
import org.tela_botanica.client.util.Debug;
|
28 |
import org.tela_botanica.client.util.UtilNombre;
|
29 |
import org.tela_botanica.client.util.UtilNombre;
|
29 |
import org.tela_botanica.client.util.UtilString;
|
30 |
import org.tela_botanica.client.util.UtilString;
|
30 |
import org.tela_botanica.client.vues.DetailVue;
|
31 |
import org.tela_botanica.client.vues.DetailVue;
|
Line 76... |
Line 77... |
76 |
private String tableauUniteRangementTpl;
|
77 |
private String tableauUniteRangementTpl;
|
77 |
private String ligneUniteRangementTpl;
|
78 |
private String ligneUniteRangementTpl;
|
78 |
private String tableauUniteBaseTpl;
|
79 |
private String tableauUniteBaseTpl;
|
79 |
private String ligneUniteBaseTpl;
|
80 |
private String ligneUniteBaseTpl;
|
Line -... |
Line 81... |
- |
|
81 |
|
Line 80... |
Line 82... |
80 |
|
82 |
private Sequenceur sequenceur;
|
81 |
|
83 |
|
- |
|
84 |
public CollectionDetailVue(Mediateur mediateurCourant, Sequenceur sequenceur) {
|
82 |
public CollectionDetailVue(Mediateur mediateurCourant) {
|
85 |
super(mediateurCourant);
|
83 |
super(mediateurCourant);
|
86 |
this.sequenceur = sequenceur;
|
Line 84... |
Line 87... |
84 |
initialiserTousLesTpl();
|
87 |
initialiserTousLesTpl();
|
85 |
chargerOntologie();
|
88 |
chargerOntologie();
|
Line 502... |
Line 505... |
502 |
"typeUniteRangement", "etat", "typeUniteBase", "typePapier", "methodeRangement", "methodeFixation",
|
505 |
"typeUniteRangement", "etat", "typeUniteBase", "typePapier", "methodeRangement", "methodeFixation",
|
503 |
"methodeFixationSurSpecimen", "typeEcriture", "poisonTraitement", "insecteTraitement", "specimenDegradation",
|
506 |
"methodeFixationSurSpecimen", "typeEcriture", "poisonTraitement", "insecteTraitement", "specimenDegradation",
|
504 |
"niveauImportance", "supportDegradation", "niveauDetermination", "natureVegetale", "siecleNaturaliste",
|
507 |
"niveauImportance", "supportDegradation", "niveauDetermination", "natureVegetale", "siecleNaturaliste",
|
505 |
"dateDebut", "dateFin", "etat", "onep", "onp", "inventaireForme", "inventaireLogiciel", "inventaireEtat",
|
508 |
"dateDebut", "dateFin", "etat", "onep", "onp", "inventaireForme", "inventaireLogiciel", "inventaireEtat",
|
506 |
"etatClassement", "typeCommentaireCollection"};
|
509 |
"etatClassement", "typeCommentaireCollection"};
|
507 |
lancerChargementListesValeurs(listesCodes);
|
510 |
lancerChargementListesValeurs(listesCodes, sequenceur);
|
- |
|
511 |
sequenceur.empilerRafraichissement(this, new Information("ontologie_chargee"));
|
508 |
}
|
512 |
}
|
Line 509... |
Line 513... |
509 |
|
513 |
|
510 |
public void rafraichir(Object nouvellesDonnees) {
|
514 |
public void rafraichir(Object nouvellesDonnees) {
|
511 |
if (nouvellesDonnees instanceof Collection) {
|
515 |
if (nouvellesDonnees instanceof Collection) {
|
Line 523... |
Line 527... |
523 |
lierCollectionAPersonne((CollectionAPersonneListe) info.getDonnee(0));
|
527 |
lierCollectionAPersonne((CollectionAPersonneListe) info.getDonnee(0));
|
524 |
} else if (info.getType().equals("liste_collection_a_publication")) {
|
528 |
} else if (info.getType().equals("liste_collection_a_publication")) {
|
525 |
lierCollectionAPublication((CollectionAPublicationListe) info.getDonnee(0));
|
529 |
lierCollectionAPublication((CollectionAPublicationListe) info.getDonnee(0));
|
526 |
} else if (info.getType().equals("liste_collection_a_commentaire")) {
|
530 |
} else if (info.getType().equals("liste_collection_a_commentaire")) {
|
527 |
lierCollectionACommentaire((CollectionACommentaireListe) info.getDonnee(0));
|
531 |
lierCollectionACommentaire((CollectionACommentaireListe) info.getDonnee(0));
|
- |
|
532 |
} else if (info.getType().equals("ontologie_chargee")) {
|
- |
|
533 |
ontologieChargementOk = true;
|
528 |
}
|
534 |
}
|
529 |
} else {
|
535 |
} else {
|
530 |
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
|
536 |
Debug.log(Mediateur.i18nM.erreurRafraichir(nouvellesDonnees.getClass(), this.getClass()));
|
531 |
}
|
537 |
}
|