org.melati.poem.util
Interface PagedEnumeration

All Superinterfaces:
java.util.Enumeration
All Known Implementing Classes:
CountedDumbPagedEnumeration, DumbPagedEnumeration, PagedEnumerationBase

public interface PagedEnumeration
extends java.util.Enumeration

A paged enumeration.


Method Summary
 int getCurrentPosition()
           
 java.lang.Integer getNextPageStart()
           
 int getNextPosition()
           
 int getPageEnd()
           
 java.util.Vector getPages()
           
 int getPageSize()
           
 int getPageStart()
           
 java.lang.Integer getPrevPageStart()
           
 int getTotalCount()
           
 boolean nextElementOnThisPage()
           
 
Methods inherited from interface java.util.Enumeration
hasMoreElements, nextElement
 

Method Detail

getPageStart

int getPageStart()
Returns:
the start record of the page, indexed from 1.

getPageEnd

int getPageEnd()
Returns:
the end record of the page, indexed from 1.

getTotalCount

int getTotalCount()
Returns:
the total number of items

getPrevPageStart

java.lang.Integer getPrevPageStart()
Returns:
the start record of the previous page, indexed from 1.

getNextPageStart

java.lang.Integer getNextPageStart()
Returns:
the start record of the next page, indexed from 1.

getCurrentPosition

int getCurrentPosition()
Returns:
where we are in the sequence

getNextPosition

int getNextPosition()
Returns:
the position of the next element in the sequence

nextElementOnThisPage

boolean nextElementOnThisPage()
Returns:
whether there are more elements on this page

getPageSize

int getPageSize()
Returns:
the number of elements on a page

getPages

java.util.Vector getPages()
Returns:
the start position of page


Copyright © 2000-2008 PanEris. All Rights Reserved.