com.atlassian.core.util.bean
Class PagerFilter

java.lang.Object
  extended by com.atlassian.core.util.bean.PagerFilter
All Implemented Interfaces:
Serializable

public class PagerFilter
extends Object
implements Serializable

This is a super class that implements paging for browsers. Most other filters (which want paging ability) will extend this.

See Also:
Serialized Form

Constructor Summary
PagerFilter()
           
 
Method Summary
<T> Collection<T>
getCurrentPage(Collection<T> 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()
           
 int getPreviousStart()
           
 int getStart()
           
 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
 

Constructor Detail

PagerFilter

public PagerFilter()
Method Detail

getCurrentPage

public <T> Collection<T> getCurrentPage(Collection<T> itemsCol)
Get the current page out of a list of items - won't work well on any collection that isn't a list


getMax

public int getMax()

setMax

public void setMax(int max)

getStart

public int getStart()

setStart

public void setStart(int start)

getEnd

public int getEnd()

getNextStart

public int getNextStart()

getPreviousStart

public int getPreviousStart()


Copyright © 2015 Atlassian. All rights reserved.