Subversion Repositories eFlore/Applications.del

Rev

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

Rev 648 Rev 649
Line 47... Line 47...
47
		public Panel getFormulaireRechercheEflore();
47
		public Panel getFormulaireRechercheEflore();
48
		public Panel getVoteProtocole();
48
		public Panel getVoteProtocole();
49
		public Button getBoutonAjoutProposition();
49
		public Button getBoutonAjoutProposition();
50
		public HasWidgets getMetadonnees();
50
		public HasWidgets getMetadonnees();
51
		//public void ajouterLigneVoteProtocole(IsWidget vue);
51
		//public void ajouterLigneVoteProtocole(IsWidget vue);
52
		public void ajouterLigneVoteProtocole(String nom, IsWidget vue);
52
		//public void ajouterLigneVoteProtocole(String nom, IsWidget vue);
-
 
53
		public HasWidgets getNouvelleLigneProtocole();
53
		public void afficherNomTaxonProbable(String nomTaxon);
54
		public void afficherNomTaxonProbable(String nomTaxon);
54
	}
55
	}
Line 55... Line 56...
55
 
56
 
Line 79... Line 80...
79
		composite.add(vue.asWidget());
80
		composite.add(vue.asWidget());
Line 80... Line 81...
80
 
81
 
81
		gererEvenements();
82
		gererEvenements();
Line 82... Line -...
82
	}
-
 
83
 
-
 
84
	/*private void ajouterLignesVotesProtocole() {
-
 
85
		List<Protocole> tousLesProtocoles = protocoleService.getProtocoles();
-
 
86
		Image imageCourante = CacheClient.getInstance().getImageCourante();
-
 
87
		for (Iterator<Protocole> iterator = tousLesProtocoles.iterator(); iterator.hasNext();) {
-
 
88
			Protocole protocole = (Protocole) iterator.next();
-
 
89
			MoyenneVotePresenteur presenteurCeProtocole = new MoyenneVotePresenteur(imageCourante, protocole, new MoyenneVoteVue());
-
 
90
			presenteurCeProtocole.go(vue.getVoteProtocole());
-
 
91
			
-
 
92
			LigneProtocolePresenteur presenteurLigneProtocole = new LigneProtocolePresenteur(new LigneProtocoleVue());
-
 
93
			presenteurLigneProtocole.setNom(protocole.getNom());
-
 
94
			presenteurLigneProtocole.setMoyenne(presenteurCeProtocole.getVue());
-
 
95
			
-
 
96
			vue.ajouterLigneVoteProtocole(presenteurLigneProtocole.getVue());
-
 
97
		}
-
 
98
	}*/
83
	}
99
	
84
 
100
	private void ajouterLignesVotesProtocole() {
85
	private void ajouterLignesVotesProtocole() {
101
		List<Protocole> tousLesProtocoles = protocoleService.getProtocoles();
86
		List<Protocole> tousLesProtocoles = protocoleService.getProtocoles();
-
 
87
		Image imageCourante = CacheClient.getInstance().getImageCourante();
102
		Image imageCourante = CacheClient.getInstance().getImageCourante();
88
		for (Iterator<Protocole> iterator = tousLesProtocoles.iterator(); iterator.hasNext();) {
103
		for (Iterator<Protocole> iterator = tousLesProtocoles.iterator(); iterator.hasNext();) {
89
 
104
			Protocole protocole = (Protocole) iterator.next();
90
			Protocole protocole = iterator.next();
105
			MoyenneVotePresenteur presenteurCeProtocole = new MoyenneVotePresenteur(imageCourante, protocole, new MoyenneVoteVue());
-
 
106
			presenteurCeProtocole.go(vue.getVoteProtocole());
91
			LigneProtocolePresenteur presenteurLigneProtocole = new LigneProtocolePresenteur(protocole, new LigneProtocoleVue());
107
			vue.ajouterLigneVoteProtocole(protocole.getNom(), presenteurCeProtocole.getVue());
92
			presenteurLigneProtocole.go(vue.getNouvelleLigneProtocole());
Line 108... Line 93...
108
		}
93
		}