Subversion Repositories eFlore/Applications.del

Rev

Rev 650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 650 Rev 848
Line 2... Line 2...
2
 
2
 
3
 
3
 
4
import org.tela_botanica.del.client.cache.CacheClient;
4
import org.tela_botanica.del.client.cache.CacheClient;
-
 
5
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
5
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
6
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVoteVue;
6
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVoteVue;
7
import org.tela_botanica.del.client.modeles.Image;
7
import org.tela_botanica.del.client.modeles.Protocole;
8
import org.tela_botanica.del.client.modeles.Protocole;
Line 8... Line 9...
8
import com.google.gwt.user.client.ui.HasWidgets;
9
import com.google.gwt.user.client.ui.HasWidgets;
Line 21... Line 22...
21
 
22
 
22
	public LigneProtocolePresenteur(Protocole protocole, Vue vue) {
23
	public LigneProtocolePresenteur(Protocole protocole, Vue vue) {
23
		this.vue = vue;
24
		this.vue = vue;
24
		this.protocole = protocole;
25
		this.protocole = protocole;
-
 
26
		setNom(protocole.getNom());
-
 
27
		Image imageCourante = CacheClient.getInstance().getImageCourante();
-
 
28
		if(imageCourante == null) {
-
 
29
			// on suppose qu'il y a toujours au moins une image associée à l'observation en cours
-
 
30
			imageCourante = CacheClient.getInstance().getObservationCourante().getImages().get(0);
25
		setNom(protocole.getNom());
31
		}
26
 
32
		
27
		MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(CacheClient.getInstance().getImageCourante(), protocole, new MoyenneVoteVue());
33
		MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(imageCourante, protocole, new MoyenneVoteVue());
28
		votePresenteur.go(vue.getZoneVote());
34
		votePresenteur.go(vue.getZoneVote());
Line 29... Line 35...
29
	}
35
	}
30
 
36