46 |
aurelien |
1 |
package org.tela_botanica.del.client.vues.plateformedetermination.detail;
|
|
|
2 |
|
70 |
aurelien |
3 |
import org.tela_botanica.del.client.i18n.I18n;
|
|
|
4 |
import org.tela_botanica.del.client.modeles.Observation;
|
|
|
5 |
|
46 |
aurelien |
6 |
import com.google.gwt.core.client.GWT;
|
|
|
7 |
import com.google.gwt.dom.client.Style.Unit;
|
|
|
8 |
import com.google.gwt.uibinder.client.UiBinder;
|
70 |
aurelien |
9 |
import com.google.gwt.uibinder.client.UiField;
|
46 |
aurelien |
10 |
import com.google.gwt.user.client.ui.Composite;
|
70 |
aurelien |
11 |
import com.google.gwt.user.client.ui.HTML;
|
46 |
aurelien |
12 |
import com.google.gwt.user.client.ui.HasWidgets;
|
70 |
aurelien |
13 |
import com.google.gwt.user.client.ui.Image;
|
46 |
aurelien |
14 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
15 |
|
|
|
16 |
public class DetailImageObservationVue extends Composite {
|
|
|
17 |
|
70 |
aurelien |
18 |
@UiField(provided = true)
|
|
|
19 |
public Image imageObservation = new Image();
|
|
|
20 |
|
|
|
21 |
@UiField(provided = true)
|
|
|
22 |
public HTML detailObservation = new HTML();
|
|
|
23 |
|
46 |
aurelien |
24 |
private static DetailImageObservationUIiBinder uiBinder = GWT.create(DetailImageObservationUIiBinder.class);
|
|
|
25 |
interface DetailImageObservationUIiBinder extends UiBinder<Widget, DetailImageObservationVue>{};
|
|
|
26 |
|
|
|
27 |
public DetailImageObservationVue() {
|
|
|
28 |
initWidget(uiBinder.createAndBindUi(this));
|
|
|
29 |
}
|
70 |
aurelien |
30 |
|
|
|
31 |
public void chargerInformationsObservation(Observation o) {
|
|
|
32 |
imageObservation.setUrl(o.getUrl());
|
|
|
33 |
detailObservation.setHTML("<ul>"+
|
|
|
34 |
"<li> "+I18n.getVocabulary().nom_retenu()+" : "+o.getNomRetenu()+"</li>"+
|
|
|
35 |
"<li> "+I18n.getVocabulary().localite()+" : "+o.getLocalite()+"</li>"+
|
80 |
aurelien |
36 |
"<li> "+I18n.getVocabulary().auteur()+" : "+o.getAuteur()+"</li>"+
|
|
|
37 |
"<li> "+I18n.getVocabulary().date_observation()+" : "+o.getDate()+"</li>"+
|
|
|
38 |
"<li> "+I18n.getVocabulary().autres_informations()+" : "+o.toString()+"</li>"+
|
70 |
aurelien |
39 |
"</ul>");
|
|
|
40 |
}
|
46 |
aurelien |
41 |
}
|