|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - is the templated type of the events to send.L - is the templated type of the
listeners that can be
registered here and that will
receive the events.public interface EventSource<E extends Event,L extends EventListener<E>>
This interface allows listeners to be registered and unregistered.
| Method Summary | |
|---|---|
void |
addListener(L listener)
This method registers a listener that is interested in Events. |
boolean |
removeListener(L listener)
This method removes a listener. |
| Method Detail |
|---|
void addListener(L listener)
Events.
listener - is the listener to add.boolean removeListener(L listener)
listener - is the listener to remove.
true if the given listener has
successfully been removed, false if the
listener was NOT registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||