Class EventDispatcher<EventKeyType, EventMessageType>
Handles notifying listeners of events.
EventKeyType is used to distinguish events (e.g. a ClickEvent vs a TouchEvent)
while EventMessageType is the type of the data sent with an event (can be void).
Handles notifying listeners of events.
EventKeyType
is used to distinguish events (e.g. aClickEvent
vs aTouchEvent
) whileEventMessageType
is the type of the data sent with an event (can bevoid
).Example