Subversion Repositories eFlore/Applications.del

Compare Revisions

Regard whitespace Rev 155 → Rev 153

/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/ForumVue.java
1,5 → 1,6
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 
19,10 → 20,8
public class ForumVue extends Composite {
 
private static ForumUIiBinder uiBinder = GWT.create(ForumUIiBinder.class);
interface ForumUIiBinder extends UiBinder<Widget, ForumVue>{};
 
interface ForumUIiBinder extends UiBinder<Widget, ForumVue> {
};
 
@UiField(provided = true)
HTML htmlTableau = new HTML();
 
32,17 → 31,30
 
public void chargerObservations(List<PropositionDetermination> determinations) {
 
String ligne = "<table>" + "<tr>" + "<th> " + I18n.getVocabulary().nom() + " </th>" + "<th> " + I18n.getVocabulary().contributeur() + " </th>" + "<th> " + I18n.getVocabulary().fiabilite() + " </th>" + "<th> " + I18n.getVocabulary().date() + " </th>" + "<th> " + I18n.getVocabulary().commentaire() + " </th>" + "</tr>";
String ligne = "<table>"+
"<tr>"+
"<th> "+I18n.getVocabulary().nom()+" </th>"+
"<th> "+I18n.getVocabulary().contributeur()+" </th>"+
"<th> "+I18n.getVocabulary().fiabilite()+" </th>"+
"<th> "+I18n.getVocabulary().date()+" </th>"+
"<th> "+I18n.getVocabulary().commentaire()+" </th>"+
"</tr>";
 
for (PropositionDetermination observationDetermination : determinations) {
 
ligne += "<tr>" + "<td>" + observationDetermination.getEspece() + "</td>" + "<td>" + observationDetermination.getContributeur() + "</td>" + "<td>" + observationDetermination.getPourcentageConfiance() + "</td>" + "<td>" + formaterDatePourForum(observationDetermination.getDate()) + "</td>" + "<td>" + creerListeCommentaireRecursive(observationDetermination.getCommentaires()) + "</td>" + "</tr>";
ligne += "<tr>"+
"<td>"+observationDetermination.getEspece()+"</td>"+
"<td>"+observationDetermination.getContributeur()+"</td>"+
"<td>"+observationDetermination.getPourcentageConfiance()+"</td>"+
"<td>"+formaterDatePourForum(observationDetermination.getDate())+"</td>"+
"<td>"+creerListeCommentaireRecursive(observationDetermination.getCommentaires())+"</td>"+
"</tr>";
}
ligne += "</table>";
htmlTableau.setHTML(ligne);
}
 
private String creerListeCommentaireRecursive(List<Commentaire> commentaires) {
private String creerListeCommentaireRecursive(ArrayList<Commentaire> commentaires) {
 
String commentairesHtml = "<ul class=\"liste_commentaire\">";
for (Commentaire commentaire : commentaires) {