Subversion Repositories eFlore/Applications.del

Rev

Rev 2171 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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