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