|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.ibatis.common.util.PagedList
public class PagedList
Class to provide paged access to a list
Field Summary | |
---|---|
private int |
index
Deprecated. |
private int |
pageSize
Deprecated. |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
PagedList()
Deprecated. Create a PagedList with the default page size |
|
PagedList(java.util.Collection c,
int pageSize)
Deprecated. Create a PagedList with a preset page size from an existing collection |
|
PagedList(int pageSize)
Deprecated. Create a PagedList with a preset page size |
|
PagedList(int initialCapacity,
int pageSize)
Deprecated. Create a PagedList with a preset page size and initial capacity |
Method Summary | |
---|---|
java.util.Iterator |
getPageIterator()
Deprecated. Gets an Iterator of a sub list that represents a page in the PagedList |
java.util.List |
getPageList()
Deprecated. Gets a List that represents a page in the PagedList |
int |
getPageSize()
Deprecated. |
void |
gotoPage(int pageNumber)
Deprecated. Go to a specific page number. |
boolean |
hasNextPage()
Deprecated. |
boolean |
hasPrevPage()
Deprecated. |
boolean |
isFirstPage()
Deprecated. Is the current page the first page? |
boolean |
isLastPage()
Deprecated. Is the current page the last page? |
boolean |
isMiddlePage()
Deprecated. Is the current page a middle page? (i.e. |
void |
nextPage()
Deprecated. Skip ahead to the next page in the collection |
void |
previousPage()
Deprecated. Skip back to the previous page in the collection |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
private int pageSize
private int index
Constructor Detail |
---|
public PagedList()
public PagedList(int pageSize)
pageSize
- The size of the pages in the collectionpublic PagedList(int initialCapacity, int pageSize)
initialCapacity
- The total size of the collectionpageSize
- The size of the pages in the collectionpublic PagedList(java.util.Collection c, int pageSize)
pageSize
- The size of the pages in the collectionc
- The collection to start withMethod Detail |
---|
public java.util.Iterator getPageIterator()
public java.util.List getPageList()
public void nextPage()
public void previousPage()
public boolean isLastPage()
public boolean isFirstPage()
public boolean isMiddlePage()
public int getPageSize()
public boolean hasNextPage()
public boolean hasPrevPage()
public void gotoPage(int pageNumber)
pageNumber
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |