Subversion Repositories eFlore/Applications.coel

Rev

Rev 379 | Rev 392 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 379 Rev 390
Line 23... Line 23...
23
import com.extjs.gxt.ui.client.widget.Html;
23
import com.extjs.gxt.ui.client.widget.Html;
24
import com.extjs.gxt.ui.client.widget.HtmlContainer;
24
import com.extjs.gxt.ui.client.widget.HtmlContainer;
25
import com.extjs.gxt.ui.client.widget.LayoutContainer;
25
import com.extjs.gxt.ui.client.widget.LayoutContainer;
26
import com.extjs.gxt.ui.client.widget.TabItem;
26
import com.extjs.gxt.ui.client.widget.TabItem;
27
import com.extjs.gxt.ui.client.widget.TabPanel;
27
import com.extjs.gxt.ui.client.widget.TabPanel;
-
 
28
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
28
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
29
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
29
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
30
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
30
import com.google.gwt.core.client.GWT;
31
import com.google.gwt.core.client.GWT;
-
 
32
import com.google.gwt.i18n.client.DateTimeFormat;
Line 31... Line 33...
31
 
33
 
Line 32... Line 34...
32
public class StructureDetailPanneauVue extends LayoutContainer implements Rafraichissable {
34
public class StructureDetailPanneauVue extends LayoutContainer implements Rafraichissable {
Line 33... Line 35...
33
 
35
 
34
	private Mediateur mediateur = null;
36
	private Mediateur mediateur = null;
35
	
37
	
-
 
38
	private String enteteTpl = null;
36
	private String enteteTpl = null;
39
	private String identificationTpl = null;
-
 
40
	private String personnelTpl = null;
-
 
41
	private String tableauPersonnelTpl = null;
Line 37... Line 42...
37
	private String identificationTpl = null;
42
	private String lignePersonnelTpl = null;
38
	private String personnelTpl = null;
43
	private String conservationTpl = null;
39
	private String lignePersonnelTpl = null;
44
	private String valorisationTpl = null;
40
	
45
	
Line 46... Line 51...
46
	private ContentPanel panneauPrincipal = null;
51
	private ContentPanel panneauPrincipal = null;
47
	private Html entete = null;
52
	private Html entete = null;
48
	private TabPanel onglets = null;
53
	private TabPanel onglets = null;
49
	private TabItem identificationOnglet = null;
54
	private TabItem identificationOnglet = null;
50
	private TabItem personnelOnglet = null;
55
	private TabItem personnelOnglet = null;
-
 
56
	private TabItem conservationOnglet = null;
-
 
57
	private TabItem valorisationOnglet = null;
Line 51... Line 58...
51
 
58
 
52
	public StructureDetailPanneauVue(Mediateur mediateurCourant) {
59
	public StructureDetailPanneauVue(Mediateur mediateurCourant) {
53
		mediateur = mediateurCourant;
60
		mediateur = mediateurCourant;
Line 59... Line 66...
59
		
66
		
60
		panneauPrincipal = new ContentPanel();
67
		panneauPrincipal = new ContentPanel();
61
		panneauPrincipal.setLayout(new FlowLayout());
68
		panneauPrincipal.setLayout(new FlowLayout());
62
		panneauPrincipal.setHeaderVisible(false);
69
		panneauPrincipal.setHeaderVisible(false);
63
		panneauPrincipal.setBodyBorder(false);
-
 
64
		
70
		panneauPrincipal.setBodyBorder(false);
65
		
71
			
66
	    entete = new Html();
72
	    entete = new Html();
67
	    entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
73
	    entete.setId(ComposantId.ZONE_DETAIL_ENTETE);
Line 68... Line 74...
68
	    panneauPrincipal.setTopComponent(entete);
74
	    panneauPrincipal.setTopComponent(entete);
69
		
75
		
70
		onglets = new TabPanel();
76
		onglets = new TabPanel();
71
		onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
-
 
72
		onglets.setHeight("100%");
77
		onglets.setId(ComposantId.ZONE_DETAIL_CORPS);
Line 73... Line 78...
73
		onglets.setBorders(false);
78
		onglets.setHeight("100%");
74
		onglets.setBodyBorder(false);
79
		onglets.setBodyBorder(false);
75
 
80
 
76
		identificationOnglet = new TabItem("Général");
81
		identificationOnglet = new TabItem("Général");
Line 77... Line 82...
77
		identificationOnglet.setBorders(false);
82
		identificationOnglet.setLayout(new AnchorLayout());
78
		identificationOnglet.setScrollMode(Scroll.AUTO);
83
		identificationOnglet.setScrollMode(Scroll.AUTO);
79
		onglets.add(identificationOnglet);
84
		onglets.add(identificationOnglet);
80
		
85
		
Line -... Line 86...
-
 
86
		personnelOnglet = new TabItem("Personnel");
-
 
87
		personnelOnglet.setLayout(new AnchorLayout());
-
 
88
		personnelOnglet.setScrollMode(Scroll.AUTO);
-
 
89
		onglets.add(personnelOnglet);
-
 
90
		
-
 
91
		conservationOnglet = new TabItem("Conservation");
-
 
92
		conservationOnglet.setLayout(new AnchorLayout());
-
 
93
		conservationOnglet.setScrollMode(Scroll.AUTO);
-
 
94
		onglets.add(conservationOnglet);
-
 
95
		
81
		personnelOnglet = new TabItem("Personnel");
96
		valorisationOnglet = new TabItem("Valorisation");
82
		personnelOnglet.setBorders(false);
97
		valorisationOnglet.setLayout(new AnchorLayout());
83
		personnelOnglet.setScrollMode(Scroll.AUTO);
98
		valorisationOnglet.setScrollMode(Scroll.AUTO);
Line 84... Line 99...
84
		onglets.add(personnelOnglet);
99
		onglets.add(valorisationOnglet);
85
		
100
		
86
		panneauPrincipal.add(onglets);
-
 
87
		add(panneauPrincipal);
101
		panneauPrincipal.add(onglets);
88
	}
102
		add(panneauPrincipal);
89
 
103
	}
Line 90... Line 104...
90
	private void afficherDetailInstitution(Structure structureCourante) {
104
 
91
		if (structureCourante != null) {
105
	private void afficherDetailInstitution() {
-
 
106
		if (structure != null) {
-
 
107
			personnel = structure.getPersonnel();
-
 
108
			valorisation = structure.getValorisation();
-
 
109
			conservation = structure.getConservation();
-
 
110
			
-
 
111
			afficherEntete();
-
 
112
			afficherIdentification();
-
 
113
			if (personnel != null) {
-
 
114
				afficherPersonnel();
92
			structure = structureCourante;
115
			}
93
			personnel = structure.getPersonnel();
116
			if (conservation != null) {
94
			valorisation = structure.getValorisation();
117
				//afficherConservation();
Line 95... Line 118...
95
			conservation = structure.getConservation();
118
			}
96
			
119
			if (valorisation != null) {
97
			afficherEntete();
120
				//afficherValorisation();
-
 
121
			}
-
 
122
		}
98
			afficherIdentification();
123
		layout();
99
		}
124
	}
-
 
125
	
-
 
126
	private void afficherEntete() {
-
 
127
		Params enteteParams = new Params();
Line 100... Line 128...
100
		layout();
128
		enteteParams.set("css_id", ComposantId.ZONE_DETAIL_ENTETE);
101
	}
129
		enteteParams.set("css_meta", ComposantClass.META);
102
	
130
		
Line 103... Line 131...
103
	private void afficherEntete() {
131
		enteteParams.set("nom", structure.getNom());
104
		Params enteteParams = new Params();
132
		enteteParams.set("ville", structure.getVille());
105
		enteteParams.set("id", ComposantId.ZONE_DETAIL_ENTETE);
133
		enteteParams.set("id", structure.getId());
-
 
134
		enteteParams.set("guid", structure.getGuid());
-
 
135
		enteteParams.set("projet", structure.getIdProjet());
-
 
136
		
-
 
137
		String eHtml = Format.substitute(enteteTpl, enteteParams);
-
 
138
		entete.getElement().setInnerHTML(eHtml);
-
 
139
	}
-
 
140
	
-
 
141
	private void afficherIdentification() {
-
 
142
		Params contenuParams = new Params();
-
 
143
		contenuParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
-
 
144
		contenuParams.set("css_label", ComposantClass.LABEL);
-
 
145
		contenuParams.set("css_fieldset", ComposantClass.FIELDSET);
-
 
146
		contenuParams.set("css_clear", ComposantClass.CLEAR);
-
 
147
		
-
 
148
		contenuParams.set("i18n_titre_administratif", mediateur.i18nC.titreAdministratif());
-
 
149
		contenuParams.set("i18n_acronyme", mediateur.i18nC.acronyme());
-
 
150
		contenuParams.set("i18n_statut", mediateur.i18nC.statut());
-
 
151
		contenuParams.set("i18n_date_fondation", mediateur.i18nC.dateFondation());
-
 
152
		contenuParams.set("i18n_nbre_personnel", mediateur.i18nC.nbrePersonnel());
-
 
153
		
-
 
154
		contenuParams.set("i18n_titre_description", mediateur.i18nC.description());
-
 
155
		contenuParams.set("i18n_description", mediateur.i18nC.description());
-
 
156
		
-
 
157
		contenuParams.set("i18n_titre_adresse", mediateur.i18nC.adresse());
-
 
158
		contenuParams.set("i18n_adresse", mediateur.i18nC.adresse());
-
 
159
		contenuParams.set("i18n_cp", mediateur.i18nC.codePostal());
-
 
160
		contenuParams.set("i18n_ville", mediateur.i18nC.ville());
-
 
161
		contenuParams.set("i18n_region", mediateur.i18nC.region());
-
 
162
		contenuParams.set("i18n_pays", mediateur.i18nC.pays());
-
 
163
		
-
 
164
		contenuParams.set("i18n_titre_communication", mediateur.i18nC.titreCommunication());
-
 
165
		contenuParams.set("i18n_tel", mediateur.i18nC.telephone());
106
		enteteParams.set("nom", structure.getNom());
166
		contenuParams.set("i18n_fax", mediateur.i18nC.fax());
-
 
167
		contenuParams.set("i18n_courriel", mediateur.i18nC.courriel());
107
		enteteParams.set("ville", structure.getVille());
168
		contenuParams.set("i18n_acces", mediateur.i18nC.acces());
108
		
169
		contenuParams.set("i18n_web", mediateur.i18nC.siteWeb());
109
		String eHtml = Format.substitute(enteteTpl, enteteParams);
170
		
110
		entete.getElement().setInnerHTML(eHtml);
171
		contenuParams.set("acronyme", structure.getIdAlternatif());
111
	}
172
		contenuParams.set("statut", structure.getTypePrive()+structure.getTypePublic());
-
 
173
		contenuParams.set("date_fondation", structure.getDateFondationFormate("dd/MM/yyyy"));
112
	
174
		contenuParams.set("nbre_personnel", structure.getNbrePersonne());
113
	private void afficherIdentification() {
175
		
114
		Params contenuParams = new Params();
176
		contenuParams.set("description", structure.getDescription());
115
		contenuParams.set("css_class", ComposantClass.DETAIL_CORPS_CONTENU);
177
		
-
 
178
		contenuParams.set("adresse", structure.getAdresse());
Line 116... Line 179...
116
		contenuParams.set("description", structure.getDescription());
179
		contenuParams.set("cp", structure.getCodePostal());
117
		contenuParams.set("adresse", structure.getAdresse());
180
		contenuParams.set("ville", structure.getVille());
118
		contenuParams.set("code_postal", structure.getCodePostal());
181
		contenuParams.set("region", structure.getRegion());
119
		contenuParams.set("ville", structure.getVille());
182
		contenuParams.set("pays", structure.getPays());
120
		contenuParams.set("region", structure.getRegion());
183
		
Line 121... Line 184...
121
		contenuParams.set("pays", structure.getPays());
184
		contenuParams.set("tel", structure.getTelephone());
-
 
185
		contenuParams.set("fax", structure.getFax());
-
 
186
		contenuParams.set("courriel", structure.getCourriel());
-
 
187
		contenuParams.set("acces", structure.getConditionAcces());
-
 
188
		contenuParams.set("web", structure.getUrl());
-
 
189
		
122
		contenuParams.set("tel", structure.getTelephone());
190
		String cHtml = Format.substitute(identificationTpl, contenuParams);
123
		contenuParams.set("fax", structure.getFax());
191
		HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
-
 
192
		identificationOnglet.removeAll();
-
 
193
		identificationOnglet.add(corpsConteneurDuHtml);
-
 
194
	}
-
 
195
	
-
 
196
	private void afficherPersonnel() {
-
 
197
		String tableauPersonnelHtml = "";
-
 
198
		if (personnel.size() > 0) {
-
 
199
			tableauPersonnelHtml = construireTableauDuPersonnel();
-
 
200
		}
-
 
201
		
-
 
202
		Params contenuParams = new Params();
-
 
203
		contenuParams.set("css_corps", ComposantClass.DETAIL_CORPS_CONTENU);
-
 
204
		contenuParams.set("i18n_titre_personnel", mediateur.i18nC.titrePersonnel());
-
 
205
		contenuParams.set("i18n_nbre_personnel_collection", mediateur.i18nC.nbrePersonnelCollection());
124
		contenuParams.set("courriel", structure.getCourriel());
206
		contenuParams.set("nbre_personnel_collection", personnel.size());
125
		contenuParams.set("acces", structure.getConditionAcces());
207
		contenuParams.set("tableau_personnel", tableauPersonnelHtml);
126
		
208
		String cHtml = Format.substitute(personnelTpl, contenuParams);
127
		String cHtml = Format.substitute(identificationTpl, contenuParams);
209
		
128
		HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
210
		HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
129
		identificationOnglet.removeAll();
211
		personnelOnglet.removeAll();
130
		identificationOnglet.add(corpsConteneurDuHtml);
212
		personnelOnglet.add(corpsConteneurDuHtml);
131
	}
213
	}
132
	
214
	
133
	private void afficherPersonnel() {
215
	private String construireTableauDuPersonnel() {
Line 134... Line 216...
134
		Params contenuParams = new Params();
216
		Params contenuParams = new Params();
135
		contenuParams.set("css_class", ComposantClass.DETAIL_CORPS_CONTENU);
-
 
136
		contenuParams.set("fonction", mediateur.i18nC.fonction());
217
		contenuParams.set("i18n_titre_membre", mediateur.i18nC.titreMembre());
137
		contenuParams.set("prenom", mediateur.i18nC.prenom());
218
		contenuParams.set("i18n_fonction", mediateur.i18nC.fonction());
138
		contenuParams.set("nom", mediateur.i18nC.nom());
219
		contenuParams.set("i18n_prenom", mediateur.i18nC.prenom());
139
		contenuParams.set("tel", mediateur.i18nC.telephoneFixe());
220
		contenuParams.set("i18n_nom", mediateur.i18nC.nom());
140
		contenuParams.set("fax", mediateur.i18nC.fax());
221
		contenuParams.set("i18n_tel", mediateur.i18nC.telephoneFixe());
Line 162... Line 243...
162
			ligneParams.set("contact", personne.getContact());
243
			ligneParams.set("contact", personne.getContact());
163
			lignesPersonnel += Format.substitute(lignePersonnelTpl, ligneParams);
244
			lignesPersonnel += Format.substitute(lignePersonnelTpl, ligneParams);
164
		}
245
		}
165
		contenuParams.set("lignes", lignesPersonnel);
246
		contenuParams.set("lignes", lignesPersonnel);
Line 166... Line 247...
166
		
247
		
167
		String cHtml = Format.substitute(personnelTpl, contenuParams);
-
 
168
		HtmlContainer corpsConteneurDuHtml = new HtmlContainer(cHtml);
248
		String cHtml = Format.substitute(tableauPersonnelTpl, contenuParams);
169
		personnelOnglet.removeAll();
-
 
170
		personnelOnglet.add(corpsConteneurDuHtml);
249
		return cHtml;
171
	}
250
	}
