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
 
301 benjamin 13
public class MonVoteProtocoleVue extends Composite implements MonVoteProtocolePresenteur.Vue {
116 benjamin 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;
301 benjamin 22
 
116 benjamin 23
	@UiField
24
	Button boutonVote;
301 benjamin 25
 
116 benjamin 26
	private Rating rating = new Rating(0, 5);
27
 
301 benjamin 28
	public MonVoteProtocoleVue() {
116 benjamin 29
		initWidget(uiBinder.createAndBindUi(this));
301 benjamin 30
 
116 benjamin 31
		rating.setReadOnly(false);
32
		voter.add(rating);
33
 
34
	}
35
 
36
	public Rating getRating() {
37
		return rating;
38
	}
39
 
40
	public Button getBoutonVote() {
41
		return boutonVote;
42
	}
43
 
44
}