Subversion Repositories eFlore/Applications.del

Rev

Rev 1792 | Rev 1995 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1792 Rev 1986
1
package org.tela_botanica.del.client.composants.moteurrecherche;
1
package org.tela_botanica.del.client.composants.moteurrecherche;
2
 
2
 
3
import java.util.Iterator;
3
import java.util.Iterator;
4
import java.util.Map;
4
import java.util.Map;
5
 
5
 
6
import org.tela_botanica.del.client.i18n.I18n;
6
import org.tela_botanica.del.client.i18n.I18n;
7
import org.tela_botanica.del.client.modeles.InformationsRecherche;
7
import org.tela_botanica.del.client.modeles.InformationsRecherche;
8
 
8
 
9
import com.google.gwt.core.client.GWT;
9
import com.google.gwt.core.client.GWT;
10
import com.google.gwt.event.dom.client.HasClickHandlers;
10
import com.google.gwt.event.dom.client.HasClickHandlers;
11
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
11
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
12
import com.google.gwt.uibinder.client.UiBinder;
12
import com.google.gwt.uibinder.client.UiBinder;
13
import com.google.gwt.uibinder.client.UiField;
13
import com.google.gwt.uibinder.client.UiField;
14
import com.google.gwt.user.client.DOM;
14
import com.google.gwt.user.client.DOM;
15
import com.google.gwt.user.client.ui.Button;
15
import com.google.gwt.user.client.ui.Button;
16
import com.google.gwt.user.client.ui.Composite;
16
import com.google.gwt.user.client.ui.Composite;
17
import com.google.gwt.user.client.ui.HasWidgets;
17
import com.google.gwt.user.client.ui.HasWidgets;
18
import com.google.gwt.user.client.ui.Label;
18
import com.google.gwt.user.client.ui.Label;
19
import com.google.gwt.user.client.ui.ListBox;
19
import com.google.gwt.user.client.ui.ListBox;
20
import com.google.gwt.user.client.ui.Panel;
20
import com.google.gwt.user.client.ui.Panel;
21
import com.google.gwt.user.client.ui.TextBox;
21
import com.google.gwt.user.client.ui.TextBox;
22
import com.google.gwt.user.client.ui.Widget;
22
import com.google.gwt.user.client.ui.Widget;
23
 
23
 
24
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
24
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
25
 
25
 
26
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {
26
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {
27
	}
27
	}
28
 
28
 
29
	private static Binder uiBinder = GWT.create(Binder.class);
29
	private static Binder uiBinder = GWT.create(Binder.class);
30
	private String labelRecherche = "";
30
	private String labelRecherche = "";
-
 
31
	
-
 
32
	private Map<String,String> listePays;
-
 
33
	
-
 
34
	private InformationsRecherche informationRecherche;
-
 
35
	
-
 
36
	// Si l'on charge une recherche précédente et que la liste des pays n'est 
-
 
37
	// pas encore arrivée, on stocke le pays pour l'afficher quand la liste arrive
-
 
38
	private String paysEnAttente;
31
 
39
 
32
	@UiField
40
	@UiField
33
	Panel rechercheAvancee, taxon, commune, zoneRss, conteneurMotCle, conteneurMotCleCel, conteneurMotCleDel  ;
41
	Panel rechercheAvancee, taxon, commune, zoneRss, conteneurMotCle, conteneurMotCleCel, conteneurMotCleDel  ;
34
	@UiField
42
	@UiField
35
	Label lienRechercheAvancee, recherchePrecedente;
43
	Label lienRechercheAvancee, recherchePrecedente;
36
	@UiField
44
	@UiField
37
	Button boutonRecherche, boutonRechercheAvancee, boutonFermer, boutonVider;
45
	Button boutonRecherche, boutonRechercheAvancee, boutonFermer, boutonVider;
38
	@UiField
46
	@UiField
39
	TextBox recherchePrincipale, contientMots, departement, famille, genre, motCle, motCleCel, motCleDel, auteur, date;
47
	TextBox recherchePrincipale, contientMots, departement, famille, genre, motCle, motCleCel, motCleDel, auteur, date;
40
	@UiField
48
	@UiField
41
	ListBox referentiel;
49
	ListBox referentiel, pays;
42
 
50
 
