Subversion Repositories eFlore/Applications.del

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
116 benjamin 1
package org.tela_botanica.del.client.vues.plateformedetermination.vote.protocole.personnel;
2
 
3
import org.cobogw.gwt.user.client.ui.Rating;
4
 
5
import com.google.gwt.core.client.GWT;
6
import com.google.gwt.uibinder.client.UiBinder;
7
import com.google.gwt.uibinder.client.UiField;
8
import com.google.gwt.user.client.ui.Button;
9
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.FocusPanel;
11
import com.google.gwt.user.client.ui.Widget;
12
 
13
public class MonVoteProtocoleVue extends Composite {
14
 
15
	interface MyUiBinder extends UiBinder<Widget, MonVoteProtocoleVue> {
16
	}
17
 
18
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
19
 
20
	@UiField
21
	FocusPanel voter;
22
 
23
	@UiField
24
	Button boutonVote;
25
 
26
	private Rating rating = new Rating(0, 5);
27
 
28
	protected MonVoteProtocoleVue() {
29
		initWidget(uiBinder.createAndBindUi(this));
30
 
31
		rating.setReadOnly(false);
32
		voter.add(rating);
33
 
34
	}
35
 
36
	public Rating getRating() {
37
		return rating;
38
	}
39
 
40
	public void setRating(Rating rating) {
41
		this.rating = rating;
42
	}
43
 
44
	public Button getBoutonVote() {
45
		return boutonVote;
46
	}
47
 
48
	public void setBoutonVote(Button boutonVote) {
49
		this.boutonVote = boutonVote;
50
	}
51
}