Package de.bmiag.tapir.ui.api
Interface ElementCollection<T>
-
- Type Parameters:
T
- type of elements
- All Known Subinterfaces:
CheckboxGroup
,MultiSelect
,MultiSelectable<T>
,RadioButtonGroup
,SingleSelect
,SingleSelectable<T>
- All Known Implementing Classes:
DefaultSeleniumCheckboxGroup
,DefaultSeleniumMultiSelect
,DefaultSeleniumRadioButtonGroup
,DefaultSeleniumSingleSelect
public interface ElementCollection<T>
Marks an ui element to have a limited amount of sub elements. This is used by select controls.- 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<T>
findElements(java.util.function.Predicate<? super T> predicate)
Returns all elements which match the given predicateT
findFirstElement(java.util.function.Predicate<? super T> predicate)
Returns the first element which matches the given predicatejava.util.List<T>
getElements()
Returns all elements
-
-
-
Method Detail
-
getElements
java.util.List<T> getElements()
Returns all elements- Returns:
- all elements
- Since:
- 2.0.0
-
findElements
java.util.List<T> findElements(java.util.function.Predicate<? super T> predicate)
Returns all elements which match the given predicate- Parameters:
predicate
- the predicate for finding the elements- Returns:
- all elements which match the given predicate
- Since:
- 2.0.0
-
findFirstElement
T findFirstElement(java.util.function.Predicate<? super T> predicate)
Returns the first element which matches the given predicate- Parameters:
predicate
- the predicate for selecting the element- Returns:
- all elements which match the given predicate, cannot be null
- Throws:
java.util.NoSuchElementException
- thrown if no element matches the given predicate- Since:
- 2.0.0
-
-