Line 5... |
Line 5... |
5 |
import org.tela_botanica.del.client.i18n.I18n;
|
5 |
import org.tela_botanica.del.client.i18n.I18n;
|
6 |
import org.tela_botanica.del.client.modeles.Commentaire;
|
6 |
import org.tela_botanica.del.client.modeles.Commentaire;
|
7 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
7 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
Line 8... |
Line 8... |
8 |
|
8 |
|
- |
|
9 |
import com.google.gwt.core.client.GWT;
|
9 |
import com.google.gwt.core.client.GWT;
|
10 |
import com.google.gwt.i18n.client.DateTimeFormat;
|
10 |
import com.google.gwt.uibinder.client.UiBinder;
|
11 |
import com.google.gwt.uibinder.client.UiBinder;
|
11 |
import com.google.gwt.uibinder.client.UiField;
|
12 |
import com.google.gwt.uibinder.client.UiField;
|
12 |
import com.google.gwt.user.client.ui.Composite;
|
13 |
import com.google.gwt.user.client.ui.Composite;
|
13 |
import com.google.gwt.user.client.ui.FlexTable;
|
14 |
import com.google.gwt.user.client.ui.FlexTable;
|
Line 52... |
Line 53... |
52 |
creerEntetes();
|
53 |
creerEntetes();
|
Line 53... |
Line 54... |
53 |
|
54 |
|
54 |
if (propositionDetermination.getCommentaire() != null && propositionDetermination.getCommentaire() != "") {
|
55 |
if (propositionDetermination.getCommentaire() != null && propositionDetermination.getCommentaire() != "") {
|
55 |
htmlTableau.setHTML(2, 1, propositionDetermination.getAuteur());
|
56 |
htmlTableau.setHTML(2, 1, propositionDetermination.getAuteur());
|
56 |
htmlTableau.setHTML(2, 2, propositionDetermination.getCommentaire());
|
57 |
htmlTableau.setHTML(2, 2, propositionDetermination.getCommentaire());
|
57 |
htmlTableau.setHTML(2, 3, propositionDetermination.getDate() + "");
|
58 |
htmlTableau.setHTML(2, 3, DateTimeFormat.getFormat("dd/MM/yyyy").format(propositionDetermination.getDate()));
|
Line 58... |
Line 59... |
58 |
}
|
59 |
}
|
59 |
|
60 |
|
Line 80... |
Line 81... |
80 |
*/
|
81 |
*/
|
81 |
private void chargerCommentaire(Commentaire commentaire) {
|
82 |
private void chargerCommentaire(Commentaire commentaire) {
|
82 |
int ligne = htmlTableau.getRowCount() + 1;
|
83 |
int ligne = htmlTableau.getRowCount() + 1;
|
83 |
htmlTableau.setHTML(ligne, 1, commentaire.getAuteur());
|
84 |
htmlTableau.setHTML(ligne, 1, commentaire.getAuteur());
|
84 |
htmlTableau.setHTML(ligne, 2, commentaire.getCommentaire());
|
85 |
htmlTableau.setHTML(ligne, 2, commentaire.getCommentaire());
|
85 |
htmlTableau.setHTML(ligne, 3, commentaire.getDate() + "");
|
86 |
htmlTableau.setHTML(ligne, 3, DateTimeFormat.getFormat("dd/MM/yyyy").format(commentaire.getDate()));
|
86 |
}
|
87 |
}
|
Line 87... |
Line 88... |
87 |
|
88 |
|
88 |
/**
|
89 |
/**
|
89 |
* Affiche les en-tĂȘtes du tableau de commentaires
|
90 |
* Affiche les en-tĂȘtes du tableau de commentaires
|