Class StemmerOverridePager

java.lang.Object
org.codelibs.fess.app.pager.StemmerOverridePager
All Implemented Interfaces:
Serializable

public class StemmerOverridePager extends Object implements Serializable
Pager class for stemmer override dictionary management. This class provides pagination functionality for displaying stemmer override dictionary entries in the administrative interface. It manages page state, navigation controls, and provides methods for calculating page boundaries and navigation elements.
See Also:
  • Field Details

    • id

      public String id
      The ID of the stemmer override dictionary.
  • Constructor Details

    • StemmerOverridePager

      public StemmerOverridePager()
      Default constructor.
  • Method Details

    • clear

      public void clear()
      Clears all pagination state and resets to default values.
    • getDefaultPageSize

      protected int getDefaultPageSize()
      Gets the default page size from configuration.
      Returns:
      The default number of records per page
    • 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 across all pages.
      Returns:
      The total record count
    • setAllRecordCount

      public void setAllRecordCount(int allRecordCount)
      Sets the total number of records across all pages.
      Parameters:
      allRecordCount - The total record count to set
    • 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 to set
    • 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 whether a previous page exists.
      Parameters:
      existPrePage - true if a previous page exists, false otherwise
    • 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 whether a next page exists.
      Parameters:
      existNextPage - true if a next page exists, false otherwise
    • getPageSize

      public int getPageSize()
      Gets the number of records to display per page. If not set or invalid, returns the default page size.
      Returns:
      The page size
    • setPageSize

      public void setPageSize(int pageSize)
      Sets the number of records to display per page.
      Parameters:
      pageSize - The page size to set
    • getCurrentPageNumber

      public int getCurrentPageNumber()
      Gets the current page number (1-based). If not set or invalid, returns the default current page number.
      Returns:
      The current page number
    • setCurrentPageNumber

      public void setCurrentPageNumber(int currentPageNumber)
      Sets the current page number (1-based).
      Parameters:
      currentPageNumber - The current page number to set
    • getPageNumberList

      public List<Integer> getPageNumberList()
      Gets the list of page numbers for navigation display.
      Returns:
      The list of page numbers
    • setPageNumberList

      public void setPageNumberList(List<Integer> pageNumberList)
      Sets the list of page numbers for navigation display.
      Parameters:
      pageNumberList - The list of page numbers to set