Subversion Repositories eFlore/Applications.del

Rev

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

Rev 552 Rev 553
1
package org.tela_botanica.del.client.composants.moteurrecherche;
1
package org.tela_botanica.del.client.composants.moteurrecherche;
2
 
2
 
3
import org.tela_botanica.del.client.cache.CacheClient;
3
import org.tela_botanica.del.client.cache.CacheClient;
4
import org.tela_botanica.del.client.composants.formulaires.AutoCompletionComboBoxPresenteur;
4
import org.tela_botanica.del.client.composants.formulaires.AutoCompletionComboBoxPresenteur;
5
import org.tela_botanica.del.client.composants.formulaires.AutoCompletionComboBoxVue;
5
import org.tela_botanica.del.client.composants.formulaires.AutoCompletionComboBoxVue;
6
import org.tela_botanica.del.client.composants.presenteur.Presenteur;
6
import org.tela_botanica.del.client.composants.presenteur.Presenteur;
-
 
7
import org.tela_botanica.del.client.config.Config;
7
import org.tela_botanica.del.client.modeles.InformationsRecherche;
8
import org.tela_botanica.del.client.modeles.InformationsRecherche;
8
import org.tela_botanica.del.client.modeles.ModeRecherche;
9
import org.tela_botanica.del.client.modeles.ModeRecherche;
9
import org.tela_botanica.del.client.utils.UtilitairesAutoCompletionService;
10
import org.tela_botanica.del.client.utils.UtilitairesAutoCompletionService;
10
 
11
 
11
import com.google.gwt.event.dom.client.ClickEvent;
12
import com.google.gwt.event.dom.client.ClickEvent;
12
import com.google.gwt.event.dom.client.ClickHandler;
13
import com.google.gwt.event.dom.client.ClickHandler;
13
import com.google.gwt.event.dom.client.HasClickHandlers;
14
import com.google.gwt.event.dom.client.HasClickHandlers;
14
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
15
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
15
import com.google.gwt.event.dom.client.KeyCodes;
16
import com.google.gwt.event.dom.client.KeyCodes;
16
import com.google.gwt.event.dom.client.KeyPressEvent;
17
import com.google.gwt.event.dom.client.KeyPressEvent;
17
import com.google.gwt.event.dom.client.KeyPressHandler;
18
import com.google.gwt.event.dom.client.KeyPressHandler;
18
import com.google.gwt.http.client.Response;
19
import com.google.gwt.http.client.Response;
19
import com.google.gwt.user.client.ui.HasWidgets;
20
import com.google.gwt.user.client.ui.HasWidgets;
20
import com.google.gwt.user.client.ui.IsWidget;
21
import com.google.gwt.user.client.ui.IsWidget;
21
 
22
 
22
public abstract class MoteurRecherchePresenteur extends Presenteur {
23
public abstract class MoteurRecherchePresenteur extends Presenteur {
23
 
24
 
24
	public abstract interface Vue extends IsWidget {
25
	public abstract interface Vue extends IsWidget {
25
		public void ajouterVue(HasWidgets composite);
26
		public void ajouterVue(HasWidgets composite);
26
		public HasClickHandlers getLienRechercheAvancee();
27
		public HasClickHandlers getLienRechercheAvancee();
27
		public void basculerAffichageZoneCache();
28
		public void basculerAffichageZoneCache();
28
		public HasClickHandlers getBoutonRechercheSimple();
29
		public HasClickHandlers getBoutonRechercheSimple();
29
		public HasClickHandlers getBoutonFermer();
30
		public HasClickHandlers getBoutonFermer();
30
		public HasClickHandlers getBoutonVider();
31
		public HasClickHandlers getBoutonVider();
31
		public HasClickHandlers getBoutonRechercheAvancee();
32
		public HasClickHandlers getBoutonRechercheAvancee();
32
		public HasKeyPressHandlers getChampSaisie();
33
		public HasKeyPressHandlers getChampSaisie();
33
		public HasClickHandlers getChampSaisieCliquable();
34
		public HasClickHandlers getChampSaisieCliquable();
34
		public String getValeurRechercheSimple();
35
		public String getValeurRechercheSimple();
35
		public String getLabelRecherche();
36
		public String getLabelRecherche();
36
		public String getContientMots();
37
		public String getContientMots();
37
		public String getDepartement();
38
		public String getDepartement();
38
		public HasWidgets getCommune();
39
		public HasWidgets getCommune();
39
		public HasWidgets getTaxon();
40
		public HasWidgets getTaxon();
40
		public String getFamille();
41
		public String getFamille();
41
		public String getGenre();
42
		public String getGenre();
42
		public String getTag();
43
		public String getTag();
43
		public String getMotCle();
44
		public String getMotCle();
44
		public String getAuteur();
45
		public String getAuteur();
45
		public String getDate();
46
		public String getDate();
46
		public void setValeurRechercheSimple(String valeurRecherche);
47
		public void setValeurRechercheSimple(String valeurRecherche);
47
		public void setContientMots(String mots);
48
		public void setContientMots(String mots);
48
		public void setValeurDepartement(String dpt);
49
		public void setValeurDepartement(String dpt);
49
		public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche);
50
		public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche);
50
		public void focusSaisie();
51
		public void focusSaisie();
51
		public void nettoyer();
52
		public void nettoyer();
52
	}
53
	}
