Subversion Repositories eFlore/Applications.del

Rev

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

Rev 210 Rev 301
Line 8... Line 8...
8
import com.google.gwt.user.client.ui.Button;
8
import com.google.gwt.user.client.ui.Button;
9
import com.google.gwt.user.client.ui.Composite;
9
import com.google.gwt.user.client.ui.Composite;
10
import com.google.gwt.user.client.ui.FocusPanel;
10
import com.google.gwt.user.client.ui.FocusPanel;
11
import com.google.gwt.user.client.ui.Widget;
11
import com.google.gwt.user.client.ui.Widget;
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
public class MonVoteProtocoleVue extends Composite {
13
public class MonVoteProtocoleVue extends Composite implements MonVoteProtocolePresenteur.Vue {
14
 
14
 
Line 15... Line 15...
15
	interface MyUiBinder extends UiBinder<Widget, MonVoteProtocoleVue> {
15
	interface MyUiBinder extends UiBinder<Widget, MonVoteProtocoleVue> {
Line 16... Line 16...
16
	}
16
	}
17
 
17
 
18
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
18
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
19
 
19
 
20
	@UiField
20
	@UiField
21
	FocusPanel voter;
21
	FocusPanel voter;
22
	
22
 
Line 23... Line 23...
23
	@UiField
23
	@UiField
24
	Button boutonVote;
24
	Button boutonVote;
25
	
25
 
26
	private Rating rating = new Rating(0, 5);
26
	private Rating rating = new Rating(0, 5);
27
 
27
 
Line 28... Line 28...
28
	protected MonVoteProtocoleVue() {
28
	public MonVoteProtocoleVue() {
Line 29... Line 29...
29
		initWidget(uiBinder.createAndBindUi(this));
29
		initWidget(uiBinder.createAndBindUi(this));
30
		
30
 
31
		rating.setReadOnly(false);
31
		rating.setReadOnly(false);
Line 32... Line -...
32
		voter.add(rating);
-
 
33
 
-
 
34
	}
-
 
35
 
-
 
36
	public Rating getRating() {
32
		voter.add(rating);
37
		return rating;
33
 
38
	}
34
	}
Line 39... Line -...
39
 
-
 
40
	public void setRating(Rating rating) {
-
 
41
		this.rating = rating;
-
 
42
	}
35