com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class PageInfo

    • Constructor Detail

      • PageInfo

        public PageInfo(int itemsPerPage)

        Initializes a new instance of the PageInfo class

        Parameters:
        itemsPerPage - A number of items in page
      • PageInfo

        public PageInfo(int itemsPerPage,
                int offset)

        Initializes a new instance of the PageInfo class

        Parameters:
        itemsPerPage - A number of items in page
        offset - offset in view of a page
      • PageInfo

        public PageInfo(int totalCount,
                int itemsPerPage,
                int offset,
                boolean lastPage)

        Initializes a new instance of the PageInfo class

        Parameters:
        totalCount - total count of items in view
        itemsPerPage - A number of items in page
        offset - offset in view of a page
        lastPage - Indicates whether current page is last page in view
      • PageInfo

        public PageInfo(int totalCount,
                int itemsPerPage,
                int offset,
                int absoluteOffset,
                boolean lastPage)

        Initializes a new instance of the PageInfo class

        Parameters:
        totalCount - total count of items in view
        offset - offset in view of a page
    • Method Detail

      • getPageOffset

        public final int getPageOffset()

        Gets offset of a page

      • setPageOffset

        public final void setPageOffset(int value)

        Gets offset of a page

      • getAbsoluteOffset

        public final int getAbsoluteOffset()

        Gets additinal offset added to start index of a page

      • setAbsoluteOffset

        public final void setAbsoluteOffset(int value)

        Gets additinal offset added to start index of a page

      • getLastPage

        public final boolean getLastPage()

        Indicates whether current page is last page in view.

      • setLastPage

        public final void setLastPage(boolean value)

        Indicates whether current page is last page in view.

      • getTotalCount

        public final int getTotalCount()

        Gets total count of items in view

      • setTotalCount

        public final void setTotalCount(int value)

        Gets total count of items in view

      • getItemsPerPage

        public final int getItemsPerPage()

        A number of items in page

      • setItemsPerPage

        public final void setItemsPerPage(int value)

        A number of items in page

      • getNextPage

        public PageInfo getNextPage()

        Information of the next page or null if current page is last