Package org.codelibs.fess.app.pager
Class SynonymPager
java.lang.Object
org.codelibs.fess.app.pager.SynonymPager
- All Implemented Interfaces:
Serializable
Pager for managing synonym pagination.
This class handles the state and logic for paginating through a list of synonyms,
including total record count, page size, and current page number.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the pager's state to its 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, which is 1.protected intGets the default page size from the Fess configuration.Gets the list of page numbers for navigation.intGets the page size.booleanChecks if a next page exists.booleanChecks if a previous page exists.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 the flag for the existence of a next page.voidsetExistPrePage(boolean existPrePage) Sets the flag for the existence of a previous page.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for navigation.voidsetPageSize(int pageSize) Sets the page size.
-
Field Details
-
id
The ID of the synonym dictionary.
-
-
Constructor Details
-
SynonymPager
public SynonymPager()Constructs a new pager for synonyms.
-
-
Method Details
-
clear
public void clear()Clears the pager's state to its default values. -
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from the Fess configuration.- Returns:
- The default page size.
-
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets the default current page number, which is 1.- Returns:
- The default current page number.
-
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 a previous page exists.- Returns:
- true if a previous page exists, false otherwise.
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets the flag for the existence of a previous page.- Parameters:
existPrePage- true if a previous page exists.
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists.- Returns:
- true if a next page exists, false otherwise.
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets the flag for the existence of a next page.- Parameters:
existNextPage- true if a 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 navigation.- Returns:
- A list of page numbers.
-
setPageNumberList
Sets the list of page numbers for navigation.- Parameters:
pageNumberList- A list of page numbers.
-