Subversion Repositories eFlore/Applications.del

Rev

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

Rev 140 Rev 144
Line 3... Line 3...
3
import org.tela_botanica.del.client.vues.plateformedetermination.vote.EnsembleVotesVue;
3
import org.tela_botanica.del.client.vues.plateformedetermination.vote.EnsembleVotesVue;
Line 4... Line 4...
4
 
4
 
5
import com.google.gwt.core.client.GWT;
5
import com.google.gwt.core.client.GWT;
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.ui.Composite;
9
import com.google.gwt.user.client.ui.Composite;
9
import com.google.gwt.user.client.ui.HTML;
10
import com.google.gwt.user.client.ui.HTML;
Line 10... Line 11...
10
import com.google.gwt.user.client.ui.Widget;
11
import com.google.gwt.user.client.ui.Widget;
Line 15... Line 16...
15
 
16
 
Line 16... Line 17...
16
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
17
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
Line -... Line 18...
-
 
18
	
-
 
19
	private int pourcentage = 0;
17
	
20
	
18
	private int pourcentage = 0;
21
	private String NomTaxon = "";
Line 19... Line 22...
19
	
22
	
20
	@UiField(provided = true)
-
 
21
	public HTML barreRepartitionHtmlBrut = new HTML("<div class=\"barreRepartition\"></div>");
23
	@UiField(provided = true)
22
	
24
	public HTML barreRepartitionHtmlBrut = new HTML("<div class=\"barreRepartition\"></div>");
Line 23... Line 25...
23
	public BarreRepartitionVoteVue() {
25
	
-
 
26
	public BarreRepartitionVoteVue() {
24
		afficherVotes(70);
27
		initWidget(uiBinder.createAndBindUi(this));
-
 
28
	}
25
		initWidget(uiBinder.createAndBindUi(this));
29
	
-
 
30
	public void afficherVotes(int pourcentage, String NomTaxon) {
26
	}
31
		
-
 
32
		this.pourcentage = pourcentage;
-
 
33
		this.NomTaxon = NomTaxon;
27
	
34
		String chaineHtml = "<div class=\"conteneurBarreRepartition\">" +
28
	public void afficherVotes(int pourcentage) {
35
							"<div class=\"barreRepartition\">"+
29
		this.pourcentage = pourcentage;
36
							"<div style=\"width:"+pourcentage+"%\" class=\"elementBarreRepartition voteOui\"></div>"+
Line 30... Line 37...
30
		String chaineHtml = "<div class=\"barreRepartition\">"+
37
							"</div>"+