Class HeaderCell
- java.lang.Object
-
- org.primefaces.selenium.component.model.datatable.Cell
-
- org.primefaces.selenium.component.model.datatable.HeaderCell
-
public class HeaderCell extends Cell
-
-
Constructor Summary
Constructors Constructor Description HeaderCell(org.openqa.selenium.WebElement webElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementgetColumnFilter()Gets the filter element if it exists for this column.org.openqa.selenium.WebElementgetColumnTitle()Gets the title element if it exists for this column.voidsetFilterValue(String filterValue, String filterEvent, int filterDelay)Filter the column using these values.voidsetFilterValue(org.json.JSONObject cfg, String filterValue)Filter using the Widget configuration "filterDelay" and "filterEvent" values.StringtoString()-
Methods inherited from class org.primefaces.selenium.component.model.datatable.Cell
getText, getWebElement, setWebElement
-
-
-
-
Method Detail
-
getColumnTitle
public org.openqa.selenium.WebElement getColumnTitle()
Gets the title element if it exists for this column.- Returns:
- the WebElement representing the title
-
getColumnFilter
public org.openqa.selenium.WebElement getColumnFilter()
Gets the filter element if it exists for this column.- Returns:
- the WebElement representing the filter
-
setFilterValue
public void setFilterValue(org.json.JSONObject cfg, String filterValue)Filter using the Widget configuration "filterDelay" and "filterEvent" values.- Parameters:
cfg- the widget configuration JSON objectfilterValue- the value to set the filter
-
setFilterValue
public void setFilterValue(String filterValue, String filterEvent, int filterDelay)
Filter the column using these values.- Parameters:
filterValue- the value to filter forfilterEvent- the event causing the filter to trigger such as "keyup" or "enter"filterDelay- the delay in milliseconds if a "keyup" filter
-
-