Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 847 → Rev 848

/trunk/src/org/tela_botanica/del/client/vues/plateformedetermination/ligneProtocole/LigneProtocolePresenteur.java
4,6 → 4,7
import org.tela_botanica.del.client.cache.CacheClient;
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVoteVue;
import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.Protocole;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
23,8 → 24,13
this.vue = vue;
this.protocole = protocole;
setNom(protocole.getNom());
 
MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(CacheClient.getInstance().getImageCourante(), protocole, new MoyenneVoteVue());
Image imageCourante = CacheClient.getInstance().getImageCourante();
if(imageCourante == null) {
// on suppose qu'il y a toujours au moins une image associée à l'observation en cours
imageCourante = CacheClient.getInstance().getObservationCourante().getImages().get(0);
}
MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(imageCourante, protocole, new MoyenneVoteVue());
votePresenteur.go(vue.getZoneVote());
}