Subversion Repositories eFlore/Applications.del

Rev

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

Rev 172 Rev 186
Line 6... Line 6...
6
import com.google.gwt.uibinder.client.UiBinder;
6
import com.google.gwt.uibinder.client.UiBinder;
7
import com.google.gwt.uibinder.client.UiField;
7
import com.google.gwt.uibinder.client.UiField;
8
import com.google.gwt.user.client.Window;
8
import com.google.gwt.user.client.Window;
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.HTML;
10
import com.google.gwt.user.client.ui.HTML;
-
 
11
import com.google.gwt.user.client.ui.IsWidget;
-
 
12
import com.google.gwt.user.client.ui.PushButton;
11
import com.google.gwt.user.client.ui.Widget;
13
import com.google.gwt.user.client.ui.Widget;
Line 12... Line 14...
12
 
14
 
Line 13... Line 15...
13
public class BarreRepartitionVoteVue extends Composite {
15
public class BarreRepartitionVoteVue extends Composite implements IsWidget {
Line 14... Line 16...
14
	
16
	
Line 15... Line 17...
15
	interface MyUiBinder extends UiBinder<Widget, BarreRepartitionVoteVue> {}
17
	interface MyUiBinder extends UiBinder<Widget, BarreRepartitionVoteVue> {}
Line 16... Line 18...
16
 
18
 
Line 17... Line 19...
17
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
19
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
-
 
20
	
-
 
21
	private int pourcentage = -1;
-
 
22
	
-
 
23
	private int tailleBarre = 0;
-
 
24
	
-
 
25
	private String nomTaxon = "";
Line 18... Line 26...
18
	
26
	
19
	private int pourcentage = -1;
27
	@UiField(provided = true)
Line 20... Line 28...
20
	
28
	public PushButton boutonOui = new PushButton("+");
21
	private int tailleBarre = 0;
29
	
-
 
30
	@UiField(provided = true)
-
 
31
	public PushButton boutonNon = new PushButton("-");
22
	
32
	
Line 23... Line 33...
23
	private String NomTaxon = "";
33
	@UiField(provided = true)
Line 24... Line 34...
24
	
34
	public HTML barreRepartitionHtmlBrut = new HTML("<div class=\"barreRepartition\"></div>");
25
	@UiField(provided = true)
35
	
Line 26... Line 36...
26
	public HTML barreRepartitionHtmlBrut = new HTML("<div class=\"barreRepartition\"></div>");
36
	public BarreRepartitionVoteVue() {
Line 27... Line 37...
27
	
37
		initWidget(uiBinder.createAndBindUi(this));
28
	public BarreRepartitionVoteVue() {
38
		boutonNon.setWidth("20px");
Line 43... Line 53...
43
		
53
		
44
		String chaineHtml = "<div class=\"conteneurBarreRepartition\">" +
54
		String chaineHtml = "<div class=\"conteneurBarreRepartition\">" +
45
							"<div class=\""+classe+"\">"+
55
							"<div class=\""+classe+"\">"+
46
							"<div style=\"width:"+tailleBarre+"%\" class=\"elementBarreRepartition voteOui\"></div>"+
56
							"<div style=\"width:"+tailleBarre+"%\" class=\"elementBarreRepartition voteOui\"></div>"+
47
							"</div>"+
57
							"</div>"+
48
							"<span class=\"nomTaxonBarreRepartition\">"+NomTaxon+"</span>"+
58
							"<span class=\"nomTaxonBarreRepartition\">"+nomTaxon+"</span>"+
49
							"</div>";
59
							"</div>";
50
		barreRepartitionHtmlBrut.setHTML(chaineHtml);	
60
		barreRepartitionHtmlBrut.setHTML(chaineHtml);
Line 51... Line 61...
51
	}
61
	}
52
	
62
	
53
	public HTML getBarreRepartitionHtmlBrut() {
63
	public HTML getBarreRepartitionHtmlBrut() {
-
 
64
		return barreRepartitionHtmlBrut;
-
 
65
	}
-
 
66
	
-
 
67
	public PushButton getBoutonOui() {
-
 
68
		return boutonOui;
-
 
69
	}
-
 
70
	
-
 
71
	public PushButton getBoutonNon() {
Line 54... Line 72...
54
		return barreRepartitionHtmlBrut;
72
		return boutonNon;