Interface Pagination


public interface Pagination
Represents one page of a paginated collection

Do not mistake the term "page" within this interface with the Blueprint's Page concept.

Since:
1901
  • Method Details

    • getPageNum

      int getPageNum()
      Returns the number of this page

      Counting starts with 0.

    • getNumberOfPages

      long getNumberOfPages()
      Returns the total number of pages of the pagination
    • getItemsPerPage

      int getItemsPerPage()
      Return the number of items per page
    • getItems

      List<Linkable> getItems()
      Returns the items of this page
    • linkable

      CMLinkable linkable()
      Target for link building

      Templates build links on Pagination objects directly, but the implementation needs a "persistent handle" to refer to.