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); |