org.xwiki.extension.test.po
Class PaginationFilterPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.extension.test.po.PaginationFilterPane

public class PaginationFilterPane
extends BaseElement

Represents the pagination filter.

Since:
4.2M1
Version:
$Id: 5432bac03a23fb28d709ad61e45b92cf7c4d3fb3 $

Constructor Summary
PaginationFilterPane()
           
 
Method Summary
 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
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaginationFilterPane

public PaginationFilterPane()
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


Copyright © 2004-2012 XWiki. All Rights Reserved.