Subversion Repositories eFlore/Applications.del

Rev

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

Rev Author Line No. Line
148 benjamin 1
package org.tela_botanica.del.client.vues.rechercheimages;
9 benjamin 2
 
124 gduche 3
import com.google.gwt.core.client.GWT;
277 gduche 4
import com.google.gwt.event.dom.client.HasChangeHandlers;
124 gduche 5
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiField;
9 benjamin 7
import com.google.gwt.user.client.ui.Composite;
8
import com.google.gwt.user.client.ui.FlowPanel;
323 gduche 9
import com.google.gwt.user.client.ui.HasWidgets;
178 benjamin 10
import com.google.gwt.user.client.ui.Label;
11
import com.google.gwt.user.client.ui.ListBox;
9 benjamin 12
import com.google.gwt.user.client.ui.Panel;
124 gduche 13
import com.google.gwt.user.client.ui.Widget;
9 benjamin 14
 
323 gduche 15
public class MoteurRechercheImageVue extends Composite implements MoteurRechercheImagePresenteur.Vue {
9 benjamin 16
 
26 gduche 17
	private final Panel panneauChargement = new FlowPanel();
9 benjamin 18
 
311 gduche 19
	interface MyUiBinder extends UiBinder<Widget, MoteurRechercheImageVue> {}
9 benjamin 20
 
124 gduche 21
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
9 benjamin 22
 
323 gduche 23
	@UiField Panel panneauResultats, zoneRecherche;
277 gduche 24
	@UiField Label protocoleLabel;
25
	@UiField ListBox listeProtocoles;
323 gduche 26
 
124 gduche 27
	// Constructeur
311 gduche 28
	public MoteurRechercheImageVue() {
124 gduche 29
		initWidget(uiBinder.createAndBindUi(this));
26 gduche 30
	}
31
 
178 benjamin 32
	public Panel getPanneauChargement() {
33
		return panneauChargement;
9 benjamin 34
	}
35
 
178 benjamin 36
	public void setListeProtocoles(ListBox listeProtocoles) {
37
		this.listeProtocoles = listeProtocoles;
9 benjamin 38
	}
39
 
178 benjamin 40
	public void setProtocoleLabel(Label protocoleLabel) {
41
		this.protocoleLabel = protocoleLabel;
9 benjamin 42
	}
43
 
208 gduche 44
	// Cette méthode est public car appelé dans GestionnaireHistorique
278 gduche 45
	public Panel getZoneResultats() {
178 benjamin 46
		return panneauResultats;
9 benjamin 47
	}
48
 
178 benjamin 49
	public void setPanneauResultats(Panel panneauResultats) {
50
		this.panneauResultats = panneauResultats;
9 benjamin 51
	}
277 gduche 52
 
53
	public HasChangeHandlers getListeProtocoles() {
54
		return listeProtocoles;
55
	}
56
 
57
	public void ajouterProtocole(String protocole) {
58
		listeProtocoles.addItem(protocole);
59
	}
60
 
61
	public void selectionnerProtocole(int index) {
62
		listeProtocoles.setSelectedIndex(index);
63
 
64
	}
311 gduche 65
 
323 gduche 66
	public HasWidgets getZoneRecherche() {
67
		return zoneRecherche;
311 gduche 68
	}
9 benjamin 69
}