L - class type of event listenerE - class type of event objectpublic interface EventNotifier<L extends EventListener,E extends EventObject>
EventDispatcher class to perform
the event notification. The dispatcher schedules event notification
asynchronously, then for each actual event notification the single method
of this interface is called.| Modifier and Type | Method and Description |
|---|---|
void |
notifyListener(L listener,
E event)
Notifies the specified listener of the specified event.
|
void notifyListener(L listener, E event)
EventDispatcher thread. This includes cases of
RuntimeException which should be caught and dealt with,
otherwise the default behaviour is simply to print the stacktrace to
System.err.listener - listener to notifyevent - event for which listener is to be notifiedCopyright © 2015. All rights reserved.