Package de.bmiag.tapir.htmlbasic.api
Interface SingleSelect
-
- All Superinterfaces:
Displayable
,ElementCollection<SingleSelectOption>
,Enabable
,SingleSelectable<SingleSelectOption>
,TapirElement
- All Known Implementing Classes:
DefaultSeleniumSingleSelect
public interface SingleSelect extends TapirElement, Displayable, Enabable, SingleSelectable<SingleSelectOption>
Marks an element as a single select field. This field is used for list boxes and other elements which have a list of possible values and a single value can be selected.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<SingleSelectOption>
findElementsByLabel(java.lang.String label)
Returns all elements which have the given label.SingleSelectOption
findFirstElementByLabel(java.lang.String label)
Returns the first element which has the given label-
Methods inherited from interface de.bmiag.tapir.ui.api.Displayable
isDisplayed
-
Methods inherited from interface de.bmiag.tapir.ui.api.ElementCollection
findElements, findFirstElement, getElements
-
Methods inherited from interface de.bmiag.tapir.ui.api.SingleSelectable
getSelectedElement
-
-
-
-
Method Detail
-
findElementsByLabel
java.util.List<SingleSelectOption> findElementsByLabel(java.lang.String label)
Returns all elements which have the given label.- Parameters:
label
- the label for finding the elements- Returns:
- all elements which have the given label.
- Since:
- 3.0.0
-
findFirstElementByLabel
SingleSelectOption findFirstElementByLabel(java.lang.String label)
Returns the first element which has the given label- Parameters:
label
- the label for selecting the element- Returns:
- all elements which have the given label, cannot be null
- Throws:
java.util.NoSuchElementException
- thrown if no element has the given label- Since:
- 3.0.0
-
-