43
	public MoteurRechercheVue(String labelRecherche) {
51
	public MoteurRechercheVue(String labelRecherche) {
44
		initWidget(uiBinder.createAndBindUi(this));
52
		initWidget(uiBinder.createAndBindUi(this));
45
		this.labelRecherche = labelRecherche;
53
		this.labelRecherche = labelRecherche;
46
		recherchePrincipale.setText(labelRecherche);
54
		recherchePrincipale.setText(labelRecherche);
47
		rechercheAvancee.setVisible(false);
55
		rechercheAvancee.setVisible(false);
48
	}
56
	}
49
	
57
	
50
	@Override
58
	@Override
51
	public void remplirListeReferentiels(Map<String, String> listeReferentiels) {
59
	public void remplirListeReferentiels(Map<String, String> listeReferentiels) {
52
		for (Iterator<String> iterator = listeReferentiels.keySet().iterator(); iterator.hasNext();) {
60
		for (Iterator<String> iterator = listeReferentiels.keySet().iterator(); iterator.hasNext();) {
53
			String codeRef = iterator.next();
61
			String codeRef = iterator.next();
54
			referentiel.addItem(listeReferentiels.get(codeRef), codeRef);
62
			referentiel.addItem(listeReferentiels.get(codeRef), codeRef);
55
		}
63
		}
56
		referentiel.setItemSelected(1, true);
64
		referentiel.setItemSelected(1, true);
57
	}
65
	}
-
 
66
	
-
 
67
	@Override
-
 
68
	public void remplirListePays(Map<String, String> listePays) {
-
 
69
		this.listePays = listePays;
-
 
70
		pays.clear();
-
 
71
		// Pour pouvoir annuler la selection de pays, on ajoute un item vide
-
 
72
		pays.addItem("", "");
-
 
73
		int index = 1;
-
 
74
		for (Iterator<String> iterator = listePays.keySet().iterator(); iterator.hasNext();) {
-
 
75
			String codePays = iterator.next();
-
 
76
			pays.addItem(listePays.get(codePays), codePays);
-
 
77
			
-
 
78
			if(paysEnAttente != null && codePays.equals(paysEnAttente)) {
-
 
79
				pays.setItemSelected(index, true);
-
 
80
			}
-
 
81
			index++;
-
 
82
		}
-
 
83
		
-
 
84
		if(paysEnAttente != null) {
-
 
85
			afficherLigneInfoRecherche(informationRecherche);
-
 
86
		}
-
 
87
		paysEnAttente = null;
-
 
88
	}
58
 
89
 
59
	public String getLabelRecherche() {
90
	public String getLabelRecherche() {
60
		return labelRecherche;
91
		return labelRecherche;
61
	}
92
	}
62
 
93
 
63
	public HasClickHandlers getLienRechercheAvancee() {
94
	public HasClickHandlers getLienRechercheAvancee() {
64
		return lienRechercheAvancee;
95
		return lienRechercheAvancee;
65
	}
96
	}
66
 
97
 
67
	public HasClickHandlers getBoutonRechercheSimple() {
98
	public HasClickHandlers getBoutonRechercheSimple() {
68
		return boutonRecherche;
99
		return boutonRecherche;
69
	}
100
	}
70
 
101
 
71
	public HasClickHandlers getBoutonFermer() {
102
	public HasClickHandlers getBoutonFermer() {
72
		return boutonFermer;
103
		return boutonFermer;
73
	}
104
	}
74
 
105
 
75
	public HasClickHandlers getBoutonVider() {
106
	public HasClickHandlers getBoutonVider() {
76
		return boutonVider;
107
		return boutonVider;
77
	}
108
	}
78
 
109
 
79
	public HasClickHandlers getBoutonRechercheAvancee() {
110
	public HasClickHandlers getBoutonRechercheAvancee() {
80
		return boutonRechercheAvancee;
111
		return boutonRechercheAvancee;
81
	}
112
	}
82
 
113
 
83
	public HasKeyPressHandlers getChampSaisie() {
114
	public HasKeyPressHandlers getChampSaisie() {
84
		return recherchePrincipale;
115
		return recherchePrincipale;
85
	}
116
	}
86
 
117
 
87
	public String getValeurRechercheSimple() {
118
	public String getValeurRechercheSimple() {
88
		return recherchePrincipale.getText();
119
		return recherchePrincipale.getText();
89
	}
120
	}
90
 
121
 
91
	public void setValeurRechercheSimple(String valeurRecherche) {
122
	public void setValeurRechercheSimple(String valeurRecherche) {
92
		recherchePrincipale.setText(valeurRecherche);
123
		recherchePrincipale.setText(valeurRecherche);
93
	}
124
	}
