public class Pagination extends Object
Constructor and Description |
---|
Pagination() |
Modifier and Type | Method and Description |
---|---|
static long |
getPages(long items,
long itemsPerPage)
Calculate the total number of pages.
|
static String |
getPagination(long page,
long itemsPerPage,
long pages,
boolean bShowAll)
Builds a pagination HTML text block.
|
public Pagination()
public static long getPages(long items, long itemsPerPage)
items
- total number of itemsitemsPerPage
- items displayed per pagepublic static String getPagination(long page, long itemsPerPage, long pages, boolean bShowAll)
page
- current pageitemsPerPage
- items displayed per pagepages
- total number of pagesCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.