Package org.zkoss.stateless.action.data
Class PagingData
- java.lang.Object
-
- org.zkoss.stateless.action.data.PagingData
-
- All Implemented Interfaces:
java.io.Serializable
,ActionData
public class PagingData extends java.lang.Object implements ActionData
Used to notify that a new page is selected by the user (such asIPaging
). It is used for paging long content.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActivePage()
Returns the active page (starting from 0).int
getPageCount()
Returns the number of pages.int
getPageIncrement()
Returns the number of page anchors shall appear at the client.int
getPageSize()
Returns the number of items per page.int
getTotalSize()
Returns the total number of items.
-
-
-
Method Detail
-
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.
-
-