Subversion Repositories eFlore/Applications.del

Rev

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

Rev 210 Rev 237
Line 12... Line 12...
12
import com.google.gwt.user.client.ui.HasWidgets;
12
import com.google.gwt.user.client.ui.HasWidgets;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
public class ComparaisonEflorePresenteur {
14
public class ComparaisonEflorePresenteur {
15
 
-
 
16
	private ComparaisonEfloreVue vue = new ComparaisonEfloreVue();
15
 
17
 
-
 
18
	private final MockDatasource observationService = MockDatasource.getInstance();
16
	private ComparaisonEfloreVue vue = new ComparaisonEfloreVue();
19
 
-
 
20
	private final MockDatasource validationService = MockDatasource.getInstance();
17
	private final MockDatasource observationService = MockDatasource.getInstance();
21
 
-
 
22
	private Image imagePrincipale;
18
	private final MockDatasource validationService = MockDatasource.getInstance();
23
 
-
 
24
	private String nomTaxonComparaison;
19
	private Image imagePrincipale;
Line 25... Line 20...
25
 
20
	private String nomTaxonComparaison;
26
	private List<org.tela_botanica.del.client.modeles.Image> imagesEflore;
21
	private List<org.tela_botanica.del.client.modeles.Image> imagesEflore;
27
 
22
 
Line 47... Line 42...
47
		imagesEflore = observationService.getImagesEfloreParTaxon(nomTaxonComparaison);
42
		imagesEflore = observationService.getImagesEfloreParTaxon(nomTaxonComparaison);
48
		vue.chargerImagesEflore(imagesEflore, 0);
43
		vue.chargerImagesEflore(imagesEflore, 0);
49
	}
44
	}
Line 50... Line 45...
50
 
45
 
51
	private void gererEvenements() {
46
	private void gererEvenements() {
Line 52... Line 47...
52
		vue.getScrollLeftImage().addClickHandler(new ClickHandler() {
47
		vue.scrollLeftImage.addClickHandler(new ClickHandler() {
53
 
48
 
54
			@Override
49
			@Override
55
			public void onClick(ClickEvent event) {
50
			public void onClick(ClickEvent event) {
56
				vue.chargerImagesEflore(imagesEflore, vue.getCurrentIndexImages() - 1);
51
				vue.chargerImagesEflore(imagesEflore, vue.getCurrentIndexImages() - 1);
Line 57... Line 52...
57
			}
52
			}
Line 58... Line 53...
58
		});
53
		});
59
 
54
 
60
		vue.getScrollRightImage().addClickHandler(new ClickHandler() {
55
		vue.scrollRightImage.addClickHandler(new ClickHandler() {
61
 
56