org.xwiki.appwithinminutes.test.po
Class StaticListClassFieldEditPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.appwithinminutes.test.po.ClassFieldEditPane
          extended by org.xwiki.appwithinminutes.test.po.StaticListClassFieldEditPane

public class StaticListClassFieldEditPane
extends ClassFieldEditPane

Represents the pane used to edit a 'Static List' class field.

Since:
4.2M1
Version:
$Id: df6d952d41f625f6fed080e9de295598dc63c8c4 $

Constructor Summary
StaticListClassFieldEditPane(String fieldName)
          Creates a new instance.
 
Method Summary
 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.
 StaticListItemsEditor getItemsEditor()
           
 org.openqa.selenium.WebElement getMultipleSelectionCheckBox()
           
 String getPreviewInputType()
           
protected  List<org.openqa.selenium.WebElement> getSelectedItems()
           
 org.openqa.selenium.WebElement getSizeInput()
           
 void setDefaultValue(String defaultValue)
          Sets the field default value
 
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
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

StaticListClassFieldEditPane

public StaticListClassFieldEditPane(String fieldName)
Creates a new instance.

Parameters:
fieldName - the name of the date field
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 class ClassFieldEditPane
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 class ClassFieldEditPane
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()

getItemsEditor

public StaticListItemsEditor getItemsEditor()
Returns:
the static list items editor


Copyright © 2004-2013 XWiki. All Rights Reserved.