public interface EventManager
Modifier and Type | Method and Description |
---|---|
void |
addListener(Object listener)
Add an event listener.
|
Exception[] |
fireEvent(Object event)
Fire the given event to all listeners, returning any exceptions.
|
Collection |
getListeners()
Return a read-only list of listeners.
|
boolean |
hasListener(Object listener)
Return whether the given instance is in the list of listeners.
|
boolean |
hasListeners()
Return true if there are any registered listeners.
|
boolean |
removeListener(Object listener)
Remove an event listener.
|
void addListener(Object listener)
boolean removeListener(Object listener)
boolean hasListener(Object listener)
boolean hasListeners()
Collection getListeners()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.