本文整理了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
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!