public interface IEventHandler<T extends IEventArgs>
IEventArgs
.
This event handler is a lightweight alternative to the Java internal
event handlers and differs slightly in the API.Modifier and Type | Method and Description |
---|---|
void |
onEvent(Object source,
T args)
Called when the event handler should react on the event.
|
void onEvent(Object source, T args)
source
- The source of the event.args
- The for the event
.