public abstract class HandlerManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
HandlerManager()
Creates an empty handler manager
|
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addHandler(EventHandler handler,
EventType type)
Adds a event handler.
|
void |
fireEvent(Event event)
Fires the event to the handlers.
|
int |
getHandlerCount(EventType type)
Returns the amount of handlers for a specific event type.
|
protected abstract IsChart |
getSource()
Returns a chart instance as source for all events.
|
boolean |
isEventHandled(EventType type)
Returns
true if there is any event handler for event type passed as argument. |
protected abstract IsChart getSource()
public HandlerRegistration addHandler(EventHandler handler, EventType type)
handler - handler instance to addtype - the event type associated with handlerpublic void fireEvent(Event event)
event - the event to firepublic final int getHandlerCount(EventType type)
type - event type to use to get the amount of handlerspublic final boolean isEventHandled(EventType type)
true if there is any event handler for event type passed as argument.type - event type to checktrue if there is any event handler for event type passed as argument