org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.getCurrentPage()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.getCurrentPage()方法的一些代码示例,展示了DataTable.getCurrentPage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataTable.getCurrentPage()方法的具体详情如下:
包路径:org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable
类名称:DataTable
方法名:getCurrentPage

DataTable.getCurrentPage介绍

暂无

代码示例

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

public int getCurrentPage()
{
  return table.getCurrentPage();
}

代码示例来源:origin: inception-project/inception

@Override protected void onDetach()
{
  // Save the current page number of the search results when the sidebar being switched
  DataTable<ExternalSearchResult, String> resultTable =
    (DataTable<ExternalSearchResult, String>) dataTableContainer.get("resultsTable");
  externalSearchUserState.setCurrentPage(resultTable.getCurrentPage());
  // save current repository
  externalSearchUserState.setCurrentRepository(currentRepository);
  super.onDetach();
}

代码示例来源:origin: theonedev/onedev

@Override
public void populateItem(Item<ICellPopulator<Issue>> cellItem, String componentId,
    IModel<Issue> rowModel) {
  Issue issue = rowModel.getObject();
  Fragment fragment = new Fragment(componentId, "summaryFrag", IssueListPanel.this);
  fragment.add(new Label("number", "#" + issue.getNumber()));
  OddEvenItem<?> row = cellItem.findParent(OddEvenItem.class);
  QueryPosition position = new QueryPosition(parsedQueryModel.getObject().toString(), (int)issuesTable.getItemCount(), 
      (int)issuesTable.getCurrentPage() * WebConstants.PAGE_SIZE + row.getIndex());
  Link<Void> link = new BookmarkablePageLink<Void>("title", IssueActivitiesPage.class, 
      IssueActivitiesPage.paramsOf(issue, position));
  link.add(new Label("label", issue.getTitle()));
  fragment.add(link);
  fragment.add(new WebMarkupContainer("copy").add(new CopyClipboardBehavior(Model.of("#" + issue.getNumber() + ": " + issue.getTitle()))));
  
  fragment.add(new IssueStateLabel("state", rowModel));
  
  UserIdent submitterIdent = UserIdent.of(UserFacade.of(issue.getSubmitter()), issue.getSubmitterName());
  fragment.add(new UserIdentPanel("submitter", submitterIdent, Mode.NAME));
  fragment.add(new Label("submitDate", DateUtils.formatAge(issue.getSubmitDate())));
  
  fragment.add(new Label("votes", issue.getVoteCount()));
  fragment.add(new Label("comments", issue.getCommentCount()));
  
  cellItem.add(fragment);
}

相关文章