Subversion Repositories eFlore/Applications.del

Rev

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

Rev 638 Rev 1084
Line 1... Line 1...
1
package org.tela_botanica.del.client.composants.votes.moyennevotes;
1
package org.tela_botanica.del.client.composants.votes.moyennevotes;
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
import java.util.List;
3
import java.util.List;
-
 
4
 
4
 
5
import org.cobogw.gwt.user.client.ui.Rating;
5
import org.cobogw.gwt.user.client.ui.Rating;
6
import org.tela_botanica.del.client.composants.votes.barrerepartition.InfoBulleAnim;
Line 6... Line 7...
6
import org.tela_botanica.del.client.i18n.I18n;
7
import org.tela_botanica.del.client.i18n.I18n;
7
import org.tela_botanica.del.client.modeles.VoteProtocole;
8
import org.tela_botanica.del.client.modeles.VoteProtocole;
Line 18... Line 19...
18
import com.google.gwt.user.client.ui.Composite;
19
import com.google.gwt.user.client.ui.Composite;
19
import com.google.gwt.user.client.ui.FocusPanel;
20
import com.google.gwt.user.client.ui.FocusPanel;
20
import com.google.gwt.user.client.ui.HasText;
21
import com.google.gwt.user.client.ui.HasText;
21
import com.google.gwt.user.client.ui.HasWidgets;
22
import com.google.gwt.user.client.ui.HasWidgets;
22
import com.google.gwt.user.client.ui.Label;
23
import com.google.gwt.user.client.ui.Label;
-
 
24
import com.google.gwt.user.client.ui.Panel;
23
import com.google.gwt.user.client.ui.Widget;
25
import com.google.gwt.user.client.ui.Widget;
Line 24... Line 26...
24
 
26
 
Line 25... Line 27...
25
public class MoyenneVoteVue extends Composite implements MoyenneVotePresenteur.Vue {
27
public class MoyenneVoteVue extends Composite implements MoyenneVotePresenteur.Vue {
Line 30... Line 32...
30
	}
32
	}
Line 31... Line 33...
31
 
33
 
32
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
34
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
33
	private Rating votes;
35
	private Rating votes;
-
 
36
	private int valeurOrigine;
Line 34... Line 37...
34
	private int valeurOrigine;
37
	private InfoBulleAnim animerVotePrisEnCompte;
35
	
38
	
Line 36... Line 39...
36
	@UiField
39
	@UiField
-
 
40
	FocusPanel voter;
-
 
41
 
-
 
42
	@UiField
37
	FocusPanel voter;
43
	Panel votePrisEnCompte;
Line 38... Line 44...
38
 
44
	
39
	@UiField
45
	@UiField
Line 47... Line 53...
47
		votes = new Rating(0, 5);
53
		votes = new Rating(0, 5);
48
		votes.setReadOnly(false);
54
		votes.setReadOnly(false);
49
		voter.add(votes);
55
		voter.add(votes);
50
		masquerBoutonAnnuler();
56
		masquerBoutonAnnuler();
51
		masquerBoutonVoter();
57
		masquerBoutonVoter();
-
 
58
		votePrisEnCompte.setVisible(false);
-
 
59
		animerVotePrisEnCompte = new InfoBulleAnim(votePrisEnCompte);
52
	}
60
	}
Line 53... Line 61...
53
	
61
	
54
	public HasClickHandlers getBoutonVoter() {
62
	public HasClickHandlers getBoutonVoter() {
55
		return boutonVoter;
63
		return boutonVoter;
Line 107... Line 115...
107
 
115
 
108
	@Override
116
	@Override
109
	public void ajouterAuParent(HasWidgets composite) {
117
	public void ajouterAuParent(HasWidgets composite) {
110
		composite.add(this);
118
		composite.add(this);
-
 
119
	}
-
 
120
	
-
 
121
	@Override
-
 
122
	public void afficherVotePrisEnCompte() {
-
 
123
		votePrisEnCompte.removeStyleName("votePrisEnCompteNon");
-
 
124
		votePrisEnCompte.setStyleName("votePrisEnCompteOui");
-
 
125
		animerVotePrisEnCompte.run(2000);
111
	}
126
	}