| Line 6... |
Line 6... |
| 6 |
import org.tela_botanica.client.ComposantId;
|
6 |
import org.tela_botanica.client.ComposantId;
|
| 7 |
import org.tela_botanica.client.Mediateur;
|
7 |
import org.tela_botanica.client.Mediateur;
|
| 8 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
8 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 9 |
import org.tela_botanica.client.modeles.Information;
|
9 |
import org.tela_botanica.client.modeles.Information;
|
| 10 |
import org.tela_botanica.client.modeles.ValeurListe;
|
10 |
import org.tela_botanica.client.modeles.ValeurListe;
|
| 11 |
import org.tela_botanica.client.modeles.projet.ProjetListe;
|
- |
|
| 12 |
import org.tela_botanica.client.modeles.structure.Structure;
|
11 |
import org.tela_botanica.client.modeles.structure.Structure;
|
| 13 |
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
|
12 |
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
|
| 14 |
import org.tela_botanica.client.modeles.structure.StructureAPersonneListe;
|
13 |
import org.tela_botanica.client.modeles.structure.StructureAPersonneListe;
|
| 15 |
import org.tela_botanica.client.modeles.structure.StructureConservation;
|
14 |
import org.tela_botanica.client.modeles.structure.StructureConservation;
|
| 16 |
import org.tela_botanica.client.modeles.structure.StructureValorisation;
|
15 |
import org.tela_botanica.client.modeles.structure.StructureValorisation;
|
| Line 143... |
Line 142... |
| 143 |
|
142 |
|
| 144 |
enteteParams.set("nom", structure.getNom());
|
143 |
enteteParams.set("nom", structure.getNom());
|
| 145 |
enteteParams.set("ville", structure.getVille());
|
144 |
enteteParams.set("ville", structure.getVille());
|
| 146 |
enteteParams.set("id", structure.getId());
|
145 |
enteteParams.set("id", structure.getId());
|
| 147 |
enteteParams.set("guid", structure.getGuid());
|
- |
|
| Line 148... |
Line 146... |
| 148 |
enteteParams.set("projet", construireTxtProjet(structure.getIdProjet()));
|
146 |
enteteParams.set("guid", structure.getGuid());
|
| 149 |
|
147 |
|
| 150 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|
148 |
String eHtml = Format.substitute(enteteTpl, enteteParams);
|
| Line 459... |
Line 457... |
| 459 |
|
457 |
|
| 460 |
private void initialiserEnteteTpl() {
|
458 |
private void initialiserEnteteTpl() {
|
| 461 |
enteteTpl =
|
459 |
enteteTpl =
|
| 462 |
"<div id='{css_id}'>"+
|
460 |
"<div id='{css_id}'>"+
|
| 463 |
" <h1>{nom}</h1>"+
|
461 |
" <h1>{nom}</h1>"+
|
| 464 |
" <h2>{ville}<span class='{css_meta}'>{projet} <br /> {i18n_id}:{id} - {guid}</span></h2>" +
|
462 |
" <h2>{ville}<span class='{css_meta}'> <br /> {i18n_id}:{id} - {guid}</span></h2>" +
|
| 465 |
" " +
|
463 |
" " +
|
| 466 |
"</div>";
|
464 |
"</div>";
|
| Line 467... |
Line 465... |
| 467 |
}
|
465 |
}
|
| Line 632... |
Line 630... |
| 632 |
public void rafraichir(Object nouvellesDonnees) {
|
630 |
public void rafraichir(Object nouvellesDonnees) {
|
| Line 633... |
Line 631... |
| 633 |
|
631 |
|
| 634 |
if (nouvellesDonnees instanceof Structure) {
|
632 |
if (nouvellesDonnees instanceof Structure) {
|
| 635 |
structure = (Structure) nouvellesDonnees;
|
633 |
structure = (Structure) nouvellesDonnees;
|
| 636 |
structureChargementOk = true;
|
- |
|
| 637 |
} else if (nouvellesDonnees instanceof ProjetListe) {
|
- |
|
| 638 |
projets = (ProjetListe) nouvellesDonnees;
|
- |
|
| 639 |
projetsChargementOk = true;
|
634 |
structureChargementOk = true;
|
| 640 |
} else if (nouvellesDonnees instanceof ValeurListe) {
|
635 |
} else if (nouvellesDonnees instanceof ValeurListe) {
|
| 641 |
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
|
636 |
ValeurListe listeValeursReceptionnee = (ValeurListe) nouvellesDonnees;
|
| 642 |
receptionerListeValeurs(listeValeursReceptionnee);
|
637 |
receptionerListeValeurs(listeValeursReceptionnee);
|
| 643 |
} else if (nouvellesDonnees instanceof Information) {
|
638 |
} else if (nouvellesDonnees instanceof Information) {
|
| Line 660... |
Line 655... |
| 660 |
structure.setPersonnel(personnel);
|
655 |
structure.setPersonnel(personnel);
|
| 661 |
}
|
656 |
}
|
| Line 662... |
Line 657... |
| 662 |
|
657 |
|
| 663 |
private boolean avoirDonneesChargees() {
|
658 |
private boolean avoirDonneesChargees() {
|
| 664 |
boolean ok = false;
|
659 |
boolean ok = false;
|
| 665 |
if (projetsChargementOk && structureChargementOk && personnelChargementOk && ontologieChargementOk) {
|
660 |
if (structureChargementOk && personnelChargementOk && ontologieChargementOk) {
|
| 666 |
ok = true;
|
661 |
ok = true;
|
| 667 |
}
|
662 |
}
|
| 668 |
return ok;
|
663 |
return ok;
|
| 669 |
}
|
664 |
}
|