Exemple #1
0
  @Override
  protected Widget onInitialization() {
    new RequestCommentsServiceCall(parent.getId()).execute(); // TODO commentsManagerComponent

    activateCommentLink = new HyperlinkWidget(new ActivateCommentEditorAction());

    widgets = new HashMap<Comment, CommentWidget>();

    containerPanel = new FlowPanel();
    containerPanel.setStyleName("CommentsWidget");

    return containerPanel;
  }
Exemple #2
0
  @Override
  protected Widget onInitialization() {
    new RequestCommentsServiceCall(parent.getId()).execute(); // TODO commentsManagerComponent

    activateCommentLink = new HyperlinkWidget(new ActivateCommentEditorAction());

    widgets = new HashMap<Comment, CommentWidget>();

    editorWrapper = new SimplePanel();
    editorWrapper.setWidget(activateCommentLink);

    commentListPanel = new FlowPanel();

    FlowPanel panel = new FlowPanel();
    panel = new FlowPanel();
    panel.setStyleName("CommentsWidget");
    panel.add(editorWrapper);
    panel.add(commentListPanel);
    return panel;
  }