public interface Listenable
Modifier and Type | Method and Description |
---|---|
void |
addListener(Object listener)
Adds a listener to the component.
|
Set<Object> |
getListeners() |
void |
removeListener(Object listener)
Removes a listener from the component.
|
void addListener(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(Object listener)
listener
- listener to remove. Must not be null.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.