java.lang.Object | |
↳ | com.atlassian.jira.web.action.util.lists.ListPager<T> |
This is a simple pager that can reduce a big list into paged sizes. Its designed for use within webwork actions/jsp in that it is immutable (eg one page per created ListPager) and actions can only really show one page of data per render.
You need to specify the page number you want to go to, the number of rows per page and the full list you want to page.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a ListPager that pages a list from a certain page number.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the pager has multiple pages.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Each implementation of this class is expected to generate their own URLS based on the passed in page number
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a ListPager that pages a list from a certain page number. If the page number is greater than makes sense, it is trims it back to the last possible page number.
fullList | is the full list of object |
---|---|
pageNo | is a zero based index |
rowsPerPage | must be > 0 |
generatePageURL(int, int)
to generate
an URL
generatePageURL(int, int)
to
generate an URL
Returns true if the pager has multiple pages. If this is false, then all the link generating methods will return null, since there isnt more than one page of data.
Each implementation of this class is expected to generate their own URLS based on the passed in page number
targetPageNo | the target page number |
---|---|
rowsPerPage | the rows per page |