Subversion Repositories eFlore/Applications.del

Rev

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

Rev 545 Rev 564
Line 16... Line 16...
16
import com.google.gwt.user.client.ui.TextBox;
16
import com.google.gwt.user.client.ui.TextBox;
17
import com.google.gwt.user.client.ui.Widget;
17
import com.google.gwt.user.client.ui.Widget;
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
19
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
-
 
20
 
Line 20... Line 21...
20
 
21
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {
21
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {}
22
	}
Line 22... Line 23...
22
 
23
 
Line 68... Line 69...
68
	}
69
	}
Line 69... Line 70...
69
 
70
 
70
	public String getValeurRechercheSimple() {
71
	public String getValeurRechercheSimple() {
71
		return recherchePrincipale.getText();
72
		return recherchePrincipale.getText();
72
	}
73
	}
73
	
74
 
74
	public void setValeurRechercheSimple(String valeurRecherche) {
75
	public void setValeurRechercheSimple(String valeurRecherche) {
75
		recherchePrincipale.setText(valeurRecherche);
76
		recherchePrincipale.setText(valeurRecherche);
76
	}
77
	}
77
	
78
 
78
	public HasClickHandlers getChampSaisieCliquable() {
79
	public HasClickHandlers getChampSaisieCliquable() {
79
		return recherchePrincipale;
80
		return recherchePrincipale;
80
	}
81
	}
81
	
82
 
82
	public String getContientMots() {
83
	public String getContientMots() {
83
		return contientMots.getText();
84
		return contientMots.getText();
Line 84... Line 85...
84
	}
85
	}
85
 
86
 
86
	public void setContientMots(String mots) {
87
	public void setContientMots(String mots) {
87
		contientMots.setText(mots);
88
		contientMots.setText(mots);
88
	}
89
	}
89
	
90
 
90
	public String getDepartement() {
91
	public String getDepartement() {
Line 91... Line 92...
91
		return departement.getText();
92
		return departement.getText();
Line 124... Line 125...
124
	}
125
	}
Line 125... Line 126...
125
 
126
 
126
	public String getDate() {
127
	public String getDate() {
127
		return date.getText();
128
		return date.getText();
128
	}
129
	}
129
	
130
 
130
	public void focusSaisie() {
131
	public void focusSaisie() {
131
		this.recherchePrincipale.setFocus(true);
132
		this.recherchePrincipale.setFocus(true);
Line 132... Line 133...
132
	}
133
	}
133
 
134
 
134
	public void ajouterVue(HasWidgets composite) {
135
	public void ajouterVue(HasWidgets composite) {
135
		composite.add(this.asWidget());
136
		composite.add(this.asWidget());
136
	}
137
	}
137
	
138
 
138
	public void basculerAffichageZoneCache() {
139
	public void basculerAffichageZoneCache() {
139
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
140
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
140
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
141
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
141
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
142
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
142
	}
143
	}
143
	
144
 
144
	public void nettoyer() {
145
	public void nettoyer() {
145
		chargerValeursRecherchePrecedente(new InformationsRecherche());
146
		chargerValeursRecherchePrecedente(new InformationsRecherche());
146
	}
147
	}
147
	
148
 
148
	public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
149
	public void chargerValeursRecherchePrecedente(InformationsRecherche informationsRecherche) {
149
		recherchePrincipale.setText(informationsRecherche.getRechercheLibre());
150
		recherchePrincipale.setText(informationsRecherche.getRechercheLibre());
150
		contientMots.setText(informationsRecherche.getRechercheLibre());
151
		contientMots.setText(informationsRecherche.getRechercheLibre());
Line 200... Line 201...
200
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
201
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
201
		}
202
		}
Line 202... Line 203...
202
 
203
 
203
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
204
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
-
 
205
	}
-
 
206
 
-
 
207
	@Override
-
 
208
	public HasKeyPressHandlers getChampsFamille() {
-
 
209
		return famille;
-
 
210
	}
-
 
211
 
-
 
212
	@Override
-
 
213
	public HasKeyPressHandlers getChampsGenre() {
-
 
214
		return genre;
-
 
215
	}
-
 
216
 
-
 
217
	@Override
-
 
218
	public HasKeyPressHandlers getChampsTag() {
-
 
219
		return tag;
-
 
220
	}
-
 
221
 
-
 
222
	@Override
-
 
223
	public HasKeyPressHandlers getChampsMotCle() {
-
 
224
		return motCle;
-
 
225
	}
-
 
226
 
-
 
227
	@Override
-
 
228
	public HasKeyPressHandlers getChampsAuteur() {
-
 
229
		return auteur;
-
 
230
	}
-
 
231
 
-
 
232
	@Override
-
 
233
	public HasKeyPressHandlers getChampsDate() {
-
 
234
		return date;
204
	}
235
	}
205
}
236
}