Subversion Repositories eFlore/Applications.del

Rev

Rev 224 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 224 Rev 241
Line 23... Line 23...
23
	}
23
	}
Line 24... Line 24...
24
 
24
 
25
	public void go(HasWidgets composite) {
25
	public void go(HasWidgets composite) {
26
		composite.add(vue);
26
		composite.add(vue);
27
		createPaginationWidget(CacheClient.getInstance().getImages().size());
27
		createPaginationWidget(CacheClient.getInstance().getImages().size());
Line 28... Line 28...
28
		reactuliserImagesEtMoyenneVoteProtocole(0,10);
28
		reactualiserImagesEtMoyenneVoteProtocole(0, 10);
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
	}
30
	}
31
 
31
 
Line 32... Line 32...
32
	private void reactuliserImagesEtMoyenneVoteProtocole(int premier, int dernier) {
32
	private void reactualiserImagesEtMoyenneVoteProtocole(int premier, int dernier) {
Line 40... Line 40...
40
		vue.startChargement();
40
		vue.startChargement();
Line 41... Line 41...
41
 
41
 
42
		List<Panel> panneauxImagesAffichees = new ArrayList<Panel>();
42
		List<Panel> panneauxImagesAffichees = new ArrayList<Panel>();
43
		List<Image> imagesAffichees = CacheClient.getInstance().getSousListeImages(premier, dernier);
43
		List<Image> imagesAffichees = CacheClient.getInstance().getSousListeImages(premier, dernier);
44
		vue.creerPanneauxObservations(imagesAffichees.size());
44
		vue.creerPanneauxObservations(imagesAffichees.size());
45
		
45
 
46
		Iterator<Panel> panelIterator = vue.getPanneauxImages().iterator();
46
		Iterator<Panel> panelIterator = vue.getPanneauxImages().iterator();
47
		for (Image image : imagesAffichees) {
47
		for (Image image : imagesAffichees) {
48
			Panel imagePanel = panelIterator.next();
48
			Panel imagePanel = panelIterator.next();
49
			ImagePresenteur imagePresenteur = new ImagePresenteur(image, CacheClient.getInstance().getProtocoleCourant());
49
			ImagePresenteur imagePresenteur = new ImagePresenteur(image, CacheClient.getInstance().getProtocoleCourant());
50
			imagePresenteur.go(imagePanel);
50
			imagePresenteur.go(imagePanel);
51
			panneauxImagesAffichees.add(imagePanel);
51
			panneauxImagesAffichees.add(imagePanel);
52
			observationPresenteurs.add(imagePresenteur);
52
			observationPresenteurs.add(imagePresenteur);
53
		}
53
		}
54
		
54
 
55
		vue.afficherPanneauxObservation(panneauxImagesAffichees);
55
		vue.afficherPanneauxObservation(panneauxImagesAffichees);
Line 56... Line 56...
56
		vue.stopChargement();
56
		vue.stopChargement();
Line 75... Line 75...
75
			}
75
			}
76
		}.go(vue.getPanneauPagination());
76
		}.go(vue.getPanneauPagination());
77
	}
77
	}
Line 78... Line 78...
78
 
78
 
79
	public void showImagePanels(int first, int last) {
79
	public void showImagePanels(int first, int last) {
80
		reactuliserImagesEtMoyenneVoteProtocole(first, last);
80
		reactualiserImagesEtMoyenneVoteProtocole(first, last);
Line 81... Line 81...
81
	}
81
	}
82
 
82
 
83
	public ResultatRechercheImageVue getView() {
83
	public ResultatRechercheImageVue getView() {