Subversion Repositories eFlore/Applications.del

Rev

Rev 560 | Rev 581 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 560 Rev 564
Line 74... Line 74...
74
		public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche);
74
		public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche);
Line 75... Line 75...
75
 
75
 
Line 76... Line 76...
76
		public void focusSaisie();
76
		public void focusSaisie();
-
 
77
 
-
 
78
		public void nettoyer();
-
 
79
 
-
 
80
		public HasKeyPressHandlers getChampsFamille();
-
 
81
 
-
 
82
		public HasKeyPressHandlers getChampsGenre();
-
 
83
 
-
 
84
		public HasKeyPressHandlers getChampsTag();
-
 
85
 
-
 
86
		public HasKeyPressHandlers getChampsMotCle();
-
 
87
 
-
 
88
		public HasKeyPressHandlers getChampsAuteur();
-
 
89
 
77
 
90
		public HasKeyPressHandlers getChampsDate();
Line 78... Line 91...
78
		public void nettoyer();
91
 
79
	}
92
	}
80
 
93
 
Line 110... Line 123...
110
		if (completionCommunesPresenteur == null)
123
		if (completionCommunesPresenteur == null)
111
			this.creerCompletionCommunes();
124
			this.creerCompletionCommunes();
112
		gererEvenements();
125
		gererEvenements();
113
	}
126
	}
Line 114... Line -...
114
 
-
 
115
	private Vue getVue() {
-
 
116
		return vue;
-
 
117
	}
-
 
118
 
127
 
119
	public ModeRecherche getMode() {
128
	public ModeRecherche getMode() {
120
		return modeRecherche;
129
		return modeRecherche;
Line 121... Line 130...
121
	}
130
	}
Line 247... Line 256...
247
				if (vue.getValeurRechercheSimple().equals(vue.getLabelRecherche())) {
256
				if (vue.getValeurRechercheSimple().equals(vue.getLabelRecherche())) {
248
					vue.setValeurRechercheSimple("");
257
					vue.setValeurRechercheSimple("");
249
				}
258
				}
250
			}
259
			}
251
		});
260
		});
-
 
261
 
-
 
262
		vue.getChampsAuteur().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
263
 
-
 
264
		vue.getChampsDate().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
265
 
-
 
266
		vue.getChampsFamille().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
267
 
-
 
268
		vue.getChampsGenre().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
269
 
-
 
270
		vue.getChampsMotCle().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
271
 
-
 
272
		vue.getChampsTag().addKeyPressHandler(createKeyboardAdvancedSearchHandler());
-
 
273
 
-
 
274
	}
-
 
275
 
-
 
276
	public KeyPressHandler createKeyboardAdvancedSearchHandler() {
-
 
277
		return new KeyPressHandler() {
-
 
278
			public void onKeyPress(KeyPressEvent event) {
-
 
279
				if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
-
 
280
					vue.basculerAffichageZoneCache();
-
 
281
					collecterInfosRecherche();
-
 
282
					afficherRequeteEtLancerRecherche();
-
 
283
				}
-
 
284
			}
-
 
285
		};
252
	}
286
	}
Line 253... Line 287...
253
 
287
 
254
	private void nettoyerChamps() {
288
	private void nettoyerChamps() {
255
		completionCommunesPresenteur.nettoyer();
289
		completionCommunesPresenteur.nettoyer();
Line 270... Line 304...
270
			informationRecherche.setMotClef(vue.getMotCle());
304
			informationRecherche.setMotClef(vue.getMotCle());
271
			informationRecherche.setAuteur(vue.getAuteur());
305
			informationRecherche.setAuteur(vue.getAuteur());
272
			informationRecherche.setDate(vue.getDate());
306
			informationRecherche.setDate(vue.getDate());
273
		}
307
		}
Line 274... Line -...
274
 
-
 
275
 
308
 
276
		if (estPourRechercheImages()) {
309
		if (estPourRechercheImages()) {
277
			CacheClient.getInstance().setPageCouranteRechercheImages(1);
310
			CacheClient.getInstance().setPageCouranteRechercheImages(1);
278
			CacheClient.getInstance().setInformationsRechercheImage(informationRecherche);
311
			CacheClient.getInstance().setInformationsRechercheImage(informationRecherche);
279
		} else if (estPourRechercheObservations()) {
312
		} else if (estPourRechercheObservations()) {