Subversion Repositories eFlore/Applications.del

Rev

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

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