Subversion Repositories eFlore/Applications.del

Rev

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

Rev 652 Rev 882
Line 26... Line 26...
26
	public ObservationDeterminationVue() {
26
	public ObservationDeterminationVue() {
27
		initWidget(binder.createAndBindUi(this));
27
		initWidget(binder.createAndBindUi(this));
28
	}
28
	}
Line 29... Line 29...
29
	
29
	
30
	@Override
30
	@Override
31
	public void ajouterElementAuTableauProposition(IsWidget element, String texte) {
31
	public void ajouterElementAuTableauProposition(IsWidget element, int nbVotes, int nbCommentaires) {
32
		LignePropositionVue ligneProposition = new LignePropositionVue(element, new HTMLPanel(texte));
32
		LignePropositionVue ligneProposition = new LignePropositionVue(element, nbVotes, nbCommentaires);
33
		tableauPropositions.add(ligneProposition);
33
		tableauPropositions.add(ligneProposition);
-
 
34
	}
-
 
35
	
-
 
36
	@Override 
-
 
37
	public void setNbVotes(int index, int nbVotes) {
-
 
38
		// cette conversion ne devrait jamais poser de problème, car le tableau ne doit contenir que ça 
-
 
39
		LignePropositionVue lignePropositionVue = (LignePropositionVue)tableauPropositions.getWidget(index);
-
 
40
		lignePropositionVue.setNbVotes(nbVotes);
-
 
41
	}
-
 
42
	
-
 
43
	@Override 
-
 
44
	public void setNbCommentaires(int index, int nbCommentaires) {
-
 
45
		// cette conversion ne devrait jamais poser de problème, car le tableau ne doit contenir que ça 
-
 
46
		LignePropositionVue lignePropositionVue = (LignePropositionVue)tableauPropositions.getWidget(index);
-
 
47
		lignePropositionVue.setNbVotes(nbCommentaires);
Line 34... Line 48...
34
	}
48
	}
35
 
49
 
36
	@Override
50
	@Override
37
	public void viderTableau() {
51
	public void viderTableau() {