Class RemoveHandlerEvent
- java.lang.Object
-
- org.pepstock.charba.client.events.Event
-
- org.pepstock.charba.client.events.RemoveHandlerEvent
-
public final class RemoveHandlerEvent extends Event
Event which is fired when new event handler has been removed 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 RemoveHandlerEvent(EventType handlerType)
Creates the event with the type of removed 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
-
RemoveHandlerEvent
public RemoveHandlerEvent(EventType handlerType)
Creates the event with the type of removed handler.- Parameters:
handlerType
- the type of removed 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
-
-