94
 
125
 
95
	public HasClickHandlers getChampSaisieCliquable() {
126
	public HasClickHandlers getChampSaisieCliquable() {
96
		return recherchePrincipale;
127
		return recherchePrincipale;
97
	}
128
	}
98
 
129
 
99
	public String getContientMots() {
130
	public String getContientMots() {
100
		return contientMots.getText();
131
		return contientMots.getText();
101
	}
132
	}
102
 
133
 
103
	public void setContientMots(String mots) {
134
	public void setContientMots(String mots) {
104
		contientMots.setText(mots);
135
		contientMots.setText(mots);
105
	}
136
	}
-
 
137
	
-
 
138
	public String getPays() {
-
 
139
		return pays.getValue(pays.getSelectedIndex());
-
 
140
	}
106
 
141
 
107
	public String getDepartement() {
142
	public String getDepartement() {
108
		return departement.getText();
143
		return departement.getText();
109
	}
144
	}
110
 
145
 
111
	public void setValeurDepartement(String dpt) {
146
	public void setValeurDepartement(String dpt) {
112
		departement.setValue(dpt);
147
		departement.setValue(dpt);
113
	}
148
	}
114
 
149
 
115
	public HasWidgets getCommune() {
150
	public HasWidgets getCommune() {
116
		return commune;
151
		return commune;
117
	}
152
	}
118
 
153
 
119
	public HasWidgets getTaxon() {
154
	public HasWidgets getTaxon() {
120
		return taxon;
155
		return taxon;
121
	}
156
	}
122
 
157
 
123
	public String getFamille() {
158
	public String getFamille() {
124
		return famille.getText();
159
		return famille.getText();
125
	}
160
	}
126
 
161
 
127
	public String getGenre() {
162
	public String getGenre() {
128
		return genre.getText();
163
		return genre.getText();
129
	}
164
	}
130
 
165
 
131
	public String getMotCle() {
166
	public String getMotCle() {
132
		return motCle.getText();
167
		return motCle.getText();
133
	}
168
	}
134
 
169
 
135
	public String getAuteur() {
170
	public String getAuteur() {
136
		return auteur.getText();
171
		return auteur.getText();
137
	}
172
	}
138
 
173
 
139
	public String getDate() {
174
	public String getDate() {
140
		return date.getText();
175
		return date.getText();
141
	}
176
	}
142
	
177
	
143
	public String getReferentiel() {
178
	public String getReferentiel() {
144
		return referentiel.getValue(referentiel.getSelectedIndex());
179
		return referentiel.getValue(referentiel.getSelectedIndex());
145
	}
180
	}
146
 
181
 
147
	public void focusSaisie() {
182
	public void focusSaisie() {
148
		this.recherchePrincipale.setFocus(true);
183
		this.recherchePrincipale.setFocus(true);
149
	}
184
	}
150
 
185
 
151
	public void ajouterVue(HasWidgets composite) {
186
	public void ajouterVue(HasWidgets composite) {
152
		composite.add(this.asWidget());
187
		composite.add(this.asWidget());
153
	}
188
	}
154
 
189
 
155
	public void basculerAffichageZoneCache() {
190
	public void basculerAffichageZoneCache() {
156
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
191
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
157
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
192
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
158
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
193
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
159
	}
194
	}
160
 
195
 
161
	public void nettoyer() {
196
	public void nettoyer() {
162
		chargerValeursRecherchePrecedente(new InformationsRecherche());
197
		chargerValeursRecherchePrecedente(new InformationsRecherche());
163
	}
198
	}
164
 
199
 
165
	public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
200
	public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
166
		recherchePrincipale.setText(informationsRecherche.getRechercheLibre());
201
		recherchePrincipale.setText(informationsRecherche.getRechercheLibre());
167
		contientMots.setText(informationsRecherche.getRechercheLibre());
202
		contientMots.setText(informationsRecherche.getRechercheLibre());
168
		departement.setText(informationsRecherche.getDepartement());
203
		departement.setText(informationsRecherche.getDepartement());
169
		famille.setText(informationsRecherche.getFamille());
204
		famille.setText(informationsRecherche.getFamille());
170
		genre.setText(informationsRecherche.getGenre());
205
		genre.setText(informationsRecherche.getGenre());
171
		motCle.setText(informationsRecherche.getMotClef());
206
		motCle.setText(informationsRecherche.getMotClef());
172
		motCleCel.setText(informationsRecherche.getMotClefCel());
