Package dk.netarkivet.heritrix3.monitor
Class Pagination
- java.lang.Object
-
- dk.netarkivet.heritrix3.monitor.Pagination
-
public class Pagination extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getPages(long items, long itemsPerPage)
Calculate the total number of pages.static java.lang.String
getPagination(long page, long itemsPerPage, long pages, boolean bShowAll, java.lang.String additionalParams)
Builds a pagination HTML text block.
-
-
-
Constructor Detail
-
Pagination
public Pagination()
-
-
Method Detail
-
getPages
public static long getPages(long items, long itemsPerPage)
Calculate the total number of pages.- Parameters:
items
- total number of itemsitemsPerPage
- items displayed per page- Returns:
- the total number of pages
-
getPagination
public static java.lang.String getPagination(long page, long itemsPerPage, long pages, boolean bShowAll, java.lang.String additionalParams)
Builds a pagination HTML text block.- Parameters:
page
- current pageitemsPerPage
- items displayed per pagepages
- total number of pages- Returns:
- HTML text block
-
-