public class Pager<T>
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<DomainObject<T>> |
objectList |
protected int |
pageSize
Records per page
|
| Constructor and Description |
|---|
Pager() |
Pager(java.util.List<DomainObject<T>> objectList) |
Pager(java.util.List<DomainObject<T>> objectList,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DomainObject<T>> |
getObjectList() |
PageHolder |
getPage(int pageNumber)
This is NOT zero based index: idx of the first object is 1, the second is 2, etc...
|
int |
getPageSize()
Getter for property pageSize.
|
int |
getPagesTotal() |
void |
setObjectList(java.util.List<DomainObject<T>> objectList) |
void |
setPageSize(int pageSize)
Setter for property pageSize.
|
protected java.util.List<DomainObject<T>> objectList
protected int pageSize
public Pager(java.util.List<DomainObject<T>> objectList, int pageSize)
public Pager(java.util.List<DomainObject<T>> objectList)
public Pager()
public int getPageSize()
public int getPagesTotal()
public PageHolder getPage(int pageNumber)
public void setPageSize(int pageSize)
pageSize - New value of property pageSize.public java.util.List<DomainObject<T>> getObjectList()
public void setObjectList(java.util.List<DomainObject<T>> objectList)