Line 87... |
Line 87... |
87 |
|
87 |
|
Line 88... |
Line 88... |
88 |
public void go(final HasWidgets composite) {
|
88 |
public void go(final HasWidgets composite) {
|
89 |
|
89 |
|
90 |
// TODO afficher une icone de chargement si le chargement devient trop long
|
90 |
// TODO afficher une icone de chargement si le chargement devient trop long
|
91 |
// car tout l'écran est asynchrone ici
|
91 |
// car tout l'écran est asynchrone ici
|
Line 92... |
Line 92... |
92 |
final Observation observationCourante = cache.getObservationCourante();
|
92 |
Observation observationCourante = cache.getObservationCourante();
|
93 |
observationService.getObservation(observationCourante.getId(), new ObservationsCallback() {
|
93 |
observationService.getObservation(observationCourante.getId(), new ObservationsCallback() {
|
94 |
|
94 |
|
Line 95... |
Line 95... |
95 |
@Override
|
95 |
@Override
|
96 |
public void surRetour(ObservationServiceResultat objetRetour) {
|
96 |
public void surRetour(ObservationServiceResultat objetRetour) {
|
Line 97... |
Line 97... |
97 |
cache.setImageCourante(observationCourante.getImages().get(0));
|
97 |
cache.setImageCourante(cache.getObservationCourante().getImages().get(0));
|
98 |
|
98 |
|
99 |
new MetadonneesPresenteur(new MetadonneesEnLigneVue(), observationCourante, ModeRecherche.MODE_OBSERVATION).go(vue.getMetadonnees());
|
99 |
new MetadonneesPresenteur(new MetadonneesEnLigneVue(), cache.getObservationCourante(), ModeRecherche.MODE_OBSERVATION).go(vue.getMetadonnees());
|