Class ListClassFieldEditPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.appwithinminutes.test.po.ClassFieldEditPane
-
- org.xwiki.appwithinminutes.test.po.SuggestClassFieldEditPane
-
- org.xwiki.appwithinminutes.test.po.ListClassFieldEditPane
-
- Direct Known Subclasses:
DBListClassFieldEditPane
,StaticListClassFieldEditPane
public class ListClassFieldEditPane extends SuggestClassFieldEditPane
Represents the pane used to edit a generic list class field. Can server as a base class for list fields (e.g. Static List and Database List).- Since:
- 11.3RC1
- Version:
- $Id: 4438c07da6680e66ecdebabfa3ef0f4875864d3c $
-
-
Constructor Summary
Constructors Constructor Description ListClassFieldEditPane(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getDefaultSelectedValues()
Do not use this method when display type is input.String
getDefaultValue()
org.openqa.selenium.support.ui.Select
getDisplayTypeSelect()
org.openqa.selenium.WebElement
getItemByValue(String value)
Do not used this method when display type is input.org.openqa.selenium.WebElement
getMultipleSelectionCheckBox()
String
getPreviewInputType()
protected List<org.openqa.selenium.WebElement>
getSelectedItems()
org.openqa.selenium.WebElement
getSizeInput()
boolean
isReadOnly()
void
setDefaultValue(String defaultValue)
Sets the field default value-
Methods inherited from class org.xwiki.appwithinminutes.test.po.SuggestClassFieldEditPane
getPicker, setMultipleSelect
-
Methods inherited from class org.xwiki.appwithinminutes.test.po.ClassFieldEditPane
closeConfigPanel, delete, dragTo, getContainer, getDefaultValueInput, getFieldName, getName, getPropertyInput, openConfigPanel, setName, setPrettyName
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
ListClassFieldEditPane
public ListClassFieldEditPane(String fieldName)
-
-
Method Detail
-
getDisplayTypeSelect
public org.openqa.selenium.support.ui.Select getDisplayTypeSelect()
- Returns:
- the list of available display types
-
getSizeInput
public org.openqa.selenium.WebElement getSizeInput()
- Returns:
- the input used to specify the size
-
getMultipleSelectionCheckBox
public org.openqa.selenium.WebElement getMultipleSelectionCheckBox()
- Returns:
- the check box used to enable multiple selection
-
getDefaultValue
public String getDefaultValue()
- Overrides:
getDefaultValue
in classClassFieldEditPane
- Returns:
- the default value of this field
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Description copied from class:ClassFieldEditPane
Sets the field default value- Overrides:
setDefaultValue
in classClassFieldEditPane
- Parameters:
defaultValue
- the new field default value
-
getDefaultSelectedValues
public List<String> getDefaultSelectedValues()
Do not use this method when display type is input.- Returns:
- the list items selected by default
-
getSelectedItems
protected List<org.openqa.selenium.WebElement> getSelectedItems()
- Returns:
- the list of selected items
-
getItemByValue
public org.openqa.selenium.WebElement getItemByValue(String value)
Do not used this method when display type is input.- Parameters:
value
- the value of the list item to return- Returns:
- returns the list item that has the given value
-
getPreviewInputType
public String getPreviewInputType()
- Returns:
- the type of HTML input used to preview the list; possible returned values are specified by
getDisplayTypeSelect()
-
isReadOnly
public boolean isReadOnly()
- Returns:
true
if the field is readonly,false
otherwise- Since:
- 13.3RC1, 12.10.6
-
-