172
	
251
		
173
	private void initialiserTousLesTpl() {
252
	private void initialiserTousLesTpl() {
174
		initialiserEnteteHtmlTpl();
253
		initialiserEnteteHtmlTpl();
175
		initialiserIdentificationTpl();
254
		initialiserIdentificationTpl();
-
 
255
		initialiserPersonnelTpl();
176
		initialiserPersonnelTpl();
256
		initialiserTableauPersonnelTpl();
-
 
257
		initialiserLignePersonnelTpl();
-
 
258
		initialiserConservationTpl();
177
		initialiserLignePersonnelTpl();
259
		initialiserValorisationTpl();
Line 178... Line 260...
178
	}
260
	}
179
	
261
	
180
	private void initialiserEnteteHtmlTpl() {
262
	private void initialiserEnteteHtmlTpl() {
-
 
263
		enteteTpl = 	"<div id='{css_id}'>"+
181
		enteteTpl = 	"<div id='{id}'>"+
264
						"	<h1>{nom}</h1>"+
182
						"	<h1>{nom}</h1>"+
265
						"	<h2>{ville}<span class='{css_meta}'>{projet} - {id} - {guid}</span></h2>" +
183
						"	<h2>{ville}</h2>" +
266
						"	" +
Line 184... Line 267...
184
						"</div>";
267
						"</div>";
185
	}
268
	}
