| com.ibatis.common.util.PaginatedList
All known Subclasses: com.ibatis.common.util.PaginatedArrayList, com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList,
PaginatedList | public interface PaginatedList extends List(Code) | | Interface for lists that support paging
|
getPageIndex | public int getPageIndex()(Code) | | Returns the current page index, which is a zero based integer.
All paginated list implementations should know what index they are
on, even if they don't know the ultimate boundaries (min/max).
The current page |
getPageSize | public int getPageSize()(Code) | | Returns the maximum number of items per page
The maximum number of items per page. |
gotoPage | public void gotoPage(int pageNumber)(Code) | | Moves to a specified page. If the specified
page is beyond the last page, wrap to the first page.
If the specified page is before the first page, wrap
to the last page.
Parameters: pageNumber - The page to go to |
isFirstPage | public boolean isFirstPage()(Code) | | Is the current page the first page?
True if the current page is the first page or if onlya single page exists. |
isLastPage | public boolean isLastPage()(Code) | | Is the current page the last page?
True if the current page is the last page or if onlya single page exists. |
isMiddlePage | public boolean isMiddlePage()(Code) | | Is the current page a middle page (ie not first or last)?
True if the current page is not the first or last page,and more than one page exists (always returns false if only asingle page exists). |
isNextPageAvailable | public boolean isNextPageAvailable()(Code) | | Is a page available after the current page?
True if the next page is available |
isPreviousPageAvailable | public boolean isPreviousPageAvailable()(Code) | | Is a page available before the current page?
True if the previous page is available |
nextPage | public boolean nextPage()(Code) | | Moves to the next page after the current page. If the current
page is the last page, wrap to the first page.
True if the page changed |
previousPage | public boolean previousPage()(Code) | | Moves to the page before the current page. If the current
page is the first page, wrap to the last page.
True if the page changed |
|
|