com.ibatis.common.util
public interface PaginatedList extends List
Deprecated: All paginated list features have been deprecated
Interface for lists that support paging| Method Summary | |
|---|---|
| int | getPageIndex()
Returns the current page index, which is a zero based integer.
|
| int | getPageSize()
Returns the maximum number of items per page
|
| void | gotoPage(int pageNumber)
Moves to a specified page. |
| boolean | isFirstPage()
Is the current page the first page?
|
| boolean | isLastPage()
Is the current page the last page?
|
| boolean | isMiddlePage()
Is the current page a middle page (ie not first or last)?
|
| boolean | isNextPageAvailable()
Is a page available after the current page?
|
| boolean | isPreviousPageAvailable()
Is a page available before the current page?
|
| boolean | nextPage()
Moves to the next page after the current page. |
| boolean | previousPage()
Moves to the page before the current page. |
Returns: The current page
Returns: The maximum number of items per page.
Parameters: pageNumber The page to go to
Returns: True if the current page is the first page or if only a single page exists.
Returns: True if the current page is the last page or if only a single page exists.
Returns: True if the current page is not the first or last page, and more than one page exists (always returns false if only a single page exists).
Returns: True if the next page is available
Returns: True if the previous page is available
Returns: True if the page changed
Returns: True if the page changed