53
 
54
 
-
 
55
	private Vue vue;
54
	private final Vue vue;
56
	private Config config;
55
	private ModeRecherche modeRecherche;
57
	private ModeRecherche modeRecherche;
56
	public enum TypeMoteur {SIMPLE, AVANCEE};
58
	public enum TypeMoteur {SIMPLE, AVANCEE};
57
	private TypeMoteur typeMoteur = TypeMoteur.SIMPLE;
59
	private TypeMoteur typeMoteur = TypeMoteur.SIMPLE;
58
 
60
 
59
	private AutoCompletionComboBoxPresenteur completionTaxonsPresenteur;
61
	private AutoCompletionComboBoxPresenteur completionTaxonsPresenteur = null;
60
	private AutoCompletionComboBoxPresenteur completionCommunesPresenteur;
62
	private AutoCompletionComboBoxPresenteur completionCommunesPresenteur = null;
61
	
-
 
62
	public MoteurRecherchePresenteur(Vue vue, ModeRecherche mode) {
63
	
63
		this.vue = vue;
-
 
64
		setMode(mode);
-
 
65
		this.creerCompletionTaxons();
-
 
66
		this.creerCompletionCommunes();
64
	public MoteurRecherchePresenteur(Vue vue, ModeRecherche mode) {
67
		gererEvenements();
65
		initialiser(vue, mode);
68
	}
66
	}
69
	
67
	
70
	public MoteurRecherchePresenteur(AutoCompletionComboBoxPresenteur presenteurAutoCompletionTaxon, 
68
	public MoteurRecherchePresenteur(AutoCompletionComboBoxPresenteur presenteurAutoCompletionTaxon, 
71
									AutoCompletionComboBoxPresenteur presenteurAutoCompletionCommunes,
69
									AutoCompletionComboBoxPresenteur presenteurAutoCompletionCommunes,
72
									Vue vue, ModeRecherche mode) {
70
									Vue vue, ModeRecherche mode) {
73
		this.vue = vue;
-
 
74
		setMode(mode);
-
 
75
		completionTaxonsPresenteur = presenteurAutoCompletionTaxon;
71
		completionTaxonsPresenteur = presenteurAutoCompletionTaxon;
76
		completionCommunesPresenteur = presenteurAutoCompletionCommunes;
72
		completionCommunesPresenteur = presenteurAutoCompletionCommunes;
-
 
73
		initialiser(vue, mode);
-
 
74
	}
-
 
75
	
-
 
76
	private void initialiser(Vue vue, ModeRecherche mode) {
-
 
77
		this.vue = vue;
-
 
78
		setMode(mode);
-
 
79
		this.config = new Config();
-
 
80
		if (completionTaxonsPresenteur == null) this.creerCompletionTaxons();
-
 
81
		if (completionCommunesPresenteur == null) this.creerCompletionCommunes();
77
		gererEvenements();
82
		gererEvenements();
78
	}
83
	}
79
	
84
	
80
	private Vue getVue() {
85
	private Vue getVue() {
81
		return vue;
86
		return vue;
82
	}
87
	}
83
	
88
	
84
	public ModeRecherche getMode() {
89
	public ModeRecherche getMode() {
85
		return modeRecherche;
90
		return modeRecherche;
86
	}
91
	}
