PageInfo

Inheritance: java.lang.Object

public class PageInfo

Contains information about retrieved page when paging methods are used.

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
itemsPerPageintA 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:

ParameterTypeDescription
itemsPerPageintA number of items in page
offsetintoffset 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:

ParameterTypeDescription
totalCountinttotal count of items in view
itemsPerPageintA number of items in page
offsetintoffset in view of a page
lastPagebooleanIndicates 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:

ParameterTypeDescription
totalCountinttotal count of items in view
itemsPerPageint
offsetintoffset in view of a page
absoluteOffsetint
lastPageboolean

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
valueint

setItemsPerPage(int value)

public final void setItemsPerPage(int value)

A number of items in page

Parameters:

ParameterTypeDescription
valueint

setLastPage(boolean value)

public final void setLastPage(boolean value)

Indicates whether current page is last page in view.

Parameters:

ParameterTypeDescription
valueboolean

setPageOffset(int value)

public final void setPageOffset(int value)

Gets offset of a page

Parameters:

ParameterTypeDescription
valueint

setTotalCount(int value)

public final void setTotalCount(int value)

Gets total count of items in view

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int