| Line 19... |
Line 19... |
| 19 |
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
|
19 |
import org.tela_botanica.client.modeles.collection.CollectionBotanique;
|
| 20 |
import org.tela_botanica.client.modeles.collection.UniteBase;
|
20 |
import org.tela_botanica.client.modeles.collection.UniteBase;
|
| 21 |
import org.tela_botanica.client.modeles.collection.UniteRangement;
|
21 |
import org.tela_botanica.client.modeles.collection.UniteRangement;
|
| 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;
|
- |
|
| 25 |
import org.tela_botanica.client.modeles.publication.Publication;
|
24 |
import org.tela_botanica.client.modeles.publication.Publication;
|
| 26 |
import org.tela_botanica.client.modeles.structure.Structure;
|
25 |
import org.tela_botanica.client.modeles.structure.Structure;
|
| 27 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
26 |
import org.tela_botanica.client.synchronisation.Sequenceur;
|
| 28 |
import org.tela_botanica.client.util.Debug;
|
27 |
import org.tela_botanica.client.util.Debug;
|
| 29 |
import org.tela_botanica.client.util.UtilNombre;
|
28 |
import org.tela_botanica.client.util.UtilNombre;
|
| Line 162... |
Line 161... |
| 162 |
|
161 |
|
| 163 |
private void initialiserEnteteHtmlTpl() {
|
162 |
private void initialiserEnteteHtmlTpl() {
|
| 164 |
enteteTpl =
|
163 |
enteteTpl =
|
| 165 |
"<div id='{css_id}'>"+
|
164 |
"<div id='{css_id}'>"+
|
| 166 |
" <h1>{nom}</h1>"+
|
165 |
" <h1>{nom}</h1>"+
|
| 167 |
" <h2>{structure}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
|
166 |
" <h2>{structure}<span class='{css_meta}'><br /> {i18n_id}:{id} - {guid}</span></h2>" +
|
| 168 |
"</div>";
|
167 |
"</div>";
|
| Line 169... |
Line 168... |
| 169 |
}
|
168 |
}
|
| 170 |
|
169 |
|
| Line 513... |
Line 512... |
| 513 |
|
512 |
|
| 514 |
public void rafraichir(Object nouvellesDonnees) {
|
513 |
public void rafraichir(Object nouvellesDonnees) {
|
| 515 |
if (nouvellesDonnees instanceof Collection) {
|
514 |
if (nouvellesDonnees instanceof Collection) {
|
| 516 |
collection = (Collection) nouvellesDonnees;
|
515 |
collection = (Collection) nouvellesDonnees;
|
| 517 |
collectionChargementOk = true;
|
- |
|
| 518 |
} else if (nouvellesDonnees instanceof ProjetListe) {
|
- |
|
| 519 |
projets = (ProjetListe) nouvellesDonnees;
|
- |
|
| 520 |
projetsChargementOk = true;
|
516 |
collectionChargementOk = true;
|
| 521 |
} else if (nouvellesDonnees instanceof ValeurListe) {
|
517 |
} else if (nouvellesDonnees instanceof ValeurListe) {
|
| 522 |
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
|
518 |
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
|
| 523 |
receptionerListeValeurs(listeValeursReceptionnee);
|
519 |
receptionerListeValeurs(listeValeursReceptionnee);
|
| 524 |
} else if (nouvellesDonnees instanceof Information) {
|
520 |
} else if (nouvellesDonnees instanceof Information) {
|
| Line 556... |
Line 552... |
| 556 |
commentairesLieesChargementOk = true;
|
552 |
commentairesLieesChargementOk = true;
|
| 557 |
}
|
553 |
}
|
| Line 558... |
Line 554... |
| 558 |
|
554 |
|
| 559 |
private boolean avoirDonneesChargees() {
|
555 |
private boolean avoirDonneesChargees() {
|
| 560 |
boolean ok = false;
|
556 |
boolean ok = false;
|
| 561 |
if (projetsChargementOk && collectionChargementOk && ontologieChargementOk && personnesLieesChargementOk && publicationsLieesChargementOk && commentairesLieesChargementOk) {
|
557 |
if (collectionChargementOk && ontologieChargementOk && personnesLieesChargementOk && publicationsLieesChargementOk && commentairesLieesChargementOk) {
|
| 562 |
ok = true;
|
558 |
ok = true;
|
| 563 |
}
|
559 |
}
|
| 564 |
return ok;
|
560 |
return ok;
|
| Line 587... |
Line 583... |
| 587 |
|
583 |
|
| 588 |
enteteParams.set("nom", collection.getNom());
|
584 |
enteteParams.set("nom", collection.getNom());
|
| 589 |
enteteParams.set("structure", collection.getStructureNom());
|
585 |
enteteParams.set("structure", collection.getStructureNom());
|
| 590 |
enteteParams.set("id", collection.getId());
|
586 |
enteteParams.set("id", collection.getId());
|
| 591 |
enteteParams.set("guid", collection.getGuid());
|
- |
|
| Line 592... |
Line 587... |
| 592 |
enteteParams.set("projet", construireTxtProjet(collection.getIdProjet()));
|
587 |
enteteParams.set("guid", collection.getGuid());
|
| 593 |
|
588 |
|
| 594 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|
589 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|