Class PagedGUIBuilder.PageInfo

java.lang.Object
top.magstar.framework.gui.utils.PagedGUIBuilder.PageInfo
Enclosing class:
PagedGUIBuilder<T>

public static class PagedGUIBuilder.PageInfo extends Object
页面信息类 - 用于自定义渲染器
Since:
1.0.0
Version:
1.0.0
Author:
Berry_so
  • Constructor Details

    • PageInfo

      public PageInfo(int currentPage, int totalPages, int itemsPerPage, int totalItems)
      构造页面信息
      Parameters:
      currentPage - 当前页码
      totalPages - 总页数
      itemsPerPage - 每页物品数量
      totalItems - 物品总数
  • Method Details

    • getCurrentPage

      public int getCurrentPage()
      获取当前页码
      Returns:
      当前页码
    • getTotalPages

      public int getTotalPages()
      获取总页数
      Returns:
      总页数
    • getItemsPerPage

      public int getItemsPerPage()
      获取每页物品数量
      Returns:
      每页物品数量
    • getTotalItems

      public int getTotalItems()
      获取物品总数
      Returns:
      物品总数