Line 3... |
Line 3... |
3 |
import org.tela_botanica.client.ComposantClass;
|
3 |
import org.tela_botanica.client.ComposantClass;
|
4 |
import org.tela_botanica.client.ComposantId;
|
4 |
import org.tela_botanica.client.ComposantId;
|
5 |
import org.tela_botanica.client.Mediateur;
|
5 |
import org.tela_botanica.client.Mediateur;
|
6 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
6 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
7 |
import org.tela_botanica.client.modeles.Collection;
|
7 |
import org.tela_botanica.client.modeles.Collection;
|
- |
|
8 |
import org.tela_botanica.client.modeles.CollectionBotanique;
|
8 |
import org.tela_botanica.client.modeles.ProjetListe;
|
9 |
import org.tela_botanica.client.modeles.ProjetListe;
|
9 |
import org.tela_botanica.client.modeles.Structure;
|
10 |
import org.tela_botanica.client.modeles.Structure;
|
10 |
import org.tela_botanica.client.modeles.ValeurListe;
|
11 |
import org.tela_botanica.client.modeles.ValeurListe;
|
Line 11... |
Line 12... |
11 |
|
12 |
|
Line 24... |
Line 25... |
24 |
|
25 |
|
Line 25... |
Line 26... |
25 |
private Structure structure = null;
|
26 |
private Structure structure = null;
|
26 |
|
27 |
|
- |
|
28 |
private String enteteTpl = null;
|
- |
|
29 |
private String generalTpl = null;
|
- |
|
30 |
private String auteurTpl = null;
|
- |
|
31 |
private String descriptionTpl = null;
|
- |
|
32 |
private String contenuTpl = null;
|
Line 27... |
Line 33... |
27 |
private String enteteTpl = null;
|
33 |
private String documentTpl = null;
|
Line 28... |
Line 34... |
28 |
private String generalTpl = null;
|
34 |
private String inventaireTpl = null;
|
29 |
|
35 |
|
30 |
private Collection collection = null;
|
36 |
private Collection collection = null;
|
31 |
|
37 |
|
- |
|
38 |
private ContentPanel panneauPrincipal = null;
|
- |
|
39 |
private Html entete = null;
|
- |
|
40 |
private TabPanel onglets = null;
|
- |
|
41 |
private TabItem generalOnglet = null;
|
- |
|
42 |
private TabItem auteurOnglet = null;
|
Line 32... |
Line 43... |
32 |
private ContentPanel panneauPrincipal = null;
|
43 |
private TabItem descriptionOnglet = null;
|
33 |
private Html entete = null;
|
44 |
private TabItem contenuOnglet = null;
|
34 |
private TabPanel onglets = null;
|
45 |
private TabItem documentOnglet = null;
|
35 |
private TabItem generalOnglet = null;
|
46 |
private TabItem inventaireOnglet = null;
|
Line 56... |
Line 67... |
56 |
generalOnglet = new TabItem(i18nC.structureInfoGeneral());
|
67 |
generalOnglet = new TabItem(i18nC.structureInfoGeneral());
|
57 |
generalOnglet.setLayout(new AnchorLayout());
|
68 |
generalOnglet.setLayout(new AnchorLayout());
|
58 |
generalOnglet.setScrollMode(Scroll.AUTO);
|
69 |
generalOnglet.setScrollMode(Scroll.AUTO);
|
59 |
onglets.add(generalOnglet);
|
70 |
onglets.add(generalOnglet);
|
Line -... |
Line 71... |
- |
|
71 |
|
- |
|
72 |
auteurOnglet = new TabItem(i18nC.collectionAuteur());
|
- |
|
73 |
auteurOnglet.setLayout(new AnchorLayout());
|
- |
|
74 |
auteurOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
75 |
onglets.add(auteurOnglet);
|
- |
|
76 |
|
- |
|
77 |
descriptionOnglet = new TabItem(i18nC.collectionDescription());
|
- |
|
78 |
descriptionOnglet.setLayout(new AnchorLayout());
|
- |
|
79 |
descriptionOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
80 |
onglets.add(descriptionOnglet);
|
- |
|
81 |
|
- |
|
82 |
contenuOnglet = new TabItem(i18nC.collectionContenu());
|
- |
|
83 |
contenuOnglet.setLayout(new AnchorLayout());
|
- |
|
84 |
contenuOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
85 |
onglets.add(contenuOnglet);
|
- |
|
86 |
|
- |
|
87 |
documentOnglet = new TabItem(i18nC.collectionDocument());
|
- |
|
88 |
documentOnglet.setLayout(new AnchorLayout());
|
- |
|
89 |
documentOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
90 |
onglets.add(documentOnglet);
|
- |
|
91 |
|
- |
|
92 |
inventaireOnglet = new TabItem(i18nC.collectionInventaire());
|
- |
|
93 |
inventaireOnglet.setLayout(new AnchorLayout());
|
- |
|
94 |
inventaireOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
95 |
onglets.add(inventaireOnglet);
|
60 |
|
96 |
|
61 |
panneauPrincipal.add(onglets);
|
97 |
panneauPrincipal.add(onglets);
|
62 |
add(panneauPrincipal);
|
98 |
add(panneauPrincipal);
|
Line 63... |
Line 99... |
63 |
}
|
99 |
}
|
64 |
|
100 |
|
65 |
private void initialiserTousLesTpl() {
|
101 |
private void initialiserTousLesTpl() {
|
- |
|
102 |
initialiserEnteteHtmlTpl();
|
- |
|
103 |
initialiserGeneralTpl();
|
- |
|
104 |
initialiserAuteurTpl();
|
- |
|
105 |
initialiserContenuTpl();
|
- |
|
106 |
initialiserDescriptionTpl();
|
66 |
initialiserEnteteHtmlTpl();
|
107 |
initialiserDocumentTpl();
|
Line 67... |
Line 108... |
67 |
initialiserGeneralTpl();
|
108 |
initialiserInventaireTpl();
|
68 |
}
|
109 |
}
|
69 |
|
110 |
|
Line 79... |
Line 120... |
79 |
private void initialiserGeneralTpl() {
|
120 |
private void initialiserGeneralTpl() {
|
80 |
generalTpl =
|
121 |
generalTpl =
|
81 |
"<div class='{css_corps}'>"+
|
122 |
"<div class='{css_corps}'>"+
|
82 |
" <div class='{css_fieldset}'>"+
|
123 |
" <div class='{css_fieldset}'>"+
|
83 |
" <h2>{i18n_titre_identification}</h2>"+
|
124 |
" <h2>{i18n_titre_identification}</h2>"+
|
- |
|
125 |
" <span class='{css_label}'>{i18n_nom_alternatif} :</span> {nom_alternatif}<br />"+
|
84 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
126 |
" <span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
|
85 |
" <span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
|
127 |
" <span class='{css_label}'>{i18n_code} :</span> {code}<br />"+
|
- |
|
128 |
" <span class='{css_label}'>{i18n_cote} :</span> {cote}<br />"+
|
- |
|
129 |
" <span class='{css_label}'>{i18n_mere} :</span> {mere}<br />"+
|
86 |
" </div>"+
|
130 |
" </div>"+
|
87 |
" <div class='{css_fieldset}'>"+
|
131 |
" <div class='{css_fieldset}'>"+
|
88 |
" <h2>{i18n_description_collection_titre}</h2>"+
|
132 |
" <h2>{i18n_general_collection_titre}</h2>"+
|
89 |
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
|
133 |
" <span class='{css_label}'>{i18n_description} :</span> {description}<br />"+
|
90 |
" <span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
|
134 |
" <span class='{css_label}'>{i18n_description_specialiste} :</span> {description_specialiste}<br />"+
|
- |
|
135 |
" <span class='{css_label}'>{i18n_historique} :</span> {historique}<br />"+
|
- |
|
136 |
" <span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
|
- |
|
137 |
" <span class='{css_label}'>{i18n_groupement_principe} :</span> {groupement_principe}<br />"+
|
- |
|
138 |
" <span class='{css_label}'>{i18n_groupement_but} :</span> {groupement_but}<br />"+
|
- |
|
139 |
" <span class='{css_label}'>{i18n_type_ncd} :</span> {type_ncd}<br />"+
|
- |
|
140 |
" <span class='{css_label}'>{i18n_type_botanique} :</span> {type_botanique}<br />"+
|
- |
|
141 |
" </div>"+
|
- |
|
142 |
" <hr class='{css_clear}'/>"+
|
- |
|
143 |
"</div>";
|
- |
|
144 |
}
|
- |
|
145 |
|
- |
|
146 |
private void initialiserAuteurTpl() {
|
- |
|
147 |
auteurTpl =
|
- |
|
148 |
"<div class='{css_corps}'>"+
|
- |
|
149 |
" <div class='{css_fieldset}'>"+
|
- |
|
150 |
" <h2>{i18n_titre_auteur}</h2>"+
|
- |
|
151 |
" </div>"+
|
- |
|
152 |
" <hr class='{css_clear}'/>"+
|
- |
|
153 |
"</div>";
|
- |
|
154 |
}
|
- |
|
155 |
|
- |
|
156 |
private void initialiserDescriptionTpl() {
|
- |
|
157 |
descriptionTpl =
|
- |
|
158 |
"<div class='{css_corps}'>"+
|
- |
|
159 |
" <div class='{css_fieldset}'>"+
|
- |
|
160 |
" <h2>{i18n_titre_description}</h2>"+
|
- |
|
161 |
" </div>"+
|
- |
|
162 |
" <hr class='{css_clear}'/>"+
|
- |
|
163 |
"</div>";
|
- |
|
164 |
}
|
- |
|
165 |
|
- |
|
166 |
private void initialiserContenuTpl() {
|
- |
|
167 |
contenuTpl =
|
- |
|
168 |
"<div class='{css_corps}'>"+
|
- |
|
169 |
" <div class='{css_fieldset}'>"+
|
- |
|
170 |
" <h2>{i18n_titre_contenu}</h2>"+
|
- |
|
171 |
" </div>"+
|
- |
|
172 |
" <hr class='{css_clear}'/>"+
|
- |
|
173 |
"</div>";
|
- |
|
174 |
}
|
- |
|
175 |
|
- |
|
176 |
private void initialiserDocumentTpl() {
|
- |
|
177 |
documentTpl =
|
- |
|
178 |
"<div class='{css_corps}'>"+
|
- |
|
179 |
" <div class='{css_fieldset}'>"+
|
- |
|
180 |
" <h2>{i18n_titre_document}</h2>"+
|
- |
|
181 |
" </div>"+
|
- |
|
182 |
" <hr class='{css_clear}'/>"+
|
- |
|
183 |
"</div>";
|
- |
|
184 |
}
|
- |
|
185 |
|
- |
|
186 |
private void initialiserInventaireTpl() {
|
- |
|
187 |
inventaireTpl =
|
- |
|
188 |
"<div class='{css_corps}'>"+
|
- |
|
189 |
" <div class='{css_fieldset}'>"+
|
- |
|
190 |
" <h2>{i18n_titre_inventaire}</h2>"+
|
91 |
" </div>"+
|
191 |
" </div>"+
|
92 |
" <hr class='{css_clear}'/>"+
|
192 |
" <hr class='{css_clear}'/>"+
|
93 |
"</div>";
|
193 |
"</div>";
|
94 |
}
|
194 |
}
|
Line 95... |
Line 195... |
95 |
|
195 |
|
96 |
private void chargerOntologie() {
|
- |
|
- |
|
196 |
private void chargerOntologie() {
|
- |
|
197 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeCollectionBota");
|
- |
|
198 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeCollectionNcd");
|
97 |
|
199 |
mediateur.obtenirListeValeurEtRafraichir(this, "typeDepot");
|
Line 98... |
Line 200... |
98 |
}
|
200 |
}
|
99 |
|
201 |
|
100 |
public void rafraichir(Object nouvelleDonnees) {
|
202 |
public void rafraichir(Object nouvelleDonnees) {
|
Line 113... |
Line 215... |
113 |
|
215 |
|
114 |
private void afficherDetail() {
|
216 |
private void afficherDetail() {
|
115 |
if (collection != null) {
|
217 |
if (collection != null) {
|
116 |
afficherEntete();
|
218 |
afficherEntete();
|
- |
|
219 |
afficherIdentification();
|
- |
|
220 |
afficherAuteur();
|
- |
|
221 |
afficherDescription();
|
- |
|
222 |
afficherContenu();
|
- |
|
223 |
afficherDocument();
|
117 |
afficherIdentification();
|
224 |
afficherInventaire();
|
118 |
}
|
225 |
}
|
119 |
layout();
|
226 |
layout();
|
Line 120... |
Line 227... |
120 |
}
|
227 |
}
|
Line 138... |
Line 245... |
138 |
Params generalParams = new Params();
|
245 |
Params generalParams = new Params();
|
139 |
generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
|
246 |
generalParams.set("i18n_titre_identification", i18nC.titreAdministratif());
|
140 |
generalParams.set("i18n_acronyme", i18nC.acronyme());
|
247 |
generalParams.set("i18n_acronyme", i18nC.acronyme());
|
141 |
generalParams.set("i18n_code", i18nC.code());
|
248 |
generalParams.set("i18n_code", i18nC.code());
|
142 |
generalParams.set("i18n_cote", i18nC.cote());
|
249 |
generalParams.set("i18n_cote", i18nC.cote());
|
- |
|
250 |
generalParams.set("i18n_nom_alternatif", i18nC.nomAlternatif());
|
143 |
generalParams.set("i18n_mere", i18nC.collectionMere());
|
251 |
generalParams.set("i18n_mere", i18nC.collectionMere());
|
144 |
generalParams.set("i18n_description_collection_titre", i18nC.collectionDescriptionTitre());
|
252 |
generalParams.set("i18n_general_collection_titre", i18nC.collectionGeneralTitre());
|
145 |
generalParams.set("i18n_description", i18nC.description());
|
253 |
generalParams.set("i18n_description", i18nC.description());
|
146 |
generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
|
254 |
generalParams.set("i18n_description_specialiste", i18nC.descriptionSpecialiste());
|
147 |
generalParams.set("i18n_historique", i18nC.historique());
|
255 |
generalParams.set("i18n_historique", i18nC.historique());
|
148 |
generalParams.set("i18n_web", i18nC.siteWeb());
|
256 |
generalParams.set("i18n_web", i18nC.siteWeb());
|
149 |
generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
|
257 |
generalParams.set("i18n_groupement_principe", i18nC.groupementPrincipe());
|
150 |
generalParams.set("i18n_groupement_but", i18nC.groupementBut());
|
258 |
generalParams.set("i18n_groupement_but", i18nC.groupementBut());
|
151 |
generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
|
259 |
generalParams.set("i18n_type_ncd", i18nC.typeCollectionNcd());
|
152 |
generalParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
|
260 |
generalParams.set("i18n_type_botanique", i18nC.typeCollectionBotanique());
|
- |
|
261 |
generalParams.set("i18n_type_depot", i18nC.typeDepot());
|
Line 153... |
Line 262... |
153 |
|
262 |
|
- |
|
263 |
String acronyme = construireTxtTruck(collection.getIdAlternatif());
|
- |
|
264 |
String code = construireTxtTruck(collection.getCode());
|
- |
|
265 |
String nomAlternatif = construireTxtTruck(collection.getNomAlternatif());
|
- |
|
266 |
String urls = construireTxtTruck(collection.getUrls());
|
- |
|
267 |
String typeNcd = construireTxtListeOntologie(collection.getTypeNcd());
|
- |
|
268 |
String typeBota = construireTxtListeOntologie(collection.getBotanique().getType());
|
154 |
String acronyme = construireTxtTruck(collection.getIdAlternatif());
|
269 |
String typeDepot = construireTxtListeOntologie(collection.getTypeDepot());
|
- |
|
270 |
|
155 |
|
271 |
generalParams.set("nom_alternatif", nomAlternatif);
|
156 |
generalParams.set("acronyme", acronyme);
|
272 |
generalParams.set("acronyme", acronyme);
|
157 |
generalParams.set("code", collection.getCode());
|
273 |
generalParams.set("code", code);
|
158 |
//generalParams.set("cote", collection.getCote());
|
274 |
generalParams.set("cote", collection.getCote());
|
159 |
//generalParams.set("mere", collection.getCollectionMereNom());
|
275 |
generalParams.set("mere", collection.getCollectionMereNom());
|
160 |
generalParams.set("description", collection.getDescription());
|
276 |
generalParams.set("description", collection.getDescription());
|
161 |
generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
|
277 |
generalParams.set("description_specialiste", collection.getDescriptionSpecialiste());
|
162 |
//generalParams.set("historique", collection.getHistorique());
|
278 |
generalParams.set("historique", collection.getHistorique());
|
163 |
//generalParams.set("web", collection.getUrls());
|
279 |
generalParams.set("web", urls);
|
164 |
//generalParams.set("groupement_principe", collection.getGroupementPrincipe());
|
280 |
generalParams.set("groupement_principe", collection.getGroupementPrincipe());
|
165 |
//generalParams.set("groupement_but", collection.getGroupementBut());
|
281 |
generalParams.set("groupement_but", collection.getGroupementBut());
|
166 |
//generalParams.set("type_ncd", collection.getTypeNcd());
|
282 |
generalParams.set("type_ncd", typeNcd);
|
167 |
//generalParams.set("type_botanique", collection.getTypeBotanique());
|
- |
|
- |
|
283 |
generalParams.set("type_botanique", typeBota);
|
Line 168... |
Line 284... |
168 |
|
284 |
generalParams.set("type_depot", typeDepot);
|
169 |
|
285 |
|
Line -... |
Line 286... |
- |
|
286 |
afficherOnglet(generalTpl, generalParams, generalOnglet);
|
- |
|
287 |
}
|
- |
|
288 |
|
- |
|
289 |
private void afficherAuteur() {
|
- |
|
290 |
Params auteurParams = new Params();
|
- |
|
291 |
auteurParams.set("i18n_titre_auteur", i18nC.collectionAuteurTitre());
|
- |
|
292 |
|
- |
|
293 |
afficherOnglet(auteurTpl, auteurParams, auteurOnglet);
|
- |
|
294 |
}
|
- |
|
295 |
|
- |
|
296 |
private void afficherDescription() {
|
- |
|
297 |
Params descriptionParams = new Params();
|
- |
|
298 |
descriptionParams.set("i18n_titre_description", i18nC.collectionDescriptionTitre());
|
- |
|
299 |
|
- |
|
300 |
afficherOnglet(descriptionTpl, descriptionParams, descriptionOnglet);
|
- |
|
301 |
}
|
- |
|
302 |
|
- |
|
303 |
private void afficherContenu() {
|
- |
|
304 |
Params contenuParams = new Params();
|
- |
|
305 |
contenuParams.set("i18n_titre_contenu", i18nC.collectionContenuTitre());
|
- |
|
306 |
|
- |
|
307 |
afficherOnglet(contenuTpl, contenuParams, contenuOnglet);
|
- |
|
308 |
}
|
- |
|
309 |
|
- |
|
310 |
private void afficherDocument() {
|
- |
|
311 |
Params documentParams = new Params();
|
- |
|
312 |
documentParams.set("i18n_titre_document", i18nC.collectionDocumentTitre());
|
- |
|
313 |
|
- |
|
314 |
afficherOnglet(documentTpl, documentParams, documentOnglet);
|
- |
|
315 |
}
|
- |
|
316 |
|
- |
|
317 |
private void afficherInventaire() {
|
- |
|
318 |
Params inventaireParams = new Params();
|
- |
|
319 |
inventaireParams.set("i18n_titre_inventaire", i18nC.collectionInventaireTitre());
|
- |
|
320 |
|
170 |
afficherOnglet(generalTpl, generalParams, generalOnglet);
|
321 |
afficherOnglet(inventaireTpl, inventaireParams, inventaireOnglet);
|
171 |
}
|
322 |
}
|
172 |
|
323 |
|
173 |
protected String getNomStructure() {
|
324 |
protected String getNomStructure() {
|
174 |
String nomStructure = "";
|
325 |
String nomStructure = "";
|