Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 186 → Rev 187

/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/LigneForumPresenteur.java
25,12 → 25,12
 
private void chargerDetermination() {
calculerEtAfficherVoteDetermination();
ligneforumVue.chargerDetermination(determination,barreRepartitionVotePresenteur.getBarreRepartitionVoteVueHTML());
ligneforumVue.chargerDetermination(determination,barreRepartitionVotePresenteur.getBarreRepartitionVoteVue());
}
private void calculerEtAfficherVoteDetermination() {
MoyenneVote votes = CalculVoteDeterminationService.calculerVoteDetermination(determination);
barreRepartitionVotePresenteur.afficherVotes(votes.getScore(), votes.getIntituleAssocie());
barreRepartitionVotePresenteur.afficherVotes(votes);
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/LigneForumVue.java
11,6 → 11,8
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
 
17,13 → 19,13
public class LigneForumVue extends Composite {
FlexTable tableParente;
HTML barreRepartition;
HTMLPanel barreRepartition;
public LigneForumVue(FlexTable flexTable) {
tableParente = flexTable;
}
public void chargerDetermination(PropositionDetermination determination, HTML barreRepartition) {
public void chargerDetermination(PropositionDetermination determination, IsWidget barreRepartition) {
 
Tree arbreCommentaires = new Tree();
TreeItem racineArbreCommentaires = new TreeItem();
31,7 → 33,7
creerListeCommentaireRecursive(racineArbreCommentaires, determination.getCommentaires());
 
int ligne = tableParente.getRowCount() + 1;
tableParente.setHTML(ligne, 1, barreRepartition.getHTML());
tableParente.setWidget(ligne, 1, barreRepartition);
tableParente.setHTML(ligne, 2, determination.getContributeur());
tableParente.setHTML(ligne, 3, DateTimeFormat.getFormat(PredefinedFormat.DATE_SHORT).format(determination.getDate()));
tableParente.setWidget(ligne, 4, arbreCommentaires);
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/ForumVue.java
39,7 → 39,6
htmlTableau.setHTML(1, 3, I18n.getVocabulary().fiabilite());
htmlTableau.setHTML(1, 4, I18n.getVocabulary().date());
htmlTableau.setHTML(1, 5, I18n.getVocabulary().commentaire());
 
}
public FlexTable getTable() {