|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 |
pages
A collection of Page objects |
Constructor Summary | |
---|---|
PagerFilter()
|
|
PagerFilter(int max)
|
Method Summary | |
---|---|
List |
generatePages(Collection items)
generates a collection of page objects which keep track of the pages for display |
List |
getCurrentPage(List itemsCol)
Gets the current page out of a list of objects. |
int |
getEnd()
|
int |
getMax()
|
int |
getNextStart()
|
List |
getPages(Collection itemsCol)
|
int |
getPreviousStart()
|
int |
getStart()
|
static PagerFilter |
getUnlimitedFilter()
A pager that will return unlimited number of objects. |
List |
restrictPages(Collection 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 pages
Page
objects
Constructor Detail |
---|
public PagerFilter()
public PagerFilter(int max)
Method Detail |
---|
public static PagerFilter getUnlimitedFilter()
Integer.MAX_VALUE
public List getCurrentPage(List itemsCol)
public List getPages(Collection itemsCol)
public List generatePages(Collection items)
items
- public List restrictPages(Collection 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 |