|
||||||||||
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 java.util.Collection |
pages
A collection of Page objects |
Constructor Summary | |
---|---|
PagerFilter()
|
Method Summary | |
---|---|
protected java.util.Collection |
generatePages(java.util.Collection items)
generates a collection of page objects which keep track of the pages for display |
java.util.Collection |
getCurrentPage(java.util.Collection itemsCol)
Get the current page out of a list of items - won't work well on any collection that isn't a list |
int |
getEnd()
|
int |
getMax()
|
int |
getNextStart()
|
java.util.Collection |
getPages(java.util.Collection itemsCol)
|
int |
getPreviousStart()
|
int |
getStart()
|
protected java.util.Collection |
restrictPages(java.util.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 java.util.Collection pages
Page
objects
Constructor Detail |
---|
public PagerFilter()
Method Detail |
---|
public java.util.Collection getCurrentPage(java.util.Collection itemsCol)
public java.util.Collection getPages(java.util.Collection itemsCol)
protected java.util.Collection generatePages(java.util.Collection items)
items
-
protected java.util.Collection restrictPages(java.util.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 |