207
		motCleCel.setText(informationsRecherche.getMotClefCel());
173
		motCleDel.setText(informationsRecherche.getMotClefDel());
208
		motCleDel.setText(informationsRecherche.getMotClefDel());
174
		auteur.setText(informationsRecherche.getAuteur());
209
		auteur.setText(informationsRecherche.getAuteur());
175
		date.setText(informationsRecherche.getDate());
210
		date.setText(informationsRecherche.getDate());
176
		
211
		
177
		for(int i = 0; i < referentiel.getItemCount(); i++) {
212
		for(int i = 0; i < referentiel.getItemCount(); i++) {
178
			if(referentiel.getValue(i).equals(informationsRecherche.getReferentiel())) {
213
			if(referentiel.getValue(i).equals(informationsRecherche.getReferentiel())) {
179
				referentiel.setSelectedIndex(i);
214
				referentiel.setSelectedIndex(i);
180
			}
215
			}
181
		}
216
		}
-
 
217
		
-
 
218
		// la liste des pays du champs de recherche est asynchrone 
-
 
219
		// donc elle peut ne pas avoir encore été chargée
-
 
220
		if(listePays != null) {
-
 
221
			for(int i = 0; i < pays.getItemCount(); i++) {
-
 
222
				if(pays.getValue(i).equals(paysEnAttente)) {
-
 
223
					pays.setSelectedIndex(i);
-
 
224
				}
-
 
225
			}
-
 
226
		} else {
-
 
227
			paysEnAttente = informationsRecherche.getPays();
-
 
228
		}
182
 
229
 
183
		afficherLigneInfoRecherche(informationsRecherche);
230
		afficherLigneInfoRecherche(informationsRecherche);
184
	}
231
	}
185
 
232
 
186
	/**
233
	/**
187
	 * Affiche la ligne d'en tête montrant les elements de la requête à
234
	 * Affiche la ligne d'en tête montrant les elements de la requête à
188
	 * l'utilisateur
235
	 * l'utilisateur
189
	 * 
236
	 * 
190
	 * @param informationRecherche
237
	 * @param informationRecherche
191
	 */
238
	 */
192
	private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
239
	private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
-
 
240
		
-
 
241
		this.informationRecherche = informationRecherche; 
-
 
242
		
193
		// tax dep com fam gen ta mo au date
243
		// tax dep com fam gen ta mo au date
194
		StringBuffer texteRecherchePrecedente = new StringBuffer();
244
		StringBuffer texteRecherchePrecedente = new StringBuffer();
195
 
245
 
196
		if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
246
		if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
197
			texteRecherchePrecedente.append(I18n.getVocabulary().rechercheLibre() + ":" + informationRecherche.getRechercheLibre() + " ");
247
			texteRecherchePrecedente.append(I18n.getVocabulary().rechercheLibre() + ":" + informationRecherche.getRechercheLibre() + " ");
198
		}
248
		}
199
		if (informationRecherche.getTaxon() != null && !informationRecherche.getTaxon().equals("")) {
249
		if (informationRecherche.getTaxon() != null && !informationRecherche.getTaxon().equals("")) {
200
			texteRecherchePrecedente.append(I18n.getVocabulary().taxon() + ":" + informationRecherche.getTaxon() + " ");
250
			texteRecherchePrecedente.append(I18n.getVocabulary().taxon() + ":" + informationRecherche.getTaxon() + " ");
201
		}
251
		}
202
		if (informationRecherche.getDepartement() != null && !informationRecherche.getDepartement().equals("")) {
252
		if (informationRecherche.getDepartement() != null && !informationRecherche.getDepartement().equals("")) {
203
			texteRecherchePrecedente.append(I18n.getVocabulary().departement() + ":" + informationRecherche.getDepartement() + " ");
253
			texteRecherchePrecedente.append(I18n.getVocabulary().departement() + ":" + informationRecherche.getDepartement() + " ");
204
		}
254
		}
-
 
255
		if (listePays != null && informationRecherche.getPays() != null && !informationRecherche.getPays().equals("")) {
-
 
256
			texteRecherchePrecedente.append(I18n.getVocabulary().pays() + ":" + listePays.get(informationRecherche.getPays()) + " ");
-
 
257
		}