186
	
269
	
-
 
270
	private void initialiserIdentificationTpl() {
187
	private void initialiserIdentificationTpl() {
271
		identificationTpl =
-
 
272
						"<div class='{css_corps}'>"+
188
		identificationTpl =
273
						"	<div class='{css_fieldset}'>"+
-
 
274
						"		<h2>{i18n_titre_administratif}</h2>"+
-
 
275
						"		<span class='{css_label}'>{i18n_acronyme} :</span> {acronyme}<br />"+
-
 
276
						"		<span class='{css_label}'>{i18n_acces} :</span> {acces}<br />"+
-
 
277
						"		<span class='{css_label}'>{i18n_statut} :</span> {statut}<br />"+
-
 
278
						"		<span class='{css_label}'>{i18n_date_fondation} :</span> {date_fondation}<br />"+
-
 
279
						"		<span class='{css_label}'>{i18n_nbre_personnel} :</span> {nbre_personnel}<br />"+
-
 
280
						"	</div>"+
-
 
281
						"	<div class='{css_fieldset}'>"+
-
 
282
						"		<h2>{i18n_titre_description}</h2>"+
-
 
283
						"		{description}"+
-
 
284
						"	</div>"+
189
						"<div class='{css_class}'>"+
285
						"	<hr class='{css_clear}'/>"+
-
 
286
						"	<div class='{css_fieldset}'>"+
-
 
287
						"		<h2>{i18n_titre_adresse}</h2>"+
-
 
288
						"		<span class='{css_label}'>{i18n_adresse} :</span> {adresse}<br />" +
-
 
289
						"		<span class='{css_label}'>{i18n_cp} :</span> {cp}<br />" +
-
 
290
						"		<span class='{css_label}'>{i18n_ville} :</span> {ville}<br />" +
-
 
291
						"		<span class='{css_label}'>{i18n_region} :</span> {region}<br />" +
-
 
292
						"		<span class='{css_label}'>{i18n_pays} :</span> {pays}<br />" +
190
						"	<h2>Renseignements administratifs</h2>"+
293
						"	</div>"+
191
						"	<span style='font-weight:bold;'>Condition d'accès :</span> {acces}<br />"+
294
						"	<div class='{css_fieldset}'>"+
192
						"	<span style='font-weight:bold;'>Adresse :</span> {adresse}, {code_postal} {ville}, {region}, {pays}<br />"+
295
						"		<h2>{i18n_titre_communication}</h2>"+
-
 
296
						"		<span class='{css_label}'>{i18n_tel} :</span> {tel}<br />"+
193
						"	<span style='font-weight:bold;'>Téléphone :</span> {tel}<br />"+
297
						"		<span class='{css_label}'>{i18n_fax} :</span> {fax}<br />"+
194
						"	<span style='font-weight:bold;'>Fax :</span> {fax}<br />"+
298
						"		<span class='{css_label}'>{i18n_courriel} :</span> {courriel}<br />"+
195
						"	<span style='font-weight:bold;'>Courriel :</span> {courriel}<br />"+
299
						"		<span class='{css_label}'>{i18n_web} :</span> {web}<br />"+
Line 196... Line 300...
196
						"	{description}"+
300
						"	</div>"+
197
						"</div>";
301
						"</div>";
198
	}
302
	}
