Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 140 → Rev 144

/src/org/tela_botanica/del/client/vues/plateformedetermination/vote/barrerepartition/BarreRepartitionVoteVue.java
5,6 → 5,7
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
17,20 → 18,26
private int pourcentage = 0;
private String NomTaxon = "";
@UiField(provided = true)
public HTML barreRepartitionHtmlBrut = new HTML("<div class=\"barreRepartition\"></div>");
public BarreRepartitionVoteVue() {
afficherVotes(70);
initWidget(uiBinder.createAndBindUi(this));
}
public void afficherVotes(int pourcentage) {
public void afficherVotes(int pourcentage, String NomTaxon) {
this.pourcentage = pourcentage;
String chaineHtml = "<div class=\"barreRepartition\">"+
this.NomTaxon = NomTaxon;
String chaineHtml = "<div class=\"conteneurBarreRepartition\">" +
"<div class=\"barreRepartition\">"+
"<div style=\"width:"+pourcentage+"%\" class=\"elementBarreRepartition voteOui\"></div>"+
"</div>"+
"<span class=\"nomTaxonBarreRepartition\">"+NomTaxon+"</span>"+
"</div>";
barreRepartitionHtmlBrut = new HTML(chaineHtml);
barreRepartitionHtmlBrut.setHTML(chaineHtml);
}
 
}