205
		if (informationRecherche.getCommune() != null && !informationRecherche.getCommune().equals("")) {
258
		if (informationRecherche.getCommune() != null && !informationRecherche.getCommune().equals("")) {
206
			texteRecherchePrecedente.append(I18n.getVocabulary().commune() + ":" + informationRecherche.getCommune() + " ");
259
			texteRecherchePrecedente.append(I18n.getVocabulary().commune() + ":" + informationRecherche.getCommune() + " ");
207
		}
260
		}
208
		if (informationRecherche.getFamille() != null && !informationRecherche.getFamille().equals("")) {
261
		if (informationRecherche.getFamille() != null && !informationRecherche.getFamille().equals("")) {
209
			texteRecherchePrecedente.append(I18n.getVocabulary().famille() + ":" + informationRecherche.getFamille() + " ");
262
			texteRecherchePrecedente.append(I18n.getVocabulary().famille() + ":" + informationRecherche.getFamille() + " ");
210
		}
263
		}
211
		if (informationRecherche.getGenre() != null && !informationRecherche.getGenre().equals("")) {
264
		if (informationRecherche.getGenre() != null && !informationRecherche.getGenre().equals("")) {
212
			texteRecherchePrecedente.append(I18n.getVocabulary().genre() + ":" + informationRecherche.getGenre() + " ");
265
			texteRecherchePrecedente.append(I18n.getVocabulary().genre() + ":" + informationRecherche.getGenre() + " ");
213
		}
266
		}
214
		if (informationRecherche.getTag() != null && !informationRecherche.getTag().equals("")) {
267
		if (informationRecherche.getTag() != null && !informationRecherche.getTag().equals("")) {
215
			texteRecherchePrecedente.append(I18n.getVocabulary().tag() + ":" + informationRecherche.getTag() + " ");
268
			texteRecherchePrecedente.append(I18n.getVocabulary().tag() + ":" + informationRecherche.getTag() + " ");
216
		}
269
		}
217
		if (informationRecherche.getMotClef() != null && !informationRecherche.getMotClef().equals("")) {
270
		if (informationRecherche.getMotClef() != null && !informationRecherche.getMotClef().equals("")) {
218
			texteRecherchePrecedente.append(I18n.getVocabulary().mot_clef() + ":" + informationRecherche.getMotClef() + " ");
271
			texteRecherchePrecedente.append(I18n.getVocabulary().mot_clef() + ":" + informationRecherche.getMotClef() + " ");
219
		}
272
		}
220
		if (informationRecherche.getMotClefCel() != null && !informationRecherche.getMotClefCel().equals("")) {
273
		if (informationRecherche.getMotClefCel() != null && !informationRecherche.getMotClefCel().equals("")) {
221
			texteRecherchePrecedente.append(I18n.getVocabulary().tagCel() + ":" + informationRecherche.getMotClefCel() + " ");
274
			texteRecherchePrecedente.append(I18n.getVocabulary().tagCel() + ":" + informationRecherche.getMotClefCel() + " ");
222
		}
275
		}
223
		if (informationRecherche.getMotClefDel() != null && !informationRecherche.getMotClefDel().equals("")) {
276
		if (informationRecherche.getMotClefDel() != null && !informationRecherche.getMotClefDel().equals("")) {
224
			texteRecherchePrecedente.append(I18n.getVocabulary().tagDel() + ":" + informationRecherche.getMotClefDel() + " ");
277
			texteRecherchePrecedente.append(I18n.getVocabulary().tagDel() + ":" + informationRecherche.getMotClefDel() + " ");
225
		}
278
		}
226
		if (informationRecherche.getAuteur() != null && !informationRecherche.getAuteur().equals("")) {
279
		if (informationRecherche.getAuteur() != null && !informationRecherche.getAuteur().equals("")) {
227
			texteRecherchePrecedente.append(I18n.getVocabulary().auteur() + ":" + informationRecherche.getAuteur() + " ");
280
			texteRecherchePrecedente.append(I18n.getVocabulary().auteur() + ":" + informationRecherche.getAuteur() + " ");
228
		}
281
		}
229
		if (informationRecherche.getDate() != null && !informationRecherche.getDate().equals("")) {
282
		if (informationRecherche.getDate() != null && !informationRecherche.getDate().equals("")) {
230
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
283
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
231
		}
284
		}
232
		if (informationRecherche.getReferentiel() != null && !informationRecherche.getReferentiel().equals("")) {
285
		if (informationRecherche.getReferentiel() != null && !informationRecherche.getReferentiel().equals("")) {
233
			texteRecherchePrecedente.append(I18n.getVocabulary().referentiel() + ":" + informationRecherche.getReferentiel() + " ");
286
			texteRecherchePrecedente.append(I18n.getVocabulary().referentiel() + ":" + informationRecherche.getReferentiel() + " ");
234
		}
287
		}