199
	
303
	
200
	private void initialiserPersonnelTpl() {
-
 
201
		personnelTpl =
-
 
202
						"<div class='{css_class}'>"+
-
 
203
						"	<h2>Personnel</h2>"+
304
	private void initialiserPersonnelTpl() {
204
						"	<table>"+
-
 
205
						"		<thead>"+
-
 
206
						"			<tr>" +
-
 
207
						"				<th>{fonction}</th>" +
-
 
208
						"				<th>{prenom}</th>" +
-
 
209
						"				<th>{nom}</th>" +
-
 
210
						"				<th>{tel}</th>" +
-
 
211
						"				<th>{fax}</th>" +
-
 
212
						"				<th>{courriel}</th>" +
-
 
213
						"				<th>{statut}</th>" +
-
 
214
						"				<th>{tps_w}</th>" +
-
 
215
						"				<th>{specialite}</th>" +
-
 
216
						"				<th>{contact}</th>" +
305
		personnelTpl =
217
						"			</tr>"+
-
 
218
						"		</thead>"+
-
 
219
						"		<tbody>"+
306
						"<div class='{css_corps}'>"+
220
						"			{lignes}"+
307
						"	<h2>{i18n_titre_personnel}</h2>"+
Line -... Line 308...
-
 
308
						"	<p><span class='{css_label}'>{i18n_nbre_personnel_collection} :</span> {nbre_personnel_collection}</p>"+
-
 
309
						"	{tableau_personnel}"+
-
 
310
						"</div>";
-
 
311
	}
-
 
312
	
-
 
313
	private void initialiserTableauPersonnelTpl() {
-
 
314
		tableauPersonnelTpl =
-
 
315
						"<h3>{i18n_titre_membre}</h3>"+
-
 
316
						"<table>"+
-
 
317
						"	<thead>"+
-
 
318
						"		<tr>" +
-
 
319
						"			<th>{i18n_fonction}</th>" +
-
 
320
						"			<th>{i18n_prenom}</th>" +
-
 
321
						"			<th>{i18n_nom}</th>" +
-
 
322
						"			<th>{i18n_tel}</th>" +
-
 
323
						"			<th>{i18n_fax}</th>" +
-
 
324
						"			<th>{i18n_courriel}</th>" +
-
 
325
						"			<th>{i18n_statut}</th>" +
-
 
326
						"			<th>{i18n_tps_w}</th>" +
-
 
327
						"			<th>{i18n_specialite}</th>" +
-
 
328
						"			<th>{i18n_contact}</th>" +
-
 
329
						"		</tr>"+
-
 
330
						"	</thead>"+
-
 
331
						"	<tbody>"+
221
						"		</tbody>"+
332
						"		{lignes}"+
222
						"	</table>"+
333
						"	</tbody>"+
223
						"</div>";
334
						"</table>";
224
	}
335
	}
