Class PagedGUIBuilder.PageInfo
java.lang.Object
top.magstar.framework.gui.utils.PagedGUIBuilder.PageInfo
-
Constructor Summary
ConstructorsConstructorDescriptionPageInfo(int currentPage, int totalPages, int itemsPerPage, int totalItems) 构造页面信息 -
Method Summary
Modifier and TypeMethodDescriptionint获取当前页码int获取每页物品数量int获取物品总数int获取总页数
-
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:
- 物品总数
-