Subversion Repositories eFlore/Applications.del

Rev

Rev 32 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32 Rev 52
Line 12... Line 12...
12
import com.google.gwt.user.client.ui.FlowPanel;
12
import com.google.gwt.user.client.ui.FlowPanel;
13
import com.google.gwt.user.client.ui.HTML;
13
import com.google.gwt.user.client.ui.HTML;
14
import com.google.gwt.user.client.ui.Image;
14
import com.google.gwt.user.client.ui.Image;
15
import com.google.gwt.user.client.ui.Label;
15
import com.google.gwt.user.client.ui.Label;
16
import com.google.gwt.user.client.ui.Panel;
16
import com.google.gwt.user.client.ui.Panel;
-
 
17
import com.google.gwt.user.client.ui.VerticalPanel;
17
import com.google.gwt.user.client.ui.Widget;
18
import com.google.gwt.user.client.ui.Widget;
Line 18... Line 19...
18
 
19
 
Line 19... Line 20...
19
public class ObservationVue extends Composite {
20
public class ObservationVue extends Composite {
20
 
21
 
21
	// Annotation can be used to change the name of the associated xml file
22
	// Annotation can be used to change the name of the associated xml file
22
	// @UiTemplate("ObservationVue.ui.xml")
23
	// @UiTemplate("ObservationVue.ui.xml")
Line 23... Line 24...
23
	interface MyUiBinder extends UiBinder<Widget, ObservationVue> {
24
	interface MyUiBinder extends UiBinder<Widget, ObservationVue> {
24
	}
-
 
25
 
25
	}
26
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
26
 
Line 27... Line 27...
27
 
27
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
-
 
28
	@UiField
-
 
29
	Label nomEspece, nomAuteur, nomObservateur, nomRetenu, dateObservation, famille, localite;
-
 
30
 
28
	@UiField
31
	@UiField
Line -... Line 32...
-
 
32
	protected VerticalPanel zoneCache;
-
 
33
 
-
 
34
	@UiField
29
	Label nomEspece, nomAuteur, nomObservateur, nomRetenu, dateObservation, famille, localite;
35
	Image imagePrincipale;
30
 
36
 
31
	@UiField
37
	@UiField
32
	Image imagePrincipale;
38
	Label enSavoirPlus;
Line 33... Line 39...
33
 
39
 
34
	public ObservationVue() {
-
 
-
 
40
	public ObservationVue() {
-
 
41
		// sets listBox
35
		// sets listBox
42
		initWidget(uiBinder.createAndBindUi(this));
36
		initWidget(uiBinder.createAndBindUi(this));
43
	}
37
	}
44
 
38
 
45
	protected void loadImage(Observation observation) {
39
	protected void loadImage(Observation observation) {
46
		enSavoirPlus.setStyleName("boutonPlus");
40
 
47
		zoneCache.setVisible(false);
41
		nomEspece.setText(observation.getSpecies());
48
		nomEspece.setText(observation.getSpecies());
42
		nomAuteur.setText(observation.getAuteur());
49
		nomAuteur.setText(observation.getAuteur());
Line 43... Line -...
43
		imagePrincipale.setUrl(observation.getUrl());
-
 
44
		nomObservateur.setText(observation.getAuteur());
-
 
45
		nomRetenu.setText(observation.getNomRetenu());
-
 
46
		dateObservation.setText(observation.getDate());
-
 
47
		famille.setText(observation.getFamille());
-
 
48
		localite.setText(observation.getLocalite());
-
 
49
 
-
 
50
		/*
-
 
51
		 * flowPanel.clear(); flowPanel.add(new HTML(observation.getSpecies()));
-
 
52
		 * flowPanel.add(new HTML(observation.getAuteur())); flowPanel.add(new
50
		imagePrincipale.setUrl(observation.getUrl());
Line 53... Line 51...
53
		 * HTML("<a href='http://www.tela-botanica.org/eflore/BDNFF/4.02/nn/" +
51
		nomObservateur.setText(observation.getAuteur());
54
		 * observation.getNumNomenclatural() + "' target='_blank'><img src='" +
52
		nomRetenu.setText(observation.getNomRetenu());
55
		 * observation.getUrl() + "' /img></a>"));
53
		dateObservation.setText(observation.getDate());
Line 101... Line 99...
101
 
99
 
102
	public Panel getRatePanel() {
100
	public Panel getRatePanel() {
103
		// return ratePanel;
101
		// return ratePanel;
104
		return new FlowPanel();
102
		return new FlowPanel();
-
 
103
	}
-
 
104
 
-
 
105
	public VerticalPanel getZoneCache() {
-
 
106
		return zoneCache;
-
 
107
	}
-
 
108
 
-
 
109
	public Label getEnSavoirPlus() {
-
 
110
		return enSavoirPlus;
105
	}
111
	}