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 java.lang.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  java.util.List currentListPage_
           
protected  int currentPage_
           
static PageList EMPTY_LIST
           
 
Constructor Summary
PageList(int pageSize)
           
 
Method Summary
protected  void checkAndSetPage(int page)
           
 java.util.List currentPage()
           
abstract  java.util.List getAll()
           
 int getAvailable()
           
 int getAvailablePage()
           
 int getCurrentPage()
           
 int getFrom()
           
 java.util.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 java.util.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 java.util.List currentPage()
                           throws java.lang.Exception
Throws:
java.lang.Exception

populateCurrentPage

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

getPage

public java.util.List getPage(int page)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getAll

public abstract java.util.List getAll()
                               throws java.lang.Exception
Throws:
java.lang.Exception

checkAndSetPage

protected void checkAndSetPage(int page)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setAvailablePage

protected void setAvailablePage(int available)

getFrom

public int getFrom()

getTo

public int getTo()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.