version 1.0

com.actimind.actiwate.testing.html.objects
Interface BaseSelect

All Superinterfaces:
BaseElement, ClickableElement, FormControl, com.actimind.actiwate.testing.logging.Loggable
All Known Subinterfaces:
MultipleSelect, SingleSelect

public interface BaseSelect
extends FormControl

Base interface for single and multiple select elements.


Method Summary
 Option option(int index)
          Returns option with specified index.
 Option optionByText(java.lang.String optionText)
          Returns option having specified text.
 Option optionByValue(java.lang.String optionValue)
          Returns option having specified value.
 Option[] options()
          Returns all option within this select.
 int optionsNum()
          Returns number of options in this select.
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.FormControl
name
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.BaseElement
element, id
 
Methods inherited from interface com.actimind.actiwate.testing.logging.Loggable
getLogDesc
 

Method Detail

options

public Option[] options()
Returns all option within this select.

Returns:
all option within this select.

option

public Option option(int index)
              throws LookupException
Returns option with specified index.

Parameters:
index - index of option to return, starting from zero
Returns:
option with specified index.
Throws:
LookupException - if option with specified index does not exist

optionsNum

public int optionsNum()
Returns number of options in this select.

Returns:
number of options in this select.

optionByText

public Option optionByText(java.lang.String optionText)
                    throws LookupException
Returns option having specified text. Text in option will be normalized before comparing.

Parameters:
optionText - text in option element
Returns:
first option having specified text.
Throws:
LookupException - if option was not found

optionByValue

public Option optionByValue(java.lang.String optionValue)
                     throws LookupException
Returns option having specified value.

Parameters:
optionValue - text in a 'value' attribute
Returns:
first option having specified value.
Throws:
LookupException - if option was not found


Copyright © 2007 Actimind, Inc. All Rights Reserved.