T - type of component.public class LazyComponentList<T> extends java.lang.Object implements java.util.List<T>, WrapsElements, LazyComponents<T>
| Constructor and Description |
|---|
LazyComponentList(ComponentInstantiator instantiator,
java.lang.Class<T> componentClass,
java.util.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(java.util.Map<org.openqa.selenium.WebElement,T> componentMap)
First lazy components initialized event.
|
java.util.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.
|
java.lang.String |
toString() |
protected java.util.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, toArraypublic LazyComponentList(ComponentInstantiator instantiator, java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)
instantiator - component instantiatorcomponentClass - component classelements - underlying element listprotected java.util.List<T> transformList()
protected void fireLazyComponentsInitialized(java.util.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 java.util.List<org.openqa.selenium.WebElement> getWrappedElements()
WrapsElementsgetWrappedElements in interface WrapsElementspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 FluentLenium. All Rights Reserved.