Class FilterBuilderFilter
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- com.xwiki.projectmanagement.test.openproject.FilterBuilderFilter
-
public class FilterBuilderFilter extends org.xwiki.test.ui.po.BaseElementModels a filter inside the filter parameter of the open project macro.- Since:
- 1.0-rc-4
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description FilterBuilderFilter(org.openqa.selenium.WebElement container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterBuilderFilteraddConstraint()Adds a constraint to this filter.org.openqa.selenium.WebElementgetConstraint(int index)List<FilterBuilderConstraint>getConstraints()StringgetPropertyName()org.openqa.selenium.WebElementgetValueElement(int index)FilterBuilderFiltersetDateValue(int index, String value)Sets the value to a date constraint value.FilterBuilderFiltersetOperator(int index, String operator)FilterBuilderFiltersetSuggestValue(int index, String value)Sets the value to a selectized constraint value.FilterBuilderFiltersetValue(int index, String value)Sets the value to a constraint value.
-
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
- Returns:
- the property on which this filter filters on.
-
addConstraint
public FilterBuilderFilter addConstraint()
Adds a constraint to this filter.- Returns:
- this object.
-
getConstraint
public org.openqa.selenium.WebElement getConstraint(int index)
- Parameters:
index- the index of the constraint that needs to be retrieved.- Returns:
- a model of the constraint identified by the index.
-
setOperator
public FilterBuilderFilter setOperator(int index, String operator)
- Parameters:
index- the index of the constraint that should have its operator updated.operator- the pretty name of the operator that should be set to the constraint identified by the index.- Returns:
- this object.
-
getValueElement
public org.openqa.selenium.WebElement getValueElement(int index)
- Parameters:
index- the index of the constraint element present in this filter.- Returns:
- the value element of the constraint identified by the index.
-
setSuggestValue
public FilterBuilderFilter setSuggestValue(int index, String value)
Sets the value to a selectized constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the label of the value that should be selected from the selectized list.- Returns:
- this object.
-
setValue
public FilterBuilderFilter setValue(int index, String value)
Sets the value to a constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the value that should be set to the input element of the constraint.- Returns:
- this object.
-
setDateValue
public FilterBuilderFilter setDateValue(int index, String value)
Sets the value to a date constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the value that should be set to the date input element of the constraint.- Returns:
- this object.
-
getConstraints
public List<FilterBuilderConstraint> getConstraints()
- Returns:
- the list of constraints set in this filter.
-
-