87
	
92
	
88
	private void setMode(ModeRecherche mode) {
93
	private void setMode(ModeRecherche mode) {
89
		modeRecherche = mode;
94
		modeRecherche = mode;
90
	}
95
	}
91
	
96
	
92
	public void setTypeMoteur(TypeMoteur typeMoteur) {
97
	public void setTypeMoteur(TypeMoteur typeMoteur) {
93
		this.typeMoteur = typeMoteur;
98
		this.typeMoteur = typeMoteur;
94
	}
99
	}
95
 
100
 
96
	public boolean estPourRechercheImages() {
101
	public boolean estPourRechercheImages() {
97
		return (modeRecherche == ModeRecherche.MODE_IMAGE);
102
		return (modeRecherche == ModeRecherche.MODE_IMAGE);
98
	}
103
	}
99
 
104
 
100
	public boolean estPourRechercheObservations() {
105
	public boolean estPourRechercheObservations() {
101
		return (modeRecherche == ModeRecherche.MODE_OBSERVATION);
106
		return (modeRecherche == ModeRecherche.MODE_OBSERVATION);
102
	}	
107
	}	
103
 
108
 
104
	private void creerCompletionTaxons() {
109
	private void creerCompletionTaxons() {
-
 
110
		String url = this.config.getUrl("nomSciCompletionService");
105
		completionTaxonsPresenteur = new AutoCompletionComboBoxPresenteur(new AutoCompletionComboBoxVue(), UtilitairesAutoCompletionService.urlServiceCompletionNomLocale) {
111
		completionTaxonsPresenteur = new AutoCompletionComboBoxPresenteur(new AutoCompletionComboBoxVue(), url) {
106
			protected String effectuerPreTraitementChaineRequete(String requete) {
112
			protected String effectuerPreTraitementChaineRequete(String requete) {
107
				return UtilitairesAutoCompletionService.effectuerPreTraitementChaineRequeteGenreEspeceSlash(requete);
113
				return UtilitairesAutoCompletionService.effectuerPreTraitementChaineRequeteGenreEspeceSlash(requete);
108
				// A décommenter lors de l'utilisation des web services eflore
114
				// A décommenter lors de l'utilisation des web services eflore
109
				// return
115
				// return
110
				// RetourAutoCompletionService.effectuerPreTraitementChaineRequeteGenreEspeceEflore(requete);
116
				// RetourAutoCompletionService.effectuerPreTraitementChaineRequeteGenreEspeceEflore(requete);
111
			}
117
			}
112
 
118
 
113
			@Override
119
			@Override
114
			protected String[] parserResultatRequete(Response response) {
120
			protected String[] parserResultatRequete(Response response) {
115
				return UtilitairesAutoCompletionService.parserRetourSimple(response);
121
				return UtilitairesAutoCompletionService.parserRetourSimple(response);
116
				// A décommenter lors de l'utilisation des web services eflore
122
				// A décommenter lors de l'utilisation des web services eflore
117
				// return RetourAutoCompletionService.parserRetourOss(response);
123
				// return RetourAutoCompletionService.parserRetourOss(response);
118
			}
124
			}
119
		};
125
		};
120
	}
126
	}
121
	
127
	
122
	private void creerCompletionCommunes() {
128
	private void creerCompletionCommunes() {
-
 
129
		String url = this.config.getUrl("communeCompletionService");
123
		completionCommunesPresenteur = new AutoCompletionComboBoxPresenteur(new AutoCompletionComboBoxVue(), UtilitairesAutoCompletionService.urlServiceCompletionCommunes) {
130
		completionCommunesPresenteur = new AutoCompletionComboBoxPresenteur(new AutoCompletionComboBoxVue(), url) {
124
			protected String effectuerPreTraitementChaineRequete(String requete) {
131
			protected String effectuerPreTraitementChaineRequete(String requete) {
125
				return requete;
132
				return requete;
126
			}
133
			}
127
			
134
			
128
			@Override
135
			@Override
129
			protected void surSelectionSuggestion(String suggestion) {
136
			protected void surSelectionSuggestion(String suggestion) {
130
				collecterInfosRecherche();
137
				collecterInfosRecherche();
131
				setValeur(getInformationsRechercheEnCache().getCommune());
138
				setValeur(getInformationsRechercheEnCache().getCommune());
132
				vue.setValeurDepartement(getInformationsRechercheEnCache().getDepartement());
139
				vue.setValeurDepartement(getInformationsRechercheEnCache().getDepartement());
133
			}
140
			}
134
 
141
 
135
			@Override
142
			@Override
136
			protected String[] parserResultatRequete(Response response) {
143
			protected String[] parserResultatRequete(Response response) {
137
				return UtilitairesAutoCompletionService.parserRetourSimple(response);
144
				return UtilitairesAutoCompletionService.parserRetourSimple(response);
138
			}
145
			}
139
		};
146
		};
140
	}
147
	}
