T
- options element to store chart configurationpublic abstract class EventProvider<T extends NativeObjectContainer> extends Object implements AddHandlerEventHandler, RemoveHandlerEventHandler
Modifier and Type | Method and Description |
---|---|
protected abstract <H extends EventHandler> |
addHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been added.
|
AbstractChart<?,?> |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
void |
onAdd(AddHandlerEvent event)
Invoked when a new event handler is added.
|
void |
onRemove(RemoveHandlerEvent event)
Invoked when a chart event handler is removed.
|
protected abstract <H extends EventHandler> |
removeHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been unregistered
|
protected void |
setConfiguration(T configuration) |
String |
toJSON()
Returns the JSON representation of the object.
|
public void onRemove(RemoveHandlerEvent event)
RemoveHandlerEventHandler
onRemove
in interface RemoveHandlerEventHandler
event
- event to be consumedpublic final void onAdd(AddHandlerEvent event)
AddHandlerEventHandler
onAdd
in interface AddHandlerEventHandler
event
- event to be consumedprotected abstract <H extends EventHandler> void addHandler(GwtEvent.Type<H> type)
H
- type of event handlertype
- type of eventprotected abstract <H extends EventHandler> void removeHandler(GwtEvent.Type<H> type)
H
- type of event handlertype
- type of event handlerprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final String toJSON()
public final AbstractChart<?,?> getChart()