Subversion Repositories eFlore/Applications.del

Rev

Rev 966 | Rev 1005 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 966 Rev 1004
Line 2... Line 2...
2
 
2
 
3
import com.google.gwt.core.client.GWT;
3
import com.google.gwt.core.client.GWT;
4
import com.google.gwt.event.dom.client.HasClickHandlers;
4
import com.google.gwt.event.dom.client.HasClickHandlers;
5
import com.google.gwt.uibinder.client.UiBinder;
5
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiField;
-
 
7
import com.google.gwt.user.client.Element;
-
 
8
import com.google.gwt.user.client.Window;
6
import com.google.gwt.uibinder.client.UiField;
9
import com.google.gwt.user.client.ui.Composite;
7
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.Label;
8
import com.google.gwt.user.client.ui.Label;
11
import com.google.gwt.user.client.ui.Panel;
9
import com.google.gwt.user.client.ui.Panel;
12
import com.google.gwt.user.client.ui.PushButton;
10
import com.google.gwt.user.client.ui.PushButton;
Line 13... Line 11...
13
import com.google.gwt.user.client.ui.Widget;
11
import com.google.gwt.user.client.ui.Widget;
Line 14... Line 12...
14
 
12
 
-
 
13
public class BarreRepartitionVoteVue extends Composite implements BarreRepartitionVotePresenteur.Vue {
-
 
14
 
15
public class BarreRepartitionVoteVue extends Composite implements BarreRepartitionVotePresenteur.Vue {
15
	interface MyUiBinder extends UiBinder<Widget, BarreRepartitionVoteVue> {
-
 
16
	}
16
	
17
 
Line -... Line 18...
-
 
18
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
17
	interface MyUiBinder extends UiBinder<Widget, BarreRepartitionVoteVue> {}
19
	private InfoBulleAnim animerVotePrisEnCompte;
-
 
20
	private InfoBulleAnim animerVoteModifie;
18
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
21
 
-
 
22
	@UiField
19
	private InfoBulleAnim animer;
23
	Label nomTaxon;
Line 20... Line 24...
20
	
24
	@UiField
21
	@UiField Label nomTaxon;
25
	Panel barreOui, barreNon, votePrisEnCompte, voteModifie;
22
	@UiField Panel barreOui, barreNon, votePrisEnCompte;
26
	@UiField
-
 
27
	PushButton boutonOui, boutonNon;
23
	@UiField PushButton boutonOui, boutonNon;
28
 
-
 
29
	public BarreRepartitionVoteVue() {
24
	
30
		initWidget(uiBinder.createAndBindUi(this));
Line 25... Line 31...
25
	public BarreRepartitionVoteVue() {
31
		votePrisEnCompte.setVisible(false);
26
		initWidget(uiBinder.createAndBindUi(this));
32
		voteModifie.setVisible(false);
27
		votePrisEnCompte.setVisible(false);
33
		animerVotePrisEnCompte = new InfoBulleAnim(votePrisEnCompte);
Line 73... Line 79...
73
			votePrisEnCompte.setStyleName("votePrisEnCompteOui");
79
			votePrisEnCompte.setStyleName("votePrisEnCompteOui");
74
		} else {
80
		} else {
75
			votePrisEnCompte.removeStyleName("votePrisEnCompteOui");
81
			votePrisEnCompte.removeStyleName("votePrisEnCompteOui");
76
			votePrisEnCompte.setStyleName("votePrisEnCompteNon");
82
			votePrisEnCompte.setStyleName("votePrisEnCompteNon");
77
		}
83
		}
-
 
84
		animerVotePrisEnCompte.run(2000);
-
 
85
	}
-
 
86
 
-
 
87
	public void afficherVoteModifie(boolean voteOui) {
-
 
88
		if (voteOui) {
-
 
89
			voteModifie.removeStyleName("votePrisEnCompteNon");
-
 
90
			voteModifie.setStyleName("votePrisEnCompteOui");
-
 
91
		} else {
-
 
92
			voteModifie.removeStyleName("votePrisEnCompteOui");
-
 
93
			voteModifie.setStyleName("votePrisEnCompteNon");
-
 
94
		}
78
		animer.run(2000);
95
		animerVoteModifie.run(2000);
79
	}
96
	}
Line 80... Line 97...
80
 
97
 
81
	@Override
98
	@Override
82
	public void desactiverBoutons() {
99
	public void desactiverBoutons() {