Package org.codelibs.fess.app.pager
Class ProtwordsPager
java.lang.Object
org.codelibs.fess.app.pager.ProtwordsPager
- All Implemented Interfaces:
Serializable
Pager for protected words dictionary management.
This class handles pagination functionality for browsing protected words.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pagination data and resets to default values.intGets the total number of pages.intGets the total number of records.intGets the current page number.protected intGets the default current page number.protected intGets the default page size from configuration.Gets the list of page numbers for pagination display.intGets the page size.booleanChecks if there is a next page.booleanChecks if there is a previous page.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.voidsetExistNextPage(boolean existNextPage) Sets whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets whether a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for pagination display.voidsetPageSize(int pageSize) Sets the page size.
-
Field Details
-
id
The dictionary ID
-
-
Constructor Details
-
ProtwordsPager
public ProtwordsPager()Default constructor.
-
-
Method Details
-
clear
public void clear()Clears all pagination data and resets to default values. -
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from configuration.- Returns:
- the default page size
-
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets the default current page number.- Returns:
- the default current page number (1)
-
getAllRecordCount
public int getAllRecordCount()Gets the total number of records.- Returns:
- the total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records.- Parameters:
allRecordCount- the total record count
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages.- Returns:
- the total page count
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages.- Parameters:
allPageCount- the total page count
-
isExistPrePage
public boolean isExistPrePage()Checks if there is a previous page.- Returns:
- true if previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists.- Parameters:
existPrePage- true if previous page exists
-
isExistNextPage
public boolean isExistNextPage()Checks if there is a next page.- Returns:
- true if next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists.- Parameters:
existNextPage- true if next page exists
-
getPageSize
public int getPageSize()Gets the page size.- Returns:
- the page size
-
setPageSize
public void setPageSize(int pageSize) Sets the page size.- Parameters:
pageSize- the page size
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the current page number.- Returns:
- the current page number
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number.- Parameters:
currentPageNumber- the current page number
-
getPageNumberList
Gets the list of page numbers for pagination display.- Returns:
- the list of page numbers
-
setPageNumberList
Sets the list of page numbers for pagination display.- Parameters:
pageNumberList- the list of page numbers
-