net.smartlab.web.page
Class Paginator

java.lang.Object
  extended by net.smartlab.web.page.Paginator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
BusinessObjectFactory.Paginator, CollectionPaginator, SQLPaginator

public abstract class Paginator
extends java.lang.Object
implements java.util.Iterator

TODO documentation

Author:
rlogiacco

Field Summary
protected  java.lang.Object[] array
          The elements in the current page.
protected  org.apache.commons.logging.Log logger
          Logging system accessor.
static int UNDEFINED_PAGE
          A constant to identify the page was not setted.
static int UNLIMITED_ITEMS
          A constant to identify an unlimited item listing.
static int UNLIMITED_PAGES
          A constant to identify an unlimited page listing.
 
Constructor Summary
protected Paginator()
          TODO documentation
protected Paginator(int size, int pages)
          TODO documentation
 
Method Summary
 int getCount()
          TODO documentation
 int getNext()
          TODO documentation
 int getPage()
          TODO documentation
 int getPageCount()
          TODO documentation
 int[] getPages()
          TODO documentation
 int getPageSize()
          TODO documentation
 int getPrev()
          TODO documentation
 int getStart()
          TODO documentation
 int getStop()
          TODO documentation
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          This operation is not supported.
 void reset()
          TODO documentation
protected abstract  void setArray()
          TODO documentation
 void setCount(int count)
          TODO documentation
 void setPage(int page)
          TODO documentation
 void setPages(int size)
          TODO documentation
 void setPageSize(int size)
          TODO documentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNLIMITED_PAGES

public static final int UNLIMITED_PAGES
A constant to identify an unlimited page listing. www.lamiainclinazione.org

See Also:
Constant Field Values

UNLIMITED_ITEMS

public static final int UNLIMITED_ITEMS
A constant to identify an unlimited item listing.

See Also:
Constant Field Values

UNDEFINED_PAGE

public static final int UNDEFINED_PAGE
A constant to identify the page was not setted.

See Also:
Constant Field Values

logger

protected org.apache.commons.logging.Log logger
Logging system accessor.


array

protected java.lang.Object[] array
The elements in the current page.

Constructor Detail

Paginator

protected Paginator()
TODO documentation


Paginator

protected Paginator(int size,
                    int pages)
TODO documentation

Parameters:
size -
pages -
Method Detail

getPage

public int getPage()
TODO documentation

Returns:

getPages

public int[] getPages()
TODO documentation

Returns:

getPageCount

public int getPageCount()
TODO documentation

Returns:

setPages

public void setPages(int size)
TODO documentation

Parameters:
size -

setPage

public void setPage(int page)
TODO documentation

Parameters:
page -

getNext

public int getNext()
TODO documentation

Returns:

getPrev

public int getPrev()
TODO documentation

Returns:

setCount

public void setCount(int count)
TODO documentation

Parameters:
count -

getCount

public int getCount()
TODO documentation

Returns:

getPageSize

public int getPageSize()
TODO documentation

Returns:

setPageSize

public void setPageSize(int size)
TODO documentation

Parameters:
size -

getStart

public int getStart()
TODO documentation

Returns:

getStop

public int getStop()
TODO documentation

Returns:

setArray

protected abstract void setArray()
TODO documentation


hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
See Also:
Iterator.hasNext()

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
See Also:
Iterator.next()

remove

public void remove()
This operation is not supported.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException
See Also:
Iterator.remove()

reset

public void reset()
TODO documentation



Copyright © 2004-2009 The SmartWeb Team. All Rights Reserved.