org.exoplatform.commons.utils
Class PageList

java.lang.Object
  extended by org.exoplatform.commons.utils.PageList
Direct Known Subclasses:
ObjectPageList

public abstract class PageList
extends Object

Since:
Oct 21, 2004
Version:
$Id: PageList.java,v 1.2 2004/10/25 03:36:58 tuan08 Exp $
Author:
Tuan Nguyen (tuan08@users.sourceforge.net)

Field Summary
protected  int available_
           
protected  int availablePage_
           
protected  List currentListPage_
           
protected  int currentPage_
           
static PageList EMPTY_LIST
           
 
Constructor Summary
PageList(int pageSize)
           
 
Method Summary
protected  void checkAndSetPage(int page)
           
 List currentPage()
           
abstract  List getAll()
           
 int getAvailable()
           
 int getAvailablePage()
           
 int getCurrentPage()
           
 int getFrom()
           
 List getPage(int page)
           
 int getPageSize()
           
 int getTo()
           
protected abstract  void populateCurrentPage(int page)
           
protected  void setAvailablePage(int available)
           
 void setPageSize(int pageSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LIST

public static final PageList EMPTY_LIST

available_

protected int available_

availablePage_

protected int availablePage_

currentPage_

protected int currentPage_

currentListPage_

protected List currentListPage_
Constructor Detail

PageList

public PageList(int pageSize)
Method Detail

getPageSize

public int getPageSize()

setPageSize

public void setPageSize(int pageSize)

getCurrentPage

public int getCurrentPage()

getAvailable

public int getAvailable()

getAvailablePage

public int getAvailablePage()

currentPage

public List currentPage()
                 throws Exception
Throws:
Exception

populateCurrentPage

protected abstract void populateCurrentPage(int page)
                                     throws Exception
Throws:
Exception

getPage

public List getPage(int page)
             throws Exception
Throws:
Exception

getAll

public abstract List getAll()
                     throws Exception
Throws:
Exception

checkAndSetPage

protected void checkAndSetPage(int page)
                        throws Exception
Throws:
Exception

setAvailablePage

protected void setAvailablePage(int available)

getFrom

public int getFrom()

getTo

public int getTo()


Copyright © 2009 eXo Platform SAS. All Rights Reserved.