Package org.codelibs.fess.app.pager
Class KuromojiPager
java.lang.Object
org.codelibs.fess.app.pager.KuromojiPager
- All Implemented Interfaces:
Serializable
Pager for Kuromoji.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the pager fields.intReturns the total number of pages.intReturns the total number of records.intReturns the current page number.protected intReturns the default current page number.protected intReturns the default page size.Returns the list of page numbers.intReturns the page size.booleanReturns true if a next page exists.booleanReturns true 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 whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets whether a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers.voidsetPageSize(int pageSize) Sets the page size.
-
Field Details
-
id
The ID of the Kuromoji dictionary.
-
-
Constructor Details
-
KuromojiPager
public KuromojiPager()Default constructor.
-
-
Method Details
-
clear
public void clear()Clears the pager fields. -
getDefaultPageSize
protected int getDefaultPageSize()Returns the default page size.- Returns:
- The default page size.
-
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Returns the default current page number.- Returns:
- The default current page number.
-
getAllRecordCount
public int getAllRecordCount()Returns the total number of records.- Returns:
- The total number of records.
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records.- Parameters:
allRecordCount- The total number of records.
-
getAllPageCount
public int getAllPageCount()Returns the total number of pages.- Returns:
- The total number of pages.
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages.- Parameters:
allPageCount- The total number of pages.
-
isExistPrePage
public boolean isExistPrePage()Returns true if a previous page exists.- Returns:
- True if a previous page exists.
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists.- Parameters:
existPrePage- True if a previous page exists.
-
isExistNextPage
public boolean isExistNextPage()Returns true if a next page exists.- Returns:
- True if a next page exists.
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists.- Parameters:
existNextPage- True if a next page exists.
-
getPageSize
public int getPageSize()Returns 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()Returns 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
Returns the list of page numbers.- Returns:
- The list of page numbers.
-
setPageNumberList
Sets the list of page numbers.- Parameters:
pageNumberList- The list of page numbers.
-