PageInfo
Inheritance: java.lang.Object
public class PageInfo
Contains information about retrieved page when paging methods are used.
Constructors
| Constructor | Description |
|---|---|
| PageInfo(int itemsPerPage) | Initializes a new instance of the PageInfo class |
| PageInfo(int itemsPerPage, int offset) | Initializes a new instance of the PageInfo class |
| PageInfo(int totalCount, int itemsPerPage, int offset, boolean lastPage) | Initializes a new instance of the PageInfo class |
| PageInfo(int totalCount, int itemsPerPage, int offset, int absoluteOffset, boolean lastPage) | Initializes a new instance of the PageInfo class |
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| getAbsoluteOffset() | Gets additinal offset added to start index of a page |
| getClass() | |
| getItemsPerPage() | A number of items in page |
| getLastPage() | Indicates whether current page is last page in view. |
| getNextPage() | Information of the next page or null if current page is last |
| getPageOffset() | Gets offset of a page |
| getTotalCount() | Gets total count of items in view |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setAbsoluteOffset(int value) | Gets additinal offset added to start index of a page |
| setItemsPerPage(int value) | A number of items in page |
| setLastPage(boolean value) | Indicates whether current page is last page in view. |
| setPageOffset(int value) | Gets offset of a page |
| setTotalCount(int value) | Gets total count of items in view |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
PageInfo(int itemsPerPage)
public PageInfo(int itemsPerPage)
Initializes a new instance of the PageInfo class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| itemsPerPage | int | A number of items in page |
PageInfo(int itemsPerPage, int offset)
public PageInfo(int itemsPerPage, int offset)
Initializes a new instance of the PageInfo class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| itemsPerPage | int | A number of items in page |
| offset | int | offset in view of a page |
PageInfo(int totalCount, int itemsPerPage, int offset, boolean lastPage)
public PageInfo(int totalCount, int itemsPerPage, int offset, boolean lastPage)
Initializes a new instance of the PageInfo class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| totalCount | int | total count of items in view |
| itemsPerPage | int | A number of items in page |
| offset | int | offset in view of a page |
| lastPage | boolean | Indicates whether current page is last page in view |
PageInfo(int totalCount, int itemsPerPage, int offset, int absoluteOffset, boolean lastPage)
public PageInfo(int totalCount, int itemsPerPage, int offset, int absoluteOffset, boolean lastPage)
Initializes a new instance of the PageInfo class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| totalCount | int | total count of items in view |
| itemsPerPage | int | |
| offset | int | offset in view of a page |
| absoluteOffset | int | |
| lastPage | boolean |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAbsoluteOffset()
public final int getAbsoluteOffset()
Gets additinal offset added to start index of a page
Returns: int
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getItemsPerPage()
public final int getItemsPerPage()
A number of items in page
Returns: int
getLastPage()
public final boolean getLastPage()
Indicates whether current page is last page in view.
Returns: boolean
getNextPage()
public PageInfo getNextPage()
Information of the next page or null if current page is last
Returns: PageInfo
getPageOffset()
public final int getPageOffset()
Gets offset of a page
Returns: int
getTotalCount()
public final int getTotalCount()
Gets total count of items in view
Returns: int
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setAbsoluteOffset(int value)
public final void setAbsoluteOffset(int value)
Gets additinal offset added to start index of a page
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
setItemsPerPage(int value)
public final void setItemsPerPage(int value)
A number of items in page
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
setLastPage(boolean value)
public final void setLastPage(boolean value)
Indicates whether current page is last page in view.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
setPageOffset(int value)
public final void setPageOffset(int value)
Gets offset of a page
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
setTotalCount(int value)
public final void setTotalCount(int value)
Gets total count of items in view
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |