public interface IEventDispatcher extends IEventHandler
This interface serves as the base interface for all dispatchers. It supports dispatch by event type.
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(Class<? extends Event> type,
IEventHandler handler)
Add an event type handler.
|
void |
removeEventHandler(Class<? extends Event> type,
IEventHandler handler)
Remove an event type handler.
|
onEvent
void addEventHandler(Class<? extends Event> type, IEventHandler handler)
type
- The event type for which the handler is being installed.handler
- The handler being added.void removeEventHandler(Class<? extends Event> type, IEventHandler handler)
type
- The event type for which the handler is being removed.handler
- The handler being removed.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.