T - type of component.public class LazyComponentList<T> extends Object implements List<T>, WrapsElements, LazyComponents<T>
| Constructor and Description |
|---|
LazyComponentList(ComponentInstantiator instantiator,
Class<T> componentClass,
List<org.openqa.selenium.WebElement> elements)
Creates a new lazy component list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLazyComponentsListener(LazyComponentsListener<T> listener)
Add a lazy components initialization listener.
|
protected void |
fireLazyComponentsInitialized(Map<org.openqa.selenium.WebElement,T> componentMap)
First lazy components initialized event.
|
List<org.openqa.selenium.WebElement> |
getWrappedElements()
Get the wrapped elements
|
boolean |
isLazy()
Get the lazyness of this object.
|
boolean |
isLazyInitialized()
Check if the underlying lazy components are initialized.
|
boolean |
removeLazyComponentsListener(LazyComponentsListener<T> listener)
Remove an existing lazy components initialization listener.
|
String |
toString() |
protected List<T> |
transformList()
Transform the actual list into components.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic LazyComponentList(ComponentInstantiator instantiator, Class<T> componentClass, List<org.openqa.selenium.WebElement> elements)
instantiator - component instantiatorcomponentClass - component classelements - underlying element listprotected List<T> transformList()
protected void fireLazyComponentsInitialized(Map<org.openqa.selenium.WebElement,T> componentMap)
componentMap - componentspublic boolean addLazyComponentsListener(LazyComponentsListener<T> listener)
LazyComponentsaddLazyComponentsListener in interface LazyComponents<T>listener - lazy components listenerpublic boolean removeLazyComponentsListener(LazyComponentsListener<T> listener)
LazyComponentsremoveLazyComponentsListener in interface LazyComponents<T>listener - lazy components listenerpublic boolean isLazy()
LazyComponentsisLazy in interface LazyComponents<T>public boolean isLazyInitialized()
LazyComponentsisLazyInitialized in interface LazyComponents<T>public List<org.openqa.selenium.WebElement> getWrappedElements()
WrapsElementsgetWrappedElements in interface WrapsElementsCopyright © 2016 FluentLenium. All Rights Reserved.