Class 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 as IPaging). 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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.