Package org.codelibs.fess.app.pager
Class LabelTypePager
java.lang.Object
org.codelibs.fess.app.pager.LabelTypePager
- All Implemented Interfaces:
Serializable
Pager for label types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe creator of the label type.The created time of the label type.static final intThe default current page number.static final intThe default page size.The ID of the label type.The name of the label type.The sort order of the label type.The value of the label type.The version number of the label type. -
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
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEThe default page size.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERThe default current page number.- See Also:
-
id
The ID of the label type. -
name
The name of the label type. -
value
The value of the label type. -
sortOrder
The sort order of the label type. -
createdBy
The creator of the label type. -
createdTime
The created time of the label type. -
versionNo
The version number of the label type.
-
-
Constructor Details
-
LabelTypePager
public LabelTypePager()Default constructor.
-
-
Method Details
-
clear
public void clear()Clears the pager fields. -
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.
-
getDefaultPageSize
protected int getDefaultPageSize()Returns the default page size.- Returns:
- The default page size.
-