Subversion Repositories eFlore/Applications.del

Rev

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

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