info.magnolia.module.rssaggregator.util
Class PagerUtil

java.lang.Object
  extended by info.magnolia.module.rssaggregator.util.PagerUtil

public class PagerUtil
extends Object

Copy of the STK Pager to avoid cyclic dependencies. Will be replaced by infinite scroll in a later version.

Author:
tmiyar

Constructor Summary
protected PagerUtil()
           
  PagerUtil(String link, Collection items, javax.jcr.Node content)
           
 
Method Summary
 int getBeginIndex()
           
 int getCurrentPage()
           
 int getEndIndex()
           
 int getNumPages()
           
protected  int getOffset()
           
 Collection getPageItems()
           
 String getPageLink(int i)
           
protected  void getPagerProperties(javax.jcr.Node content)
           
 String getPosition()
           
protected  void setCount(int count)
           
protected  void setResults(int maxResultsPerPage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagerUtil

public PagerUtil(String link,
                 Collection items,
                 javax.jcr.Node content)

PagerUtil

protected PagerUtil()
Method Detail

setResults

protected void setResults(int maxResultsPerPage)

setCount

protected void setCount(int count)

getPageItems

public Collection getPageItems()

getOffset

protected int getOffset()

getCurrentPage

public int getCurrentPage()

getPageLink

public String getPageLink(int i)

getNumPages

public int getNumPages()

getBeginIndex

public int getBeginIndex()

getEndIndex

public int getEndIndex()

getPosition

public String getPosition()

getPagerProperties

protected void getPagerProperties(javax.jcr.Node content)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.