225
	
336
	
Line 237... Line 348...
237
						"	<td>{specialite}</td>" +
348
						"	<td>{specialite}</td>" +
238
						"	<td>{contact}</td>" +
349
						"	<td>{contact}</td>" +
239
						"</tr>";
350
						"</tr>";
240
	}
351
	}
Line -... Line 352...
-
 
352
	
-
 
353
	private void initialiserConservationTpl() {
-
 
354
		conservationTpl =
-
 
355
						"<div class='{css_corps}'>"+
-
 
356
						"	<div class='{css_fieldset}'>"+
-
 
357
						"		<h2>{i18n_titre_conservation_personnel}</h2>"+
-
 
358
						"		<span class='{css_label}'>{i18n_formation} :</span> {formation_interet}<br />"+
-
 
359
						"		<span class='{css_label}'>{i18n_formation_interet} :</span> {formation_interet}<br />"+
-
 
360
						"	</div>"+
-
 
361
						"	<div class='{css_fieldset}'>"+
-
 
362
						"		<h2>{i18n_titre_local}</h2>"+
-
 
363
						"		<span class='{css_label}'>{i18n_local_specifique} :</span> {local_specifique}<br />"+
-
 
364
						"		<span class='{css_label}'>{i18n_meuble_specifique} :</span> {meuble_specifique}<br />"+
-
 
365
						"		<span class='{css_label}'>{i18n_local_parametre} :</span> {local_parametre}<br />"+
-
 
366
						"		<span class='{css_label}'>{i18n_conservation_en_commun} :</span> {conservation_en_commun}<br />"+
-
 
367
						"		<span class='{css_label}'>{i18n_acces_control} :</span> {acces_control}<br />"+
-
 
368
						"	</div>"+
-
 
369
						"	<hr class='{css_clear}'/>"+
-
 
370
						"</div>";
-
 
371
	}
