EventDispatcherDCCClientManagerpublic abstract class EventReceiver extends Object implements EventDispatcher
| Constructor | Description |
|---|---|
EventReceiver() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
attachEventDispatcher(EventDispatcher ev) |
Attach an EventDispatcher object to the events dispatching chain.
|
void |
detachEventDispatcher(EventDispatcher ev) |
Detach the specified EventDispatcher object from the events dispatching chain.
|
EventDispatcher |
getEventDispatcher() |
Get an object to be used to deliver events (usually
this, but YMMV). |
Set<String> |
getEvents() |
Retrieve the names of all the events that have been received
|
Object |
getEventValue(String name) |
Retrieve the value currently associated with the specified
event value
|
void |
ignoreEvents() |
Ignore further event notifications
|
abstract void |
notifyEvent(String eventName,
Object args) |
Deliver an event
|
void |
unIgnoreEvents() |
Almost like the method above :-)
|
Object |
waitEventValue(String name) |
Wait until the given event has received a value
|
public EventDispatcher getEventDispatcher()
EventDispatcherthis, but YMMV).getEventDispatcher in interface EventDispatcherpublic void attachEventDispatcher(EventDispatcher ev)
EventDispatcherev won't reach the object calling this method).
Good luck, and beware of notification loops! :-)attachEventDispatcher in interface EventDispatcherev - Event object to be attachedUnsupportedOperationException - alwayspublic void detachEventDispatcher(EventDispatcher ev)
EventDispatcherdetachEventDispatcher in interface EventDispatcherev - Event object to be detachedUnsupportedOperationException - alwayspublic abstract void notifyEvent(String eventName, Object args)
EventDispatchernotifyEvent in interface EventDispatchereventName - name of the eventargs - data being stored for that eventpublic Object getEventValue(String name)
EventDispatchergetEventValue in interface EventDispatchername - name of the event to query forUnsupportedOperationException - alwayspublic Set<String> getEvents()
EventDispatchergetEvents in interface EventDispatcherUnsupportedOperationException - alwayspublic void ignoreEvents()
EventDispatcherignoreEvents in interface EventDispatcherUnsupportedOperationException - alwayspublic void unIgnoreEvents()
EventDispatcherunIgnoreEvents in interface EventDispatcherpublic Object waitEventValue(String name)
EventDispatcherwaitEventValue in interface EventDispatchername - name of the event to wait forUnsupportedOperationException - always