Subversion Repositories eFlore/Applications.del

Rev

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

Rev 359 Rev 360
Line 41... Line 41...
41
 
41
 
42
	public ComparaisonEflorePresenteur(Vue vue, VoteProtocoleService voteProtocoleService, ImageService imageService) {
42
	public ComparaisonEflorePresenteur(Vue vue, VoteProtocoleService voteProtocoleService, ImageService imageService) {
43
		this.vue = vue;
43
		this.vue = vue;
44
		this.imagePrincipale = CacheClient.getInstance().getImageCourante();
44
		this.imagePrincipale = CacheClient.getInstance().getImageCourante();
45
		this.nomTaxonComparaison = CacheClient.getInstance().getTaxonPourRechercheEflore();
45
		this.nomTaxonComparaison = CacheClient.getInstance().getTaxonPourRechercheEflore();
46
		this.imageService=imageService;
46
		this.imageService = imageService;
Line 47... Line 47...
47
	}
47
	}
48
 
48
 
49
	public void go(HasWidgets composite) {
49
	public void go(HasWidgets composite) {
Line 58... Line 58...
58
		List<VoteProtocole> observationValidations = validationService.getVote(imagePrincipale.getIdImage());
58
		List<VoteProtocole> observationValidations = validationService.getVote(imagePrincipale.getIdImage());
59
		imagePrincipale.setVoteProtocoles(observationValidations);
59
		imagePrincipale.setVoteProtocoles(observationValidations);
60
	}
60
	}
Line 61... Line 61...
61
 
61
 
62
	public void chargerObservationsEflore() {
62
	public void chargerObservationsEflore() {
63
		
63
 
64
		ImagesParTaxonCallback callback = new ImagesParTaxonCallback() {
64
		ImagesParTaxonCallback callback = new ImagesParTaxonCallback() {
65
			
65
 
66
			@Override
66
			@Override
67
			public void surImagesRecues(ImageServiceResultat imagesRecues) {
67
			public void surImagesRecues(ImageServiceResultat imagesRecues) {
68
				//CacheClient.getInstance().setImages(imagesRecues.getImages());
68
				setImagesEflore(imagesRecues.getImages());
69
				vue.chargerImagesEflore(imagesRecues.getImages(), 0);
69
				vue.chargerImagesEflore(imagesRecues.getImages(), 0);
70
			}
70
			}
71
		};
71
		};
72
		
72
 
73
		imageService.getImagesEfloreParTaxon(nomTaxonComparaison, callback);
73
		imageService.getImagesEfloreParTaxon(nomTaxonComparaison, callback);
74
		
74
 
Line 75... Line 75...
75
	}
75
	}
76
 
76
 
Line 94... Line 94...
94
 
94
 
95
	public List<org.tela_botanica.del.client.modeles.Image> getImagesEflore() {
95
	public List<org.tela_botanica.del.client.modeles.Image> getImagesEflore() {
96
		return imagesEflore;
96
		return imagesEflore;
Line -... Line 97...
-
 
97
	}
-
 
98
 
-
 
99
	public void setImagesEflore(List<org.tela_botanica.del.client.modeles.Image> imagesEflore) {
-
 
100
		this.imagesEflore = imagesEflore;
97
	}
101
	}