|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the enumeration of events types that this event source can send.public interface EventSource<T extends Enum>
Definition of events source which supports registration of listeners.
| Method Summary | |
|---|---|
void |
addListener(Listener<T> listener,
ExecutorService executorService)
add a listener to this event source. |
void |
fireEvent(T event)
fires an event to all the registered listeners. |
| Method Detail |
|---|
void addListener(Listener<T> listener,
ExecutorService executorService)
listener - the listener to notify of eventsexecutorService - the executor service to use for the notification
of the above listener. If null, the notification thread calling the
fireEvent(Enum) will be used.void fireEvent(T event)
event - the event to fire
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||