Subversion Repositories eFlore/Applications.del

Rev

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

Rev 533 Rev 545
Line 8... Line 8...
8
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
8
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
9
import com.google.gwt.uibinder.client.UiBinder;
9
import com.google.gwt.uibinder.client.UiBinder;
10
import com.google.gwt.uibinder.client.UiField;
10
import com.google.gwt.uibinder.client.UiField;
11
import com.google.gwt.user.client.ui.Button;
11
import com.google.gwt.user.client.ui.Button;
12
import com.google.gwt.user.client.ui.Composite;
12
import com.google.gwt.user.client.ui.Composite;
13
import com.google.gwt.user.client.ui.HasText;
-
 
14
import com.google.gwt.user.client.ui.HasWidgets;
13
import com.google.gwt.user.client.ui.HasWidgets;
15
import com.google.gwt.user.client.ui.Label;
14
import com.google.gwt.user.client.ui.Label;
16
import com.google.gwt.user.client.ui.Panel;
15
import com.google.gwt.user.client.ui.Panel;
17
import com.google.gwt.user.client.ui.TextBox;
16
import com.google.gwt.user.client.ui.TextBox;
18
import com.google.gwt.user.client.ui.Widget;
17
import com.google.gwt.user.client.ui.Widget;
Line 19... Line 18...
19
 
18
 
