Subversion Repositories eFlore/Applications.del

Rev

Rev 178 | 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;
4
import com.google.gwt.uibinder.client.UiBinder;
5
import com.google.gwt.uibinder.client.UiField;
6
import com.google.gwt.user.client.ui.Button;
9 benjamin 7
import com.google.gwt.user.client.ui.Composite;
8
import com.google.gwt.user.client.ui.FlowPanel;
178 benjamin 9
import com.google.gwt.user.client.ui.Label;
10
import com.google.gwt.user.client.ui.ListBox;
9 benjamin 11
import com.google.gwt.user.client.ui.Panel;
12
import com.google.gwt.user.client.ui.TextBox;
13
import com.google.gwt.user.client.ui.VerticalPanel;
124 gduche 14
import com.google.gwt.user.client.ui.Widget;
9 benjamin 15
 
178 benjamin 16
public class RechercheImageVue extends Composite {
9 benjamin 17
 
18
	private final VerticalPanel mainPanel = new VerticalPanel();
26 gduche 19
	private final Panel panneauChargement = new FlowPanel();
9 benjamin 20
 
124 gduche 21
	// Annotation can be used to change the name of the associated xml file
22
	// @UiTemplate("ObservationRechercheVue.ui.xml")
178 benjamin 23
	interface MyUiBinder extends UiBinder<Widget, RechercheImageVue> {
124 gduche 24
	}
9 benjamin 25
 
124 gduche 26
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
9 benjamin 27
 
124 gduche 28
	@UiField
208 gduche 29
	protected TextBox nomEspece;
9 benjamin 30
 
124 gduche 31
	@UiField
208 gduche 32
	protected Panel panneauProtocole, panneauResultats;
9 benjamin 33
 
124 gduche 34
	@UiField
208 gduche 35
	protected Button boutonChercher;
9 benjamin 36
 
124 gduche 37
	@UiField
208 gduche 38
	protected Label protocoleLabel;
26 gduche 39
 
178 benjamin 40
	@UiField
208 gduche 41
	protected ListBox listeProtocoles;
178 benjamin 42
 
124 gduche 43
	// Constructeur
178 benjamin 44
	protected RechercheImageVue() {
124 gduche 45
		initWidget(uiBinder.createAndBindUi(this));
46
		nomEspece.setFocus(true);
9 benjamin 47
 
26 gduche 48
	}
49
 
178 benjamin 50
	public Panel getPanneauChargement() {
51
		return panneauChargement;
9 benjamin 52
	}
53
 
178 benjamin 54
	public void setListeProtocoles(ListBox listeProtocoles) {
55
		this.listeProtocoles = listeProtocoles;
9 benjamin 56
	}
57
 
178 benjamin 58
	public void setProtocoleLabel(Label protocoleLabel) {
59
		this.protocoleLabel = protocoleLabel;
9 benjamin 60
	}
61
 
208 gduche 62
	// Cette méthode est public car appelé dans GestionnaireHistorique
178 benjamin 63
	public Panel getPanneauResultats() {
64
		return panneauResultats;
9 benjamin 65
	}
66
 
178 benjamin 67
	public void setPanneauResultats(Panel panneauResultats) {
68
		this.panneauResultats = panneauResultats;
9 benjamin 69
	}
70
}