Subversion Repositories eFlore/Applications.del

Rev

Rev 1101 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
479 benjamin 1
package org.tela_botanica.del.client.vues.rechercheobservations.moteur;
161 gduche 2
 
3
import com.google.gwt.core.client.GWT;
1010 aurelien 4
import com.google.gwt.event.dom.client.HasClickHandlers;
161 gduche 5
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiField;
1102 gduche 7
import com.google.gwt.user.client.ui.CheckBox;
161 gduche 8
import com.google.gwt.user.client.ui.Composite;
309 aurelien 9
import com.google.gwt.user.client.ui.HasWidgets;
1010 aurelien 10
import com.google.gwt.user.client.ui.Label;
161 gduche 11
import com.google.gwt.user.client.ui.Panel;
1101 gduche 12
import com.google.gwt.user.client.ui.RadioButton;
161 gduche 13
import com.google.gwt.user.client.ui.Widget;
14
 
479 benjamin 15
public class MoteurRechercheObservationsVue extends Composite implements MoteurRechercheObservationsPresenteur.Vue {
161 gduche 16
 
17
	// Gestion d'UiBinder
479 benjamin 18
	interface Binder extends UiBinder<Widget, MoteurRechercheObservationsVue> {
161 gduche 19
	}
20
 
21
	private static Binder binder = GWT.create(Binder.class);
22
 
445 benjamin 23
	@UiField
24
	Panel zoneRecherche, zoneResultats;
459 benjamin 25
 
1010 aurelien 26
	@UiField
27
	Label ajouterObservation;
455 benjamin 28
 
1101 gduche 29
	@UiField
1102 gduche 30
	CheckBox radioTout, radioDeterminer, radioConfirmer, radioDiscussion;
1101 gduche 31
 
330 gduche 32
	public HasWidgets getZoneRecherche() {
33
		return zoneRecherche;
309 aurelien 34
	}
445 benjamin 35
 
161 gduche 36
	// Constructeur de la vue
479 benjamin 37
	public MoteurRechercheObservationsVue() {
161 gduche 38
		initWidget(binder.createAndBindUi(this));
39
	}
40
 
445 benjamin 41
	public Panel getZoneResultats() {
42
		return zoneResultats;
309 aurelien 43
	}
459 benjamin 44
 
1010 aurelien 45
	@Override
46
	public HasClickHandlers getLienAjoutObservation() {
47
		return ajouterObservation;
48
	}
1101 gduche 49
 
50
	public String getValeurRadioStatut() {
1102 gduche 51
		String valeurStatut = "";
1101 gduche 52
		if (radioDeterminer.getValue()) {
1102 gduche 53
			valeurStatut += radioDeterminer.getFormValue() + ";";
54
		}
55
 
56
		if (radioConfirmer.getValue()) {
57
			valeurStatut += radioConfirmer.getFormValue() + ";";
58
		}
59
 
60
		if (radioDiscussion.getValue()) {
61
			valeurStatut += radioDiscussion.getFormValue() + ";";
1101 gduche 62
		}
63
 
64
		return valeurStatut;
65
 
66
	}
455 benjamin 67
 
161 gduche 68
}