235
 
288
		
236
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
289
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
237
	}
290
	}
238
 
291
 
239
	@Override
292
	@Override
240
	public HasKeyPressHandlers getChampsFamille() {
293
	public HasKeyPressHandlers getChampsFamille() {
241
		return famille;
294
		return famille;
242
	}
295
	}
243
 
296
 
244
	@Override
297
	@Override
245
	public HasKeyPressHandlers getChampsGenre() {
298
	public HasKeyPressHandlers getChampsGenre() {
246
		return genre;
299
		return genre;
247
	}
300
	}
248
 
301
 
249
	@Override
302
	@Override
250
	public HasKeyPressHandlers getChampsMotCle() {
303
	public HasKeyPressHandlers getChampsMotCle() {
251
		return motCle;
304
		return motCle;
252
	}
305
	}
253
 
306
 
254
	@Override
307
	@Override
255
	public HasKeyPressHandlers getChampsAuteur() {
308
	public HasKeyPressHandlers getChampsAuteur() {
256
		return auteur;
309
		return auteur;
257
	}
310
	}
258
 
311
 
259
	@Override
312
	@Override
260
	public HasKeyPressHandlers getChampsDate() {
313
	public HasKeyPressHandlers getChampsDate() {
261
		return date;
314
		return date;
262
	}
315
	}
263
 
316
 
264
	@Override
317
	@Override
265
	public HasKeyPressHandlers getChampsDepartement() {
318
	public HasKeyPressHandlers getChampsDepartement() {
266
		return departement;
319
		return departement;
267
	}
320
	}
268
 
321
 
269
	@Override
322
	@Override
270
	public HasKeyPressHandlers getChampsContientMots() {
323
	public HasKeyPressHandlers getChampsContientMots() {
271
		return contientMots;
324
		return contientMots;
272
	}
325
	}
273
	
326
	
274
	public HasWidgets getZoneRss() {
327
	public HasWidgets getZoneRss() {
275
		return zoneRss;
328
		return zoneRss;
276
	}
329
	}
277
 
330
 
278
	@Override
331
	@Override
279
	public void setReferentielLectureSeule(boolean lectureSeule) {
332
	public void setReferentielLectureSeule(boolean lectureSeule) {
280
		// la listbox ne possède aucun méthode directe pour être désactivée
333
		// la listbox ne possède aucun méthode directe pour être désactivée
281
		DOM.setElementProperty(referentiel.getElement(), "disabled", "disabled");
334
		DOM.setElementProperty(referentiel.getElement(), "disabled", "disabled");
282
	}
335
	}
283
 
336
 
284
	@Override
337
	@Override
285
	public HasKeyPressHandlers getChampsMotCleDel() {
338
	public HasKeyPressHandlers getChampsMotCleDel() {
286
		return motCleDel;
339
		return motCleDel;
287
	}
340
	}
288
 
341
 
289
	@Override
342
	@Override
290
	public HasKeyPressHandlers getChampsMotCleCel() {
343
	public HasKeyPressHandlers getChampsMotCleCel() {
291
		return motCleCel;
344
		return motCleCel;
292
	}
345
	}
293
 
346
 
294
	@Override
347
	@Override
295
	public String getMotCleDel() {
348
	public String getMotCleDel() {
296
		return motCleDel.getText();
349
		return motCleDel.getText();
297
	}
350
	}
298
 
351
 
299
	@Override
352
	@Override
300
	public String getMotCleCel() {
353
	public String getMotCleCel() {
301
		return motCleCel.getText();
354
		return motCleCel.getText();
302
	}
355
	}
303
 
356
 
304
	@Override
357
	@Override
305
	public void cacherChampsTagsImage() {
358
	public void cacherChampsTagsImage() {
306
		conteneurMotCleCel.setVisible(false);
359
		conteneurMotCleCel.setVisible(false);
307
		conteneurMotCleDel.setVisible(false);
360
		conteneurMotCleDel.setVisible(false);
308
	}
361
	}
309
 
362
 
310
	@Override
363
	@Override
311
	public void cacherChampsTagsObs() {
364
	public void cacherChampsTagsObs() {
312
		conteneurMotCle.setVisible(false);
365
		conteneurMotCle.setVisible(false);
313
	}
366
	}
314
}
367
}