Class ControllerMapperFactory<T extends NativeObjectContainer>
- java.lang.Object
-
- org.pepstock.charba.client.controllers.ControllerMapperFactory<T>
-
- All Implemented Interfaces:
NativeObjectContainerFactory<T>
public abstract class ControllerMapperFactory<T extends NativeObjectContainer> extends Object implements NativeObjectContainerFactory<T>
Class to implement from controllers in order to extend the standard configuration of charts.
It takes the java script object of standard options passing it to a wrapper to manage additional properties.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedControllerMapperFactory(ControllerType type)Creates the controller by its type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate()Creates a native object container instance by an empty native object.ControllerTypegetType()Controller must define a unique id in order to be configurable.
Returns the controller id.-
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
-
-
-
-
Constructor Detail
-
ControllerMapperFactory
protected ControllerMapperFactory(ControllerType type)
Creates the controller by its type.- Parameters:
type- the type of this controller.
-
-
Method Detail
-
create
public final T create()
Description copied from interface:NativeObjectContainerFactoryCreates a native object container instance by an empty native object.- Specified by:
createin interfaceNativeObjectContainerFactory<T extends NativeObjectContainer>- Returns:
- native object container element instance
-
getType
public final ControllerType getType()
Controller must define a unique id in order to be configurable.
Returns the controller id.- Returns:
- the controller id.
-
-