public interface EventService
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventListener listener)
Add an EventListener to the list of objects that will be sent Events.
|
void |
addListener(String threadPrefix,
EventListener listener)
Add an EventListener to the list of objects that will be sent Events.
|
void |
fireEvent(Event evt)
Fire an Event at all EventListeners that have registered an interest in events.
|
String |
getEventName(Integer id)
Get an event name from the registered event code descriptors (debug use only)
|
void |
registerEventCodeDescriptor(Class cls)
Register an event code descriptor (debug use only)
|
void |
removeListener(EventListener listener)
Remove an EventListener
|
void |
removeListener(String threadPrefix)
Remove an EventListener from the list of objects that will be sent Events.
|
void addListener(EventListener listener)
listener
- listener to addvoid addListener(String threadPrefix, EventListener listener)
threadPrefix
- use to filter events from specific threads by setting the thread prefix.listener
- listener to addvoid removeListener(String threadPrefix)
listener
- listener to removevoid fireEvent(Event evt)
evt
- event to fire to all listenervoid removeListener(EventListener listener)
listener
- void registerEventCodeDescriptor(Class cls)
Copyright © 2024. All rights reserved.