EventDispatcher
DCCClientManager
public abstract class EventReceiver extends java.lang.Object implements EventDispatcher
コンストラクタ | 説明 |
---|---|
EventReceiver() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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). |
java.util.Set<java.lang.String> |
getEvents() |
Retrieve the names of all the events that have been received
|
java.lang.Object |
getEventValue(java.lang.String name) |
Retrieve the value currently associated with the specified
event value
|
void |
ignoreEvents() |
Ignore further event notifications
|
abstract void |
notifyEvent(java.lang.String eventName,
java.lang.Object args) |
Deliver an event
|
void |
unIgnoreEvents() |
Almost like the method above :-)
|
java.lang.Object |
waitEventValue(java.lang.String name) |
Wait until the given event has received a value
|
public EventDispatcher getEventDispatcher()
EventDispatcher
this
, but YMMV).getEventDispatcher
インタフェース内 EventDispatcher
public void attachEventDispatcher(EventDispatcher ev)
EventDispatcher
ev
won't reach the object calling this method).
Good luck, and beware of notification loops! :-)attachEventDispatcher
インタフェース内 EventDispatcher
ev
- Event object to be attachedjava.lang.UnsupportedOperationException
- alwayspublic void detachEventDispatcher(EventDispatcher ev)
EventDispatcher
detachEventDispatcher
インタフェース内 EventDispatcher
ev
- Event object to be detachedjava.lang.UnsupportedOperationException
- alwayspublic abstract void notifyEvent(java.lang.String eventName, java.lang.Object args)
EventDispatcher
notifyEvent
インタフェース内 EventDispatcher
eventName
- name of the eventargs
- data being stored for that eventpublic java.lang.Object getEventValue(java.lang.String name)
EventDispatcher
getEventValue
インタフェース内 EventDispatcher
name
- name of the event to query forjava.lang.UnsupportedOperationException
- alwayspublic java.util.Set<java.lang.String> getEvents()
EventDispatcher
getEvents
インタフェース内 EventDispatcher
java.lang.UnsupportedOperationException
- alwayspublic void ignoreEvents()
EventDispatcher
ignoreEvents
インタフェース内 EventDispatcher
java.lang.UnsupportedOperationException
- alwayspublic void unIgnoreEvents()
EventDispatcher
unIgnoreEvents
インタフェース内 EventDispatcher
public java.lang.Object waitEventValue(java.lang.String name)
EventDispatcher
waitEventValue
インタフェース内 EventDispatcher
name
- name of the event to wait forjava.lang.UnsupportedOperationException
- always