Interface Pageable

    • Method Detail

      • getPageSize

        int getPageSize()
        Returns the number of items per page.

        Default: 20.

      • setPageSize

        void setPageSize​(int size)
                  throws org.zkoss.zk.ui.WrongValueException
        Sets the number of items per page.
        Throws:
        org.zkoss.zk.ui.WrongValueException
      • getPageCount

        int getPageCount()
        Returns the number of pages. Note: there is at least one page even no item at all.
      • getActivePage

        int getActivePage()
        Returns the active page (starting from 0).
      • setActivePage

        void setActivePage​(int pg)
                    throws org.zkoss.zk.ui.WrongValueException
        Sets the active page (starting from 0).
        Throws:
        org.zkoss.zk.ui.WrongValueException