public class DefaultComponentInstantiator extends AbstractComponentInstantiator
| Constructor and Description |
|---|
DefaultComponentInstantiator(FluentControl control)
Creates a new component instantiator, using given fluent control.
|
DefaultComponentInstantiator(FluentControl control,
ComponentInstantiator instantiator)
Creates a new component instantiator, using given fluent control and underlying instantiator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComponentClass(java.lang.Class<?> componentClass)
Check if this class is a component class.
|
boolean |
isComponentListClass(java.lang.Class<? extends java.util.List<?>> componentListClass)
Check if this class is a component list class.
|
<T> T |
newComponent(java.lang.Class<T> componentClass,
org.openqa.selenium.WebElement element)
Create and register a new component from the given element.
|
<L extends java.util.List<T>,T> |
newComponentList(java.lang.Class<L> listClass,
java.lang.Class<T> componentClass,
java.util.List<T> componentsList)
Create and register a new list of component from the given component list.
|
asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentListpublic DefaultComponentInstantiator(FluentControl control)
control - control interfacepublic DefaultComponentInstantiator(FluentControl control, ComponentInstantiator instantiator)
control - control interfaceinstantiator - component instantiatorpublic boolean isComponentClass(java.lang.Class<?> componentClass)
ComponentInstantiatorcomponentClass - class to checkpublic boolean isComponentListClass(java.lang.Class<? extends java.util.List<?>> componentListClass)
ComponentInstantiatorcomponentListClass - class to checkpublic <T> T newComponent(java.lang.Class<T> componentClass,
org.openqa.selenium.WebElement element)
ComponentInstantiatorT - type of the componentcomponentClass - type of the componentelement - wrapped elementpublic <L extends java.util.List<T>,T> L newComponentList(java.lang.Class<L> listClass,
java.lang.Class<T> componentClass,
java.util.List<T> componentsList)
ComponentInstantiatorL - type of the listT - type of the componentlistClass - type of the listcomponentClass - type of the componentcomponentsList - components listCopyright © 2018 FluentLenium. All Rights Reserved.