Package io.fluentlenium.core.domain
Class ComponentList<T>
java.lang.Object
io.fluentlenium.core.domain.ListImpl<T>
io.fluentlenium.core.domain.DelegatingList<T>
io.fluentlenium.core.domain.ComponentList<T>
- Type Parameters:
T- type of component
- All Implemented Interfaces:
LazyComponents,WrapsElements,Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
FluentListImpl
List of Component.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FluentControlprotected final ComponentInstantiatorprotected List<org.openqa.selenium.WebElement>Fields inherited from class io.fluentlenium.core.domain.DelegatingList
list -
Constructor Summary
ConstructorsConstructorDescriptionComponentList(Class<T> componentClass, List<T> list, FluentControl control, ComponentInstantiator instantiator) Creates a new list of components -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a lazy components initialization listener.List<org.openqa.selenium.WebElement>Get the wrapped elementsbooleanisLazy()Get the lazyness of this object.booleanCheck if the underlying lazy components are initialized.booleanRemove an existing lazy components initialization listener.Methods inherited from class io.fluentlenium.core.domain.DelegatingList
getListMethods inherited from class io.fluentlenium.core.domain.ListImpl
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
componentClass
-
instantiator
-
control
-
proxy
-
-
Constructor Details
-
ComponentList
public ComponentList(Class<T> componentClass, List<T> list, FluentControl control, ComponentInstantiator instantiator) Creates a new list of components- Parameters:
componentClass- component classlist- underlying list of componentscontrol- control interfaceinstantiator- component instantiator
-
-
Method Details
-
getWrappedElements
Description copied from interface:WrapsElementsGet the wrapped elements- Specified by:
getWrappedElementsin interfaceWrapsElements- Returns:
- wrapped elements
-
isLazy
public boolean isLazy()Description copied from interface:LazyComponentsGet the lazyness of this object.- Specified by:
isLazyin interfaceLazyComponents<T>- Returns:
- true if it's lazy, false otherwise.
-
addLazyComponentsListener
Description copied from interface:LazyComponentsAdd a lazy components initialization listener.- Specified by:
addLazyComponentsListenerin interfaceLazyComponents<T>- Parameters:
listener- lazy components listener- Returns:
- true if the listener was added, false otherwise
-
isLazyInitialized
public boolean isLazyInitialized()Description copied from interface:LazyComponentsCheck if the underlying lazy components are initialized.- Specified by:
isLazyInitializedin interfaceLazyComponents<T>- Returns:
- true if lazy components are initialized, false otherwise.
-
removeLazyComponentsListener
Description copied from interface:LazyComponentsRemove an existing lazy components initialization listener.- Specified by:
removeLazyComponentsListenerin interfaceLazyComponents<T>- Parameters:
listener- lazy components listener- Returns:
- true if the listener was added, false otherwise
-