public class Pager extends Object
Modifier and Type | Field and Description |
---|---|
LspsUITable |
table
The owner table.
|
Modifier and Type | Method and Description |
---|---|
void |
clickFirstPage()
Clicks first page.
|
void |
clickLastPage()
Clicks last page.
|
void |
clickNextPage()
Clicks next page.
|
void |
clickPreviousPage()
Clicks previous page.
|
int |
getCurrentPage()
Returns the current page number, 1-based.
|
int |
getPagesCount()
Returns the pages count as shown in the pager.
|
boolean |
isFirstPageButtonEnabled() |
boolean |
isLastPageButtonEnabled() |
boolean |
isNextPageButtonEnabled() |
boolean |
isPreviousPageButtonEnabled() |
protected void |
selectByText(int itemsPerPage,
ComboBoxElement cbe)
The testbench method ComboBoxElement.selectByText(text) is unreliable, lacks waits and causes
a lot of deleted element exceptions, stale element exception and one more similar exception.
|
void |
setCurrentPage(int page)
Forces the table to show given page.
|
void |
setItemsPerPage(int itemsPerPage)
Shows given number of items per page.
|
String |
toString() |
public final LspsUITable table
public boolean isFirstPageButtonEnabled()
public void clickFirstPage()
public boolean isPreviousPageButtonEnabled()
public void clickPreviousPage()
public boolean isNextPageButtonEnabled()
public void clickNextPage()
public boolean isLastPageButtonEnabled()
public void clickLastPage()
public int getCurrentPage()
public void setCurrentPage(int page)
page
- the page, 1-based.public void setItemsPerPage(int itemsPerPage)
itemsPerPage
- number of items per page. May be only one of the following values: 10, 20, 30, 50, 100protected void selectByText(int itemsPerPage, ComboBoxElement cbe)
itemsPerPage
- cbe
- public int getPagesCount()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.