1196 |
gduche |
1 |
package org.tela_botanica.del.client.vues.pictoflora.plateformedetermination.detail;
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
import com.google.gwt.core.client.GWT;
|
|
|
6 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
7 |
import com.google.gwt.uibinder.client.UiField;
|
|
|
8 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
9 |
import com.google.gwt.user.client.ui.Image;
|
|
|
10 |
import com.google.gwt.user.client.ui.Label;
|
|
|
11 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
12 |
|
|
|
13 |
public class DetailImageObservationVue extends Composite implements DetailImageObservationPresenteur.Vue {
|
|
|
14 |
|
|
|
15 |
@UiField
|
|
|
16 |
protected Image imageObservation;
|
|
|
17 |
|
|
|
18 |
@UiField
|
|
|
19 |
protected Label nomObservateur, nomRetenu, dateObservation, famille, localite;
|
|
|
20 |
|
|
|
21 |
private static DetailImageObservationUIiBinder uiBinder = GWT.create(DetailImageObservationUIiBinder.class);
|
|
|
22 |
|
|
|
23 |
interface DetailImageObservationUIiBinder extends UiBinder<Widget, DetailImageObservationVue> {
|
|
|
24 |
};
|
|
|
25 |
|
|
|
26 |
public DetailImageObservationVue() {
|
|
|
27 |
initWidget(uiBinder.createAndBindUi(this));
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public void chargerInformationsObservation(org.tela_botanica.del.client.modeles.Image image) {
|
|
|
31 |
imageObservation.setUrl(image.getUrl());
|
|
|
32 |
nomObservateur.setText(image.getObservation().getAuteur());
|
1393 |
aurelien |
33 |
nomRetenu.setText(image.getObservation().getNomRetenuFormateReferentiel());
|
1196 |
gduche |
34 |
famille.setText(image.getObservation().getFamille());
|
|
|
35 |
localite.setText(image.getObservation().getLocalite());
|
|
|
36 |
dateObservation.setText(image.getObservation().getDateReleve());
|
|
|
37 |
}
|
|
|
38 |
}
|