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>>
EventBus.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(L listener)
This method registers a listener that is interested in
Events. |
boolean |
removeListener(L listener)
This method removes a listener.
|
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.Copyright © 2001–2016 mmm-Team. All rights reserved.