Package org.xwiki.extension.test.po
Class PaginationFilterPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.extension.test.po.PaginationFilterPane
-
public class PaginationFilterPane extends BaseElement
Represents the pagination filter.- Since:
- 4.2M1
- Version:
- $Id: d7ac42c21ca14efb9c7b420c930985691c4f9aaf $
-
-
Constructor Summary
Constructors Constructor Description PaginationFilterPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentPageIndex()
String
getCurrentRange()
int
getPageCount()
int
getResultsCount()
PaginationFilterPane
gotoPage(int index)
Loads the specified page of results.boolean
hasNextPage()
boolean
hasPreviousPage()
PaginationFilterPane
nextPage()
Navigates to the next page.PaginationFilterPane
previousPage()
Navigates to the previous page.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getResultsCount
public int getResultsCount()
- Returns:
- the total number of results
-
getCurrentRange
public String getCurrentRange()
- Returns:
- the index of the first and last result on the current page, using this format:
start - end
-
getCurrentPageIndex
public int getCurrentPageIndex()
- Returns:
- the index of the current page
-
getPageCount
public int getPageCount()
- Returns:
- the number of pages
-
nextPage
public PaginationFilterPane nextPage()
Navigates to the next page.- Returns:
- the new pagination filter matching the next page
-
hasNextPage
public boolean hasNextPage()
- Returns:
true
if the previous page button is active,false
otherwise
-
previousPage
public PaginationFilterPane previousPage()
Navigates to the previous page.- Returns:
- the new pagination filter matching the previous page
-
hasPreviousPage
public boolean hasPreviousPage()
- Returns:
true
if the previous page button is active,false
otherwise
-
gotoPage
public PaginationFilterPane gotoPage(int index)
Loads the specified page of results.- Parameters:
index
- the page index- Returns:
- the specified page
-
-