Class AddHandlerEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.AddHandlerEvent
-
public final class AddHandlerEvent extends Event
Event which is fired when new event handler has been added to the chart.
This event should use only for use internal only to manage internally all handlers.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description AddHandlerEvent(EventType handlerType)
Creates the event with the type of new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.EventType
getType()
Returns the event type used to register this event to find handlers of the appropriate class.boolean
isRecognize(EventType type)
Returnstrue
if the type of event handler is equals to the event handler type provided as argument, otherwisefalse
.
-
-
-
Field Detail
-
TYPE
public static final EventType TYPE
Event type
-
-
Constructor Detail
-
AddHandlerEvent
public AddHandlerEvent(EventType handlerType)
Creates the event with the type of new handler.- Parameters:
handlerType
- the type of new handler.
-
-
Method Detail
-
getType
public EventType getType()
Description copied from class:Event
Returns the event type used to register this event to find handlers of the appropriate class.
-
dispatch
protected void dispatch(EventHandler handler)
Description copied from class:Event
Implemented by subclasses to dispatch event on the handler.
-
isRecognize
public final boolean isRecognize(EventType type)
Returnstrue
if the type of event handler is equals to the event handler type provided as argument, otherwisefalse
.- Parameters:
type
- the event handler type to use checking if equals to the type of event handler of event- Returns:
true
if the type of event handler is equals to the event handler type provided as argument, otherwisefalse
-
-