Subversion Repositories eFlore/Applications.del

Rev

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