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(Class<?> componentClass)
Check if this class is a component class.
|
boolean |
isComponentListClass(Class<? extends List<?>> componentListClass)
Check if this class is a component list class.
|
<T> T |
newComponent(Class<T> componentClass,
org.openqa.selenium.WebElement element)
Create and register a new component from the given element.
|
<L extends List<T>,T> |
newComponentList(Class<L> listClass,
Class<T> componentClass,
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(Class<?> componentClass)
ComponentInstantiatorcomponentClass - class to checkpublic boolean isComponentListClass(Class<? extends List<?>> componentListClass)
ComponentInstantiatorcomponentListClass - class to checkpublic <T> T newComponent(Class<T> componentClass, org.openqa.selenium.WebElement element)
ComponentInstantiatorT - type of the componentcomponentClass - type of the componentelement - wrapped elementpublic <L extends List<T>,T> L newComponentList(Class<L> listClass, Class<T> componentClass, List<T> componentsList)
ComponentInstantiatorL - type of the listT - type of the componentlistClass - type of the listcomponentClass - type of the componentcomponentsList - components listCopyright © 2016 FluentLenium. All Rights Reserved.