EventDispatcherI2PTunnel, I2PTunnelTaskpublic class EventDispatcherImpl extends java.lang.Object implements EventDispatcher
private final EventDispatcher _event = new EventDispatcher();
Deprecated - Used only by I2PTunnel
If there is anything in here that doesn't make sense, turn off
your computer and go fly a kite - (c) 2004 by jrandom| コンストラクタ | 説明 |
|---|---|
EventDispatcherImpl() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
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
|
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()
EventDispatcherthis, but YMMV).getEventDispatcher インタフェース内 EventDispatcherpublic void attachEventDispatcher(EventDispatcher ev)
EventDispatcherev won't reach the object calling this method).
Good luck, and beware of notification loops! :-)attachEventDispatcher インタフェース内 EventDispatcherev - Event object to be attachedpublic void detachEventDispatcher(EventDispatcher ev)
EventDispatcherdetachEventDispatcher インタフェース内 EventDispatcherev - Event object to be detachedpublic void notifyEvent(java.lang.String eventName,
java.lang.Object args)
EventDispatchernotifyEvent インタフェース内 EventDispatchereventName - name of the eventargs - data being stored for that eventpublic java.lang.Object getEventValue(java.lang.String name)
EventDispatchergetEventValue インタフェース内 EventDispatchername - name of the event to query forpublic java.util.Set<java.lang.String> getEvents()
EventDispatchergetEvents インタフェース内 EventDispatcherpublic void ignoreEvents()
EventDispatcherignoreEvents インタフェース内 EventDispatcherpublic void unIgnoreEvents()
EventDispatcherunIgnoreEvents インタフェース内 EventDispatcherpublic java.lang.Object waitEventValue(java.lang.String name)
EventDispatcherwaitEventValue インタフェース内 EventDispatchername - name of the event to wait for