141
	
148
	
142
	@Override
149
	@Override
143
	public void go(HasWidgets composite) {
150
	public void go(HasWidgets composite) {
144
		afficherRequeteEtLancerRecherche();
151
		afficherRequeteEtLancerRecherche();
145
		completionTaxonsPresenteur.go(vue.getTaxon());
152
		completionTaxonsPresenteur.go(vue.getTaxon());
146
		completionCommunesPresenteur.go(vue.getCommune());
153
		completionCommunesPresenteur.go(vue.getCommune());
147
		vue.ajouterVue(composite);
154
		vue.ajouterVue(composite);
148
		vue.focusSaisie();
155
		vue.focusSaisie();
149
	}
156
	}
150
 
157
 
151
	@Override
158
	@Override
152
	protected void gererEvenements() {
159
	protected void gererEvenements() {
153
		vue.getLienRechercheAvancee().addClickHandler(new ClickHandler() {
160
		vue.getLienRechercheAvancee().addClickHandler(new ClickHandler() {
154
			public void onClick(ClickEvent event) {
161
			public void onClick(ClickEvent event) {
155
				vue.setContientMots(vue.getValeurRechercheSimple());
162
				vue.setContientMots(vue.getValeurRechercheSimple());
156
				vue.basculerAffichageZoneCache();
163
				vue.basculerAffichageZoneCache();
157
			}
164
			}
158
		});
165
		});
159
 
166
 
160
		vue.getBoutonRechercheSimple().addClickHandler(new ClickHandler() {
167
		vue.getBoutonRechercheSimple().addClickHandler(new ClickHandler() {
161
			public void onClick(ClickEvent event) {
168
			public void onClick(ClickEvent event) {
162
				setTypeMoteur(TypeMoteur.SIMPLE);
169
				setTypeMoteur(TypeMoteur.SIMPLE);
163
				collecterInfosRecherche();
170
				collecterInfosRecherche();
164
				afficherRequeteEtLancerRecherche();
171
				afficherRequeteEtLancerRecherche();
165
			}
172
			}
166
		});
173
		});
167
 
174
 
168
		vue.getBoutonFermer().addClickHandler(new ClickHandler() {
175
		vue.getBoutonFermer().addClickHandler(new ClickHandler() {
169
			public void onClick(ClickEvent event) {
176
			public void onClick(ClickEvent event) {
170
				vue.setValeurRechercheSimple(vue.getContientMots());
177
				vue.setValeurRechercheSimple(vue.getContientMots());
171
				vue.basculerAffichageZoneCache();
178
				vue.basculerAffichageZoneCache();
172
			}
179
			}
173
		});
180
		});
174
 
181
 
175
		vue.getBoutonVider().addClickHandler(new ClickHandler() {
182
		vue.getBoutonVider().addClickHandler(new ClickHandler() {
176
			public void onClick(ClickEvent event) {
183
			public void onClick(ClickEvent event) {
177
				nettoyerChamps();
184
				nettoyerChamps();
178
				InformationsRecherche infosRecherche = new InformationsRecherche();
185
				InformationsRecherche infosRecherche = new InformationsRecherche();
179
				if (estPourRechercheImages()) {
186
				if (estPourRechercheImages()) {
180
					CacheClient.getInstance().setInformationsRechercheImage(infosRecherche);
187
					CacheClient.getInstance().setInformationsRechercheImage(infosRecherche);
181
				} else if (estPourRechercheObservations()) {
188
				} else if (estPourRechercheObservations()) {
182
					CacheClient.getInstance().setInformationsRechercheObservation(infosRecherche);
189
					CacheClient.getInstance().setInformationsRechercheObservation(infosRecherche);
183
				}
190
				}
184
			}
191
			}
185
		});
192
		});
186
 
193
 
187
		vue.getBoutonRechercheAvancee().addClickHandler(new ClickHandler() {
194
		vue.getBoutonRechercheAvancee().addClickHandler(new ClickHandler() {
188
			public void onClick(ClickEvent event) {
195
			public void onClick(ClickEvent event) {
189
				setTypeMoteur(TypeMoteur.AVANCEE);
196
				setTypeMoteur(TypeMoteur.AVANCEE);
190
				collecterInfosRecherche();
197
				collecterInfosRecherche();
191
				vue.basculerAffichageZoneCache();
198
				vue.basculerAffichageZoneCache();
192
				afficherRequeteEtLancerRecherche();
199
				afficherRequeteEtLancerRecherche();
193
			}
200
			}
194
		});
201
		});
195
 
202
 
196
		vue.getChampSaisie().addKeyPressHandler(new KeyPressHandler() {
203
		vue.getChampSaisie().addKeyPressHandler(new KeyPressHandler() {
197
			public void onKeyPress(KeyPressEvent event) {
204
			public void onKeyPress(KeyPressEvent event) {
198
				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
205
				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
199
					setTypeMoteur(TypeMoteur.SIMPLE);
206
					setTypeMoteur(TypeMoteur.SIMPLE);
200
					collecterInfosRecherche();
207
					collecterInfosRecherche();
201
					afficherRequeteEtLancerRecherche();
208
					afficherRequeteEtLancerRecherche();
202
				}
209
				}
203
			}
210
			}
204
		});
211
		});
