Package org.zkoss.stateless.action.data
Class PagingData
java.lang.Object
org.zkoss.stateless.action.data.PagingData
- All Implemented Interfaces:
Serializable,ActionData
Used to notify that a new page is selected by the user
(such as
IPaging).
It is used for paging long content.- Author:
- jumperchen
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the active page (starting from 0).intReturns the number of pages.intReturns the number of page anchors shall appear at the client.intReturns the number of items per page.intReturns the total number of items.
-
Method Details
-
getActivePage
public int getActivePage()Returns the active page (starting from 0).To get the index of the first visible item, use
.getActivePage()*IPaging.getPageSize() -
getPageCount
public int getPageCount()Returns the number of pages. Note: there is at least one page even no item at all. -
getPageSize
public int getPageSize()Returns the number of items per page. -
getTotalSize
public int getTotalSize()Returns the total number of items.- Returns:
-
getPageIncrement
public int getPageIncrement()Returns the number of page anchors shall appear at the client.
-