|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.web.bean.PagerFilter
public class PagerFilter
This is a super class that implements paging for browsers.
Most other filters (which want paging ability) will extend this.
| Field Summary | |
|---|---|
protected Collection<Page> |
pages
Deprecated. since 4.0 use #getPages() rather than access pages directly |
| Constructor Summary | |
|---|---|
PagerFilter()
|
|
PagerFilter(int max)
|
|
| Method Summary | |
|---|---|
List<Page> |
generatePages(Collection<Issue> items)
generates a collection of page objects which keep track of the pages for display |
List<Issue> |
getCurrentPage(List<Issue> itemsCol)
Gets the current page out of a list of objects. |
int |
getEnd()
|
int |
getMax()
|
int |
getNextStart()
|
protected Collection<Page> |
getPages()
|
List<Page> |
getPages(Collection<Issue> itemsCol)
|
int |
getPreviousStart()
|
int |
getStart()
|
static PagerFilter |
getUnlimitedFilter()
A pager that will return unlimited number of objects. |
List<Page> |
restrictPages(Collection<Page> pages,
int size)
Restrict the pagers to a certain number of pages on either side of the current page. |
void |
setMax(int max)
|
void |
setStart(int start)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Collection<Page> pages
Page objects
| Constructor Detail |
|---|
public PagerFilter()
public PagerFilter(int max)
| Method Detail |
|---|
public static PagerFilter getUnlimitedFilter()
Integer.MAX_VALUEpublic List<Issue> getCurrentPage(List<Issue> itemsCol)
public List<Page> getPages(Collection<Issue> itemsCol)
protected Collection<Page> getPages()
public List<Page> generatePages(Collection<Issue> items)
items -
public List<Page> restrictPages(Collection<Page> pages,
int size)
PAGES_TO_LIST.
public int getMax()
public void setMax(int max)
public int getStart()
public void setStart(int start)
public int getEnd()
public int getNextStart()
public int getPreviousStart()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||