org.melati.util
Interface PagedEnumeration<T>
- All Superinterfaces:
- Enumeration<T>
- All Known Implementing Classes:
- CountedDumbPagedEnumeration, DumbPagedEnumeration, PagedEnumerationBase
public interface PagedEnumeration<T>
- extends Enumeration<T>
A paged enumeration.
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
Integer getPrevPageStart()
- Returns:
- the start record of the previous page, indexed from 1.
getNextPageStart
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
Vector<Page> getPages()
- Returns:
- a Vector of Pages
Copyright © 2000-2010 PanEris. All Rights Reserved.