コード例 #1
0
  @Override
  public void init(QuickNewJobPresenter p) {
    this.presenter = p;

    newParametersButton.setText(constants.Add_Parameter());
    createButton.setText(constants.Create());
    jobNameLabel.setText(constants.Name());
    jobDueLabel.setText(constants.Due_On());
    jobTypeLabel.setText(constants.Type());
    dataTriesLabel.setText(constants.Retries());

    myParametersGrid.setHeight("200px");

    // Set the message to display when the table is empty.
    myParametersGrid.setEmptyTableWidget(new Label(constants.No_Parameters_added_yet()));

    initGridColumns();

    long now = System.currentTimeMillis();
    jobDueDate.setEnabled(true);

    jobDueDate.setValue(now);

    jobDueDateTime.setValue(UTCDateBox.date2utc(new Date()));
  }
コード例 #2
0
 private void initPathLink() {
   FlowPanel container = new FlowPanel();
   Label pathLabel = new Label();
   pathLabel.setText("Path:");
   pathLink = new Anchor();
   pathLink.setText("/");
   container.add(pathLabel);
   container.add(pathLink);
   listGrid.getLeftToolbar().add(container);
 }
コード例 #3
0
  @Override
  public void init(TaskCommentsPresenter presenter) {
    this.presenter = presenter;
    listContainer.add(commentsListGrid);
    listContainer.add(pager);
    commentsAccordionLabel.add(new HTMLPanel(constants.Add_Comment()));
    commentsListGrid.setHeight("350px");
    commentsListGrid.setEmptyTableWidget(new HTMLPanel(constants.No_Comments_For_This_Task()));
    // Attach a column sort handler to the ListDataProvider to sort the list.
    sortHandler = new ListHandler<CommentSummary>(presenter.getDataProvider().getList());
    commentsListGrid.addColumnSortHandler(sortHandler);
    initTableColumns();
    presenter.addDataDisplay(commentsListGrid);
    // Create a Pager to control the table.
    pager.setDisplay(commentsListGrid);
    pager.setPageSize(COMMENTS_PER_PAGE);
    adjustDisplayForListOfSize(1);

    newTaskCommentTextArea.setWidth("300px");
    addCommentButton.setText(constants.Add_Comment());
    newTaskCommentLabel.setText(constants.Comment());
  }
コード例 #4
0
 @Override
 public void onReady(ReadyEvent event) {
   label.setText("The visualization is ready");
 }