Class PagingData

java.lang.Object
org.zkoss.stateless.action.data.PagingData
All Implemented Interfaces:
Serializable, ActionData

public class PagingData extends Object implements 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 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.