-
 
372
	
-
 
373
	private void initialiserValorisationTpl() {
-
 
374
		valorisationTpl =
-
 
375
						"<div class='{css_corps}'>"+
-
 
376
						"	<div class='{css_fieldset}'>"+
-
 
377
						"		<h2>{i18n_titre_action_valorisation}</h2>"+
-
 
378
						"	</div>"+
-
 
379
						"	<div class='{css_fieldset}'>"+
-
 
380
						"		<h2>{i18n_titre_recherche_scientifique}</h2>"+
-
 
381
						"	</div>"+
-
 
382
						"	<hr class='{css_clear}'/>"+
-
 
383
						"	<div class='{css_fieldset}'>"+
-
 
384
						"		<h2>{i18n_titre_acces_usage}</h2>"+
-
 
385
						"	</div>"+
-
 
386
						"</div>";
-
 
387
	}
241
	
388
	
242
	public void rafraichir(Object nouvelleDonnees) {
389
	public void rafraichir(Object nouvelleDonnees) {
243
		if (nouvelleDonnees instanceof Structure) {
390
		if (nouvelleDonnees instanceof Structure) {
-
 
391
			structure = (Structure) nouvelleDonnees;
244
			afficherDetailInstitution((Structure) nouvelleDonnees);
392
			afficherDetailInstitution();
245
		} if (nouvelleDonnees instanceof Information) {
393
		} if (nouvelleDonnees instanceof Information) {
246
			Information info = (Information) nouvelleDonnees;
394
			Information info = (Information) nouvelleDonnees;
247
			if (info.getType().equals("liste_structure_a_personne")) {
395
			if (info.getType().equals("liste_structure_a_personne")) {
248
				allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
396
				allouerPersonnelAStructure((StructureAPersonneListe) info.getDonnee(0));
249
				afficherPersonnel();
-
 
250
				layout();
397
				afficherDetailInstitution();
251
			}
398
			}
252
		} else {
399
		} else {
253
			GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
400
			GWT.log("Pas de correspondance dans la méthode rafraichir() de la classe "+this.getClass(), null);
254
		}
401
		}