Line 20... Line 19...
20
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
19
public class MoteurRechercheVue extends Composite implements MoteurRecherchePresenteur.Vue {
21
 
-
 
Line 22... Line 20...
22
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {
20
 
23
	}
21
	interface Binder extends UiBinder<Widget, MoteurRechercheVue> {}
Line 24... Line 22...
24
 
22
 
Line 47... Line 45...
47
 
45
 
48
	public HasClickHandlers getLienRechercheAvancee() {
46
	public HasClickHandlers getLienRechercheAvancee() {
49
		return lienRechercheAvancee;
47
		return lienRechercheAvancee;
Line 50... Line -...
50
	}
-
 
51
 
-
 
52
	public void basculerAffichageZoneCache() {
-
 
53
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
-
 
54
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
-
 
55
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
-
 
56
	}
48
	}
57
 
49
 
58
	public HasClickHandlers getBoutonRechercheSimple() {
50
	public HasClickHandlers getBoutonRechercheSimple() {
Line 59... Line 51...
59
		return boutonRecherche;
51
		return boutonRecherche;
Line 77... Line 69...
77
 
69
 
78
	public String getValeurRechercheSimple() {
70
	public String getValeurRechercheSimple() {
79
		return recherchePrincipale.getText();
71
		return recherchePrincipale.getText();
Line 80... Line 72...
80
	}
72
	}
81
	
73
	
82
	public String getContientMots() {
74
	public void setValeurRechercheSimple(String valeurRecherche) {
83
		return contientMots.getText();
75
		recherchePrincipale.setText(valeurRecherche);
84
	}
76
	}
85
 
77
	
86
	public HasClickHandlers getChampSaisieCliquable() {
78
	public HasClickHandlers getChampSaisieCliquable() {
87
		return recherchePrincipale;
-
 
88
	}
-
 
89
 
-
 
90
	public void setValeurRechercheSimple(String valeurRecherche) {
-
 
Line -... Line 79...
-
 
79
		return recherchePrincipale;
-
 
80
	}
-
 
81
	
-
 
82
	public String getContientMots() {
91
		recherchePrincipale.setText(valeurRecherche);
83
		return contientMots.getText();
92
	}
84
	}
93
	
85
 
Line -... Line 86...
-
 
86
	public void setContientMots(String mots) {
-
 
87
		contientMots.setText(mots);
-
 
88
	}
-
 
89
	
94
	public void setContientMots(String mots) {
90
	public String getDepartement() {
95
		contientMots.setText(mots);
91
		return departement.getText();
96
	}
92
	}
-
 
93
 
-
 
94
	public void setValeurDepartement(String dpt) {
-
 
95
		departement.setValue(dpt);
-
 
96
	}
-
 
97
 
-
 
98
	public HasWidgets getCommune() {
-
 
99
		return commune;
-
 
100
	}
-
 
101
 
-
 
102
	public HasWidgets getTaxon() {
-
 
103
		return taxon;
-
 
104
	}
-
 
105
 
-
 
106
	public String getFamille() {
-
 
107
		return famille.getText();
-
 
108
	}
-
 
109
 
-
 
110
	public String getGenre() {
-
 
111
		return genre.getText();
-
 
112
	}
-
 
113
 
-
 
114
	public String getTag() {
-
 
115
		return tag.getText();
-
 
116
	}
-
 
117
 
-
 
118
	public String getMotCle() {
-
 
119
		return motCle.getText();
-
 
120
	}
-
 
121
 
-
 
122
	public String getAuteur() {
-
 
123
		return auteur.getText();
-
 
124
	}
Line -... Line 125...
-
 
125
 
-
 
126
	public String getDate() {
-
 
127
		return date.getText();
Line -... Line 128...
-
 
128
	}
-
 
129
	
-
 
130
	public void focusSaisie() {
-
 
131
		this.recherchePrincipale.setFocus(true);
-
 
132
	}
-
 
133
 
-
 
134
	public void ajouterVue(HasWidgets composite) {
-
 
135
		composite.add(this.asWidget());
-
 
136
	}
-
 
137
	
-
 
138
	public void basculerAffichageZoneCache() {
-
 
139
		rechercheAvancee.setVisible(!rechercheAvancee.isVisible());
-
 
140
		recherchePrincipale.setVisible(!recherchePrincipale.isVisible());
-
 
141
		boutonRecherche.setVisible(!boutonRecherche.isVisible());
97
	
142
	}
98
	public void setValeurDepartement(String dpt) {
143
	
99
		departement.setValue(dpt);
144
	public void nettoyer() {
100
	}
145
		chargerValeursRecherchePrecedente(new InformationsRecherche());
101
	
146
	}
Line 119... Line 164...
119
	 * l'utilisateur
164
	 * l'utilisateur
120
	 * 
165
	 * 
121
	 * @param informationRecherche
166
	 * @param informationRecherche
122
	 */
167
	 */
123
	private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
168
	private void afficherLigneInfoRecherche(InformationsRecherche informationRecherche) {
124
 
-
 
125
		// tax dep com fam gen ta mo au date
169
		// tax dep com fam gen ta mo au date
126
		StringBuffer texteRecherchePrecedente = new StringBuffer();
170
		StringBuffer texteRecherchePrecedente = new StringBuffer();
Line 127... Line 171...
127
 
171
 
128
		if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
172
		if (informationRecherche.getRechercheLibre() != null && !informationRecherche.getRechercheLibre().equals("")) {
Line 156... Line 200...
156
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
200
			texteRecherchePrecedente.append(I18n.getVocabulary().date() + ":" + informationRecherche.getDate() + " ");
157
		}
201
		}
Line 158... Line 202...
158
 
202
 
159
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
203
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
160
	}
-
 
161
 
-
 
162
	public void nettoyer() {
-
 
163
		chargerValeursRecherchePrecedente(new InformationsRecherche());
-
 
164
	}
-
 
165
 
-
 
166
	public String getDepartement() {
-
 
167
		return departement.getText();
-
 
168
	}
-
 
169
 
-
 
170
	public HasWidgets getCommune() {
-
 
171
		return commune;
-
 
172
	}
-
 
173
 
-
 
174
	public HasWidgets getTaxon() {
-
 
175
		return taxon;
-
 
176
	}
-
 
177
 
-
 
178
	public String getFamille() {
-
 
179
		return famille.getText();
-
 
180
	}
-
 
181
 
-
 
182
	public String getGenre() {
-
 
183
		return genre.getText();
-
 
184
	}
-
 
185
 
-
 
186
	public String getTag() {
-
 
187
		return tag.getText();
-
 
188
	}
-
 
189
 
-
 
190
	public String getMotCle() {
-
 
191
		return motCle.getText();
-
 
192
	}
-
 
193
 
-
 
194
	public String getAuteur() {
-
 
195
		return auteur.getText();
-
 
196
	}
-
 
197
 
-
 
198
	public String getDate() {
-
 
199
		return date.getText();
-
 
200
	}
-
 
201
 
-
 
202
	public void focusSaisie() {
-
 
203
		this.recherchePrincipale.setFocus(true);
-
 
204
	}
-
 
205
 
-
 
206
	@Override
-
 
207
	public void ajouterVue(HasWidgets composite) {
-
 
208
		composite.add(this.asWidget());
-
 
209
	}
204
	}
210
}
205
}