205
 
212
 
206
		vue.getChampSaisieCliquable().addClickHandler(new ClickHandler() {
213
		vue.getChampSaisieCliquable().addClickHandler(new ClickHandler() {
207
			public void onClick(ClickEvent event) {
214
			public void onClick(ClickEvent event) {
208
				if (vue.getValeurRechercheSimple().equals(vue.getLabelRecherche())) {
215
				if (vue.getValeurRechercheSimple().equals(vue.getLabelRecherche())) {
209
					vue.setValeurRechercheSimple("");
216
					vue.setValeurRechercheSimple("");
210
				}
217
				}
211
			}
218
			}
212
		});
219
		});
213
	}
220
	}
214
	
221
	
215
	private void nettoyerChamps() {
222
	private void nettoyerChamps() {
216
		completionCommunesPresenteur.nettoyer();
223
		completionCommunesPresenteur.nettoyer();
217
		completionTaxonsPresenteur.nettoyer();
224
		completionTaxonsPresenteur.nettoyer();
218
		vue.nettoyer();
225
		vue.nettoyer();
219
	}
226
	}
220
 
227
 
221
	public void collecterInfosRecherche() {
228
	public void collecterInfosRecherche() {
222
		InformationsRecherche informationRecherche = new InformationsRecherche();
229
		InformationsRecherche informationRecherche = new InformationsRecherche();
223
		informationRecherche.setRechercheLibre(this.getRechercheLibre());
230
		informationRecherche.setRechercheLibre(this.getRechercheLibre());
224
		if (this.typeMoteur == TypeMoteur.AVANCEE) {
231
		if (this.typeMoteur == TypeMoteur.AVANCEE) {
225
			informationRecherche.setTaxon(completionTaxonsPresenteur.getValeur());
232
			informationRecherche.setTaxon(completionTaxonsPresenteur.getValeur());
226
			informationRecherche.setDepartement(vue.getDepartement());
233
			informationRecherche.setDepartement(vue.getDepartement());
227
			informationRecherche.setCommune(completionCommunesPresenteur.getValeur());
234
			informationRecherche.setCommune(completionCommunesPresenteur.getValeur());
228
			informationRecherche.setFamille(vue.getFamille());
235
			informationRecherche.setFamille(vue.getFamille());
229
			informationRecherche.setGenre(vue.getGenre());
236
			informationRecherche.setGenre(vue.getGenre());
230
			informationRecherche.setTag(vue.getTag());
237
			informationRecherche.setTag(vue.getTag());
231
			informationRecherche.setMotClef(vue.getMotCle());
238
			informationRecherche.setMotClef(vue.getMotCle());
232
			informationRecherche.setAuteur(vue.getAuteur());
239
			informationRecherche.setAuteur(vue.getAuteur());
233
			informationRecherche.setDate(vue.getDate());
240
			informationRecherche.setDate(vue.getDate());
234
		}
241
		}
235
 
242
 
236
		if (estPourRechercheImages()) {
243
		if (estPourRechercheImages()) {
237
			CacheClient.getInstance().setPageCouranteRechercheImages(1);
244
			CacheClient.getInstance().setPageCouranteRechercheImages(1);
238
			CacheClient.getInstance().setInformationsRechercheImage(informationRecherche);
245
			CacheClient.getInstance().setInformationsRechercheImage(informationRecherche);
239
		} else if (estPourRechercheObservations()) {
246
		} else if (estPourRechercheObservations()) {
240
			CacheClient.getInstance().setPageCouranteRechercheObservations(1);
247
			CacheClient.getInstance().setPageCouranteRechercheObservations(1);
241
			CacheClient.getInstance().setInformationsRechercheObservation(informationRecherche);
248
			CacheClient.getInstance().setInformationsRechercheObservation(informationRecherche);
242
		}
249
		}
243
	}
250
	}
