public interface Listenable
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.Object listener)
Adds a listener to the component.
|
java.util.Set<java.lang.Object> |
getListeners() |
void |
removeListener(java.lang.Object listener)
Removes a listener from the component.
|
void addListener(java.lang.Object listener)
Listener and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener annotation for more information.
listener - must not be null.void removeListener(java.lang.Object listener)
listener - listener to remove. Must not be null.IllegalLifecycleStateException - may be thrown if the Listenable is stopped.java.util.Set<java.lang.Object> getListeners()