Class AbstractElementFactory<T extends NativeObjectContainer>
- java.lang.Object
-
- org.pepstock.charba.client.options.AbstractElementFactory<T>
-
- All Implemented Interfaces:
NativeObjectContainerFactory<T>
,ElementFactory<T>
public abstract class AbstractElementFactory<T extends NativeObjectContainer> extends Object implements ElementFactory<T>
Abstract implementation to get custom elements fromOptions.getElements()
.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractElementFactory(String elementKeyAsString)
Creates the factory by the key of object, as string.protected
AbstractElementFactory(Key elementKey)
Creates the factory by the key of object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Key
getElementKey()
Returns the object key of the element.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.commons.NativeObjectContainerFactory
create, create
-
-
-
-
Constructor Detail
-
AbstractElementFactory
protected AbstractElementFactory(String elementKeyAsString)
Creates the factory by the key of object, as string.- Parameters:
elementKeyAsString
- the key of object, as string.
-
AbstractElementFactory
protected AbstractElementFactory(Key elementKey)
Creates the factory by the key of object.- Parameters:
elementKey
- the key of object.
-
-
Method Detail
-
getElementKey
public final Key getElementKey()
Description copied from interface:ElementFactory
Returns the object key of the element.- Specified by:
getElementKey
in interfaceElementFactory<T extends NativeObjectContainer>
- Returns:
- the object key of the element
-
-