org.hdpagination.core
Interface Page


public interface Page

An interface containing pagination related information

Since:
1.0
Author:
Liangfeng Ren

Method Summary
 int getCurrentPage()
          Get current page number
 java.lang.String getOrderBy()
          Get the column by which the query result is sorted
 int getPageSize()
          Get the property defining how many records will display in one page
 int getTotalCount()
          How many records for this search result
 boolean hasNext()
          If the "next page" navigation link should be displayed and enabled If current page is the last page then return false;
 boolean hasPrevious()
          If the "previous page" navigation link should be displayed and enabled If current page is the first page then return false;
 boolean isAscending()
          Whether the query result is sorted by ascending order
 int totalPagesCount()
          How many pages can fit the whole search result
 

Method Detail

getCurrentPage

int getCurrentPage()
Get current page number

Returns:

getPageSize

int getPageSize()
Get the property defining how many records will display in one page

Returns:

getTotalCount

int getTotalCount()
How many records for this search result

Returns:

getOrderBy

java.lang.String getOrderBy()
Get the column by which the query result is sorted

Returns:

isAscending

boolean isAscending()
Whether the query result is sorted by ascending order

Returns:

hasPrevious

boolean hasPrevious()
If the "previous page" navigation link should be displayed and enabled If current page is the first page then return false;

Returns:

hasNext

boolean hasNext()
If the "next page" navigation link should be displayed and enabled If current page is the last page then return false;

Returns:

totalPagesCount

int totalPagesCount()
How many pages can fit the whole search result

Returns:


Copyright © 2008 HDPagination All Rights Reserved.