Class MuiPaginationLocators


  • public class MuiPaginationLocators
    extends Object
    The locators for locating the previous / next / first / last buttons and page number of each page button.
    Since:
    1.3
    Author:
    Jack Yin
    • Field Detail

      • DEFAULT_PREVIOUS_BUTTON

        public static final java.util.function.Function<MuiPagination,​MuiButton> DEFAULT_PREVIOUS_BUTTON
        The default previous button finder function
      • DEFAULT_NEXT_BUTTON

        public static final java.util.function.Function<MuiPagination,​MuiButton> DEFAULT_NEXT_BUTTON
        The default next button finder function
      • DEFAULT_FIRST_BUTTON

        public static final java.util.function.Function<MuiPagination,​MuiButton> DEFAULT_FIRST_BUTTON
        The default first button finder function
      • DEFAULT_LAST_BUTTON

        public static final java.util.function.Function<MuiPagination,​MuiButton> DEFAULT_LAST_BUTTON
        The default last button finder function
      • DEFAULT_PAGE_BUTTONS

        public static final java.util.function.Function<MuiPagination,​List<MuiButton>> DEFAULT_PAGE_BUTTONS
        The default page buttons finder function
      • DEFAULT_PAGE_INDEX

        public static final java.util.function.Function<MuiButton,​Integer> DEFAULT_PAGE_INDEX
        The default page index finder function
    • Constructor Detail

      • MuiPaginationLocators

        public MuiPaginationLocators​(java.util.function.Function<MuiPagination,​MuiButton> previousButtonFinder,
                                     java.util.function.Function<MuiPagination,​MuiButton> nextButtonFinder,
                                     java.util.function.Function<MuiPagination,​MuiButton> firstButtonFinder,
                                     java.util.function.Function<MuiPagination,​MuiButton> lastButtonFinder,
                                     java.util.function.Function<MuiPagination,​List<MuiButton>> pageButtonsFinder,
                                     java.util.function.Function<MuiButton,​Integer> pageIndexFinder)
        Constructs an instance with all finders
        Parameters:
        previousButtonFinder - the finder for locating and finding the previous button
        nextButtonFinder - the finder for locating and finding the next button
        firstButtonFinder - the finder for locating and finding the first button
        lastButtonFinder - the finder for locating and finding the last button
        pageButtonsFinder - the finder for locating and find the page buttons
        pageIndexFinder - the finder for finding the index number from page button
    • Method Detail

      • getPreviousButtonFinder

        public java.util.function.Function<MuiPagination,​MuiButton> getPreviousButtonFinder()
        Gets finder for locating and finding the previous button
        Returns:
        finder for locating and finding the previous button
      • getNextButtonFinder

        public java.util.function.Function<MuiPagination,​MuiButton> getNextButtonFinder()
        Gets the finder for locating and finding the next button
        Returns:
        the finder for locating and finding the next button
      • getFirstButtonFinder

        public java.util.function.Function<MuiPagination,​MuiButton> getFirstButtonFinder()
        Gets the finder for locating and finding the first button
        Returns:
        the finder for locating and finding the first button
      • getLastButtonFinder

        public java.util.function.Function<MuiPagination,​MuiButton> getLastButtonFinder()
        Gets the finder for locating and finding the last button
        Returns:
        the finder for locating and finding the last button
      • getPageButtonsFinder

        public java.util.function.Function<MuiPagination,​List<MuiButton>> getPageButtonsFinder()
        Gets the finder for locating and finding the page buttons
        Returns:
        the finder for locating and finding the page buttons
      • getPageIndexFinder

        public java.util.function.Function<MuiButton,​Integer> getPageIndexFinder()
        the finder for finding the index number from page button
        Returns:
        the finder for finding the index number from page button
      • createDefault

        public static MuiPaginationLocators createDefault()
        Creates a default instance with Mui locators.
        Returns:
        the created locators