Subversion Repositories eFlore/Applications.del

Rev

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

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