Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1995 Rev 2140
Line 12... Line 12...
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;
Line 38... Line 39...
38
	private String paysEnAttente;
39
	private String paysEnAttente;
Line 39... Line 40...
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
-
 
50
	ListBox referentiel, pays;
-
 
51
	@UiField
Line 49... Line 52...
49
	ListBox referentiel, pays;
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));
Line 132... Line 135...
132
	}
135
	}
Line 133... Line 136...
133
 
136
 
134
	public void setContientMots(String mots) {
137
	public void setContientMots(String mots) {
135
		contientMots.setText(mots);
138
		contientMots.setText(mots);
-
 
139
	}
-
 
140
 
-
 
141
	public boolean getPnInscritsSeulement() {
-
 
142
		return casePnInscritsSeulement.getValue();
-
 
143
	}
-
 
144
 
-
 
145
	public void setPnInscritsSeulement(boolean valeur) {
-
 
146
		casePnInscritsSeulement.setValue(valeur);
Line 136... Line 147...
136
	}
147
	}
137
	
148
	
138
	public String getPays() {
149
	public String getPays() {
Line 207... Line 218...
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());
Line 212... Line 224...
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);
Line 284... Line 296...
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
		}
Line 289... Line 304...
289
		
304
		
290
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
305
		recherchePrecedente.setText(texteRecherchePrecedente.toString());
Line 291... Line 306...
291
	}
306
	}