Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1068 Rev 1071
Line 38... Line 38...
38
		this.propositionDetermination = propositionDetermination;
38
		this.propositionDetermination = propositionDetermination;
39
	}
39
	}
Line 40... Line 40...
40
 
40
 
41
	public void go(HasWidgets composite) {
41
	public void go(HasWidgets composite) {
42
		composite.add(vue.asWidget());
-
 
43
		gererEvenements();
42
		composite.add(vue.asWidget());
-
 
43
		chargerPropositionDetermination();
44
		chargerPropositionDetermination();
44
		gererEvenements();
Line 45... Line 45...
45
	}
45
	}
46
 
46
 
47
	public void chargerPropositionDetermination() {
47
	public void chargerPropositionDetermination() {
48
		this.nbCommentaires = propositionDetermination.getTotalCommentaires();
48
		nbCommentaires = propositionDetermination.getTotalCommentaires();
49
		this.nbVotes = propositionDetermination.getVotesDeterminations().size();
49
		nbVotes = propositionDetermination.getVotesDeterminations().size();
50
		vue.setNbCommentaires(nbCommentaires);
50
		vue.setNbCommentaires(nbCommentaires);
Line 51... Line 51...
51
		vue.setNbVotes(nbVotes);
51
		vue.setNbVotes(nbVotes);
52
	}
-
 
53
 
-
 
54
	public void gererEvenements() {
-
 
55
		
-
 
56
		final int nbVotes = this.nbVotes;
52
	}
57
		final int nbCommentaires = this.nbCommentaires;
53
 
58
		
54
	public void gererEvenements() {
59
		vue.getZoneNbVotes().addClickHandler(new ClickHandler() {
55
		vue.getZoneNbVotes().addClickHandler(new ClickHandler() {
60
			@Override
56
			@Override