Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1025 → Rev 1026

/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/barreRepartition.css
14,12 → 14,12
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 145px;
width: 185px;
margin-bottom: 5px;
}
 
.barre {
width:80px;
width:50px;
height:15px;
background:#BBB;
float:left;
29,6 → 29,13
float:left;
}
 
.pourcentage {
position:absolute;
font-size:10px;
width:48px;
text-align:center;
}
 
.barreOui {
background:#8EB533;
padding-bottom:15px;
/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/BarreRepartitionVoteVue.ui.xml
8,6 → 8,7
<g:HTMLPanel styleName="{style.conteneurBarreOuiNon}">
<g:PushButton ui:field="boutonNon" text="-" styleName="{style.boutonNon}"/>
<g:HTMLPanel styleName="{style.barre}">
<g:Label styleName="{style.pourcentage}" ui:field="pourcentage"></g:Label>
<g:HTMLPanel ui:field="barreOui" styleName="{style.barreOui} gauche"/>
<g:HTMLPanel ui:field="barreNon" styleName="{style.barreNon} droite"/>
</g:HTMLPanel>
/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/BarreRepartitionVotePresenteur.java
31,6 → 31,7
public void afficherVotePrisEnCompte(boolean b);
public void afficherVoteModifie(boolean b);
public void toggleNomEspece();
public void setPourcentage(int pourcentage);
}
 
private Vue vue;
54,6 → 55,9
int score = moyenneVote.getScore();
String intitule = moyenneVote.getIntituleAssocie();
vue.afficherVotes(score, intitule);
if (score > 0) {
vue.setPourcentage(score);
}
afficherValeurVoteUtilisateur();
}
/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/BarreRepartitionVoteVue.java
20,7 → 20,7
private InfoBulleAnim animerVoteModifie;
 
@UiField
Label nomTaxon;
Label nomTaxon, pourcentage;
@UiField
Panel barreOui, barreNon, votePrisEnCompte, voteModifie;
@UiField
115,4 → 115,9
public void toggleNomEspece() {
nomTaxon.setVisible(!nomTaxon.isVisible());
}
@Override
public void setPourcentage(int pourcentage) {
this.pourcentage.setText(String.valueOf(pourcentage) + "%");
}
}