Subversion Repositories eFlore/Applications.del

Rev

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

Rev 361 Rev 500
Line 3... Line 3...
3
import java.util.List;
3
import java.util.List;
Line 4... Line 4...
4
 
4
 
5
import org.tela_botanica.del.client.cache.CacheClient;
5
import org.tela_botanica.del.client.cache.CacheClient;
6
import org.tela_botanica.del.client.modeles.Image;
6
import org.tela_botanica.del.client.modeles.Image;
7
import org.tela_botanica.del.client.modeles.ImageServiceResultat;
-
 
8
import org.tela_botanica.del.client.modeles.VoteProtocole;
7
import org.tela_botanica.del.client.modeles.ImageServiceResultat;
9
import org.tela_botanica.del.client.services.rest.ImageService;
8
import org.tela_botanica.del.client.services.rest.ImageService;
10
import org.tela_botanica.del.client.services.rest.VoteProtocoleService;
9
import org.tela_botanica.del.client.services.rest.VoteProtocoleService;
11
import org.tela_botanica.del.client.services.rest.async.ImagesParTaxonCallback;
-
 
Line 12... Line 10...
12
import org.tela_botanica.del.client.utils.MockDatasource;
10
import org.tela_botanica.del.client.services.rest.async.ImagesParTaxonCallback;
13
 
11
 
14
import com.google.gwt.event.dom.client.ClickEvent;
12
import com.google.gwt.event.dom.client.ClickEvent;
15
import com.google.gwt.event.dom.client.ClickHandler;
13
import com.google.gwt.event.dom.client.ClickHandler;
Line 34... Line 32...
34
 
32
 
35
		public void stopChargement();
33
		public void stopChargement();
Line 36... Line 34...
36
	}
34
	}
37
 
-
 
38
	private Vue vue;
35
 
Line 39... Line 36...
39
	private final VoteProtocoleService validationService = MockDatasource.getInstance();
36
	private Vue vue;
40
	private final ImageService imageService;
37
	private final ImageService imageService;
41
 
38
 
Line 50... Line 47...
50
		this.imageService = imageService;
47
		this.imageService = imageService;
51
	}
48
	}
Line 52... Line 49...
52
 
49
 
53
	public void go(HasWidgets composite) {
50
	public void go(HasWidgets composite) {
54
		composite.add(vue.asWidget());
-
 
55
		chargerValidationObservationPrincipale();
51
		composite.add(vue.asWidget());
56
		vue.chargerImagePrincipale(imagePrincipale);
52
		vue.chargerImagePrincipale(imagePrincipale);
57
		chargerObservationsEflore();
53
		chargerObservationsEflore();
58
		gererEvenements();
54
		gererEvenements();
Line 59... Line -...
59
	}
-
 
60
 
-
 
61
	public void chargerValidationObservationPrincipale() {
-
 
62
		List<VoteProtocole> observationValidations = validationService.getVote(imagePrincipale.getIdImage());
-
 
63
		imagePrincipale.setVoteProtocoles(observationValidations);
-
 
64
	}
55
	}
Line 65... Line 56...
65
 
56
 
Line 66... Line 57...
66
	public void chargerObservationsEflore() {
57
	public void chargerObservationsEflore() {