Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1069 → Rev 1070

/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/BarreRepartitionVoteVue.ui.xml
6,13 → 6,13
<g:HTMLPanel styleName="{style.conteneurBarre}">
<g:Label ui:field="nomTaxon" styleName="{style.labelTaxon} labelTaxon" />
<g:HTMLPanel styleName="{style.conteneurBarreOuiNon}">
<g:PushButton ui:field="boutonNon" text="-" styleName="{style.boutonNon}"/>
<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>
<g:PushButton ui:field="boutonOui" text="+" styleName="{style.boutonOui}"/>
<g:PushButton ui:field="boutonOui" text=" " styleName="{style.boutonOui}"/>
<g:HTMLPanel ui:field="votePrisEnCompte"><g:Label text="{constants.votePrisEnCompte}"></g:Label></g:HTMLPanel>
<g:HTMLPanel ui:field="voteModifie"><g:Label text="{constants.voteModifie}"></g:Label></g:HTMLPanel>
</g:HTMLPanel>
/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/BarreRepartitionVoteVue.java
1,5 → 1,7
package org.tela_botanica.del.client.composants.votes.barrerepartition;
 
import org.tela_botanica.del.client.i18n.I18n;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
32,6 → 34,8
voteModifie.setVisible(false);
animerVotePrisEnCompte = new InfoBulleAnim(votePrisEnCompte);
animerVoteModifie = new InfoBulleAnim(voteModifie);
boutonOui.setTitle(I18n.getVocabulary().JeSuisDaccord());
boutonNon.setTitle(I18n.getVocabulary().JeNeSuisPasDaccord());
}
 
@Override
67,17 → 71,21
@Override
public void setVoteOuiEffectue() {
boutonOui.setEnabled(false);
boutonOui.addStyleName("boutonVoteDesactive");
boutonOui.addStyleName("boutonVoteOuiDesactive");
boutonNon.setEnabled(true);
boutonNon.removeStyleName("boutonVoteDesactive");
boutonNon.removeStyleName("boutonVoteNonDesactive");
boutonOui.setTitle("");
boutonNon.setTitle(I18n.getVocabulary().JeNeSuisPasDaccord());
}
 
@Override
public void setVoteNonEffectue() {
boutonOui.setEnabled(true);
boutonOui.removeStyleName("boutonVoteDesactive");
boutonOui.removeStyleName("boutonVoteOuiDesactive");
boutonNon.setEnabled(false);
boutonNon.addStyleName("boutonVoteDesactive");
boutonNon.addStyleName("boutonVoteNonDesactive");
boutonOui.setTitle(I18n.getVocabulary().JeSuisDaccord());
boutonNon.setTitle("");
}
 
@Override
/trunk/src/org/tela_botanica/del/client/composants/votes/barrerepartition/barreRepartition.css
64,14 → 64,15
height:15px;
width:15px;
border-radius:0 2px 2px 0;
background-image: url("img/pouce_haut.png");
}
 
.boutonOui:hover {
background:#8EB533;
background-image: url("img/pouce_haut_hover.png");
}
 
.boutonNon:hover {
background:#C61717
background-image: url("img/pouce_bas_hover.png");
}
 
.boutonNon {
79,6 → 80,7
height:15px;
width:15px;
border-radius:2px 0 0 2px;
background-image: url("img/pouce_bas.png");
}