Subversion Repositories eFlore/Applications.del

Rev

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

Rev 245 Rev 277
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.rechercheimages;
1
package org.tela_botanica.del.client.vues.rechercheimages;
Line 2... Line 2...
2
 
2
 
-
 
3
import com.google.gwt.core.client.GWT;
-
 
4
import com.google.gwt.event.dom.client.HasChangeHandlers;
-
 
5
import com.google.gwt.event.dom.client.HasClickHandlers;
3
import com.google.gwt.core.client.GWT;
6
import com.google.gwt.event.dom.client.HasKeyPressHandlers;
4
import com.google.gwt.uibinder.client.UiBinder;
7
import com.google.gwt.uibinder.client.UiBinder;
5
import com.google.gwt.uibinder.client.UiField;
8
import com.google.gwt.uibinder.client.UiField;
6
import com.google.gwt.user.client.ui.Button;
9
import com.google.gwt.user.client.ui.Button;
7
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.Composite;
Line 11... Line 14...
11
import com.google.gwt.user.client.ui.Panel;
14
import com.google.gwt.user.client.ui.Panel;
12
import com.google.gwt.user.client.ui.TextBox;
15
import com.google.gwt.user.client.ui.TextBox;
13
import com.google.gwt.user.client.ui.VerticalPanel;
16
import com.google.gwt.user.client.ui.VerticalPanel;
14
import com.google.gwt.user.client.ui.Widget;
17
import com.google.gwt.user.client.ui.Widget;
Line 15... Line 18...
15
 
18
 
Line 16... Line 19...
16
public class RechercheImageVue extends Composite {
19
public class RechercheImageVue extends Composite implements RechercheImagePresenteur.Vue {
17
 
20
 
Line 18... Line -...
18
	private final VerticalPanel mainPanel = new VerticalPanel();
-
 
19
	private final Panel panneauChargement = new FlowPanel();
-
 
20
 
21
	private final VerticalPanel mainPanel = new VerticalPanel();
21
	// Annotation can be used to change the name of the associated xml file
-
 
Line 22... Line 22...
22
	// @UiTemplate("ObservationRechercheVue.ui.xml")
22
	private final Panel panneauChargement = new FlowPanel();
Line 23... Line -...
23
	interface MyUiBinder extends UiBinder<Widget, RechercheImageVue> {
-
 
24
	}
23
 
25
 
-
 
26
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
-
 
27
 
24
	interface MyUiBinder extends UiBinder<Widget, RechercheImageVue> {}
28
	@UiField
-
 
29
	protected TextBox nomEspece;
-
 
30
 
25
 
31
	@UiField
-
 
32
	protected Panel panneauResultats;
-
 
33
 
26
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
34
	@UiField
-
 
35
	protected Button boutonChercher;
-
 
36
 
27
 
Line 37... Line 28...
37
	@UiField
28
	@UiField TextBox nomEspece;
38
	protected Label protocoleLabel;
29
	@UiField Panel panneauResultats;
39
 
30
	@UiField Button boutonChercher;
40
	@UiField
31
	@UiField Label protocoleLabel;
Line 41... Line 32...
41
	protected ListBox listeProtocoles;
32
	@UiField ListBox listeProtocoles;
Line 65... Line 56...
65
	}
56
	}
Line 66... Line 57...
66
 
57
 
67
	public void setPanneauResultats(Panel panneauResultats) {
58
	public void setPanneauResultats(Panel panneauResultats) {
68
		this.panneauResultats = panneauResultats;
59
		this.panneauResultats = panneauResultats;
-
 
60
	}
-
 
61
 
-
 
62
		public HasClickHandlers getBoutonChercher() {
-
 
63
		return boutonChercher;
-
 
64
	}
-
 
65
 
-
 
66
	public HasKeyPressHandlers getChampEspece() {
-
 
67
		return nomEspece;
-
 
68
	}
-
 
69
 
-
 
70
	public HasChangeHandlers getListeProtocoles() {
-
 
71
		return listeProtocoles;
-
 
72
	}
-
 
73
	
-
 
74
	public void ajouterProtocole(String protocole) {
-
 
75
		listeProtocoles.addItem(protocole);
-
 
76
	}
-
 
77
	
-
 
78
	public void selectionnerProtocole(int index) {
-
 
79
		listeProtocoles.setSelectedIndex(index);
-
 
80
		
69
	}
81
	}