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

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

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

DataTable.setItemsPerPage介绍

[英]Sets the number of items to be displayed per page
[中]

代码示例

代码示例来源:origin: org.opensingular/wicket-utils

  1. public BSDataTable<T, S> setRowsPerPage(Long items) {
  2. super.setItemsPerPage(ObjectUtils.defaultIfNull(items, DEFAULT_ROWS_PER_PAGE));
  3. return this;
  4. }
  5. public long getRowsPerPage() {

代码示例来源:origin: org.opensingular/singular-wicket-utils

  1. public BSDataTable<T, S> setRowsPerPage(Long items) {
  2. super.setItemsPerPage(ObjectUtils.defaultIfNull(items, DEFAULT_ROWS_PER_PAGE));
  3. return this;
  4. }
  5. public long getRowsPerPage() {

代码示例来源:origin: org.opensingular/wicket-utils

  1. public BSTableTree<T, S> setRowsPerPage(Long rowsPerPage) {
  2. super.getTable().setItemsPerPage((rowsPerPage != null) ? rowsPerPage : DEFAULT_ROWS_PER_PAGE);
  3. return this;
  4. }

代码示例来源:origin: org.opensingular/singular-wicket-utils

  1. public BSTableTree<T, S> setRowsPerPage(Long rowsPerPage) {
  2. super.getTable().setItemsPerPage((rowsPerPage != null) ? rowsPerPage : DEFAULT_ROWS_PER_PAGE);
  3. return this;
  4. }

代码示例来源:origin: micromata/projectforge

  1. /**
  2. * Called, if the list must be refreshed. Sets list to null and page size of data table.
  3. */
  4. public void refresh()
  5. {
  6. this.resultList = null; // Force reload of list
  7. this.refreshResultList = true;
  8. final long itemsPerPage = dataTable.getItemsPerPage();
  9. if (form.getPageSize() != null && form.getPageSize().longValue() != itemsPerPage) {
  10. dataTable.setItemsPerPage(form.getPageSize());
  11. }
  12. addRecentSearchTerm();
  13. }

相关文章