244
	
251
	
245
	private String getRechercheLibre() {
252
	private String getRechercheLibre() {
246
		String rechercheLibre = "";
253
		String rechercheLibre = "";
247
		switch (this.typeMoteur) {
254
		switch (this.typeMoteur) {
248
			case SIMPLE : 
255
			case SIMPLE : 
249
				rechercheLibre = vue.getValeurRechercheSimple();
256
				rechercheLibre = vue.getValeurRechercheSimple();
250
				break;
257
				break;
251
			case AVANCEE : 
258
			case AVANCEE : 
252
				rechercheLibre = vue.getContientMots();
259
				rechercheLibre = vue.getContientMots();
253
				break;
260
				break;
254
			default:
261
			default:
255
				// TODO : voir comment gérer les exceptions proprement
262
				// TODO : voir comment gérer les exceptions proprement
256
				//throw new Exception("Le type de moteur de recherche indiqué n'est pas disponilbe");
263
				//throw new Exception("Le type de moteur de recherche indiqué n'est pas disponilbe");
257
		}
264
		}
258
		return rechercheLibre;
265
		return rechercheLibre;
259
	}
266
	}
260
 
267
 
261
	private InformationsRecherche getInformationsRechercheEnCache() {
268
	private InformationsRecherche getInformationsRechercheEnCache() {
262
		if (estPourRechercheImages()) {
269
		if (estPourRechercheImages()) {
263
			return CacheClient.getInstance().getInformationsRechercheImage();
270
			return CacheClient.getInstance().getInformationsRechercheImage();
264
		} else if (estPourRechercheObservations()) {
271
		} else if (estPourRechercheObservations()) {
265
			return CacheClient.getInstance().getInformationsRechercheObservation();
272
			return CacheClient.getInstance().getInformationsRechercheObservation();
266
		}
273
		}
267
		return null;
274
		return null;
268
	}
275
	}
269
 
276
 
270
	public void afficherRequeteEtLancerRecherche() {
277
	public void afficherRequeteEtLancerRecherche() {
271
		InformationsRecherche informationsRecherche = getInformationsRechercheEnCache();
278
		InformationsRecherche informationsRecherche = getInformationsRechercheEnCache();
272
		if (informationsRecherche != null) {
279
		if (informationsRecherche != null) {
273
			completionTaxonsPresenteur.setValeur(informationsRecherche.getTaxon());
280
			completionTaxonsPresenteur.setValeur(informationsRecherche.getTaxon());
274
			completionCommunesPresenteur.setValeur(informationsRecherche.getCommune());
281
			completionCommunesPresenteur.setValeur(informationsRecherche.getCommune());
275
			vue.chargerValeursRecherchePrecedente(informationsRecherche);
282
			vue.chargerValeursRecherchePrecedente(informationsRecherche);
276
		}
283
		}
277
		lancerRecherche();
284
		lancerRecherche();
278
	}
285
	}
279
 
286
 
280
	public abstract void lancerRecherche();
287
	public abstract void lancerRecherche();
281
}
288
}