All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.media.ControllerEventQueue
java.lang.Object
|
+----java.lang.Thread
|
+----ejmf.toolkit.media.ControllerEventQueue
- public class ControllerEventQueue
- extends Thread
This class provides a dispatching mechanism for
ControllerEvents. All events posted to this queue are
dispatched to a Vector of ControllerListeners given when the
queue is constructed. Note that ControllerListeners may be
added or removed from this Vector from outside of this class,
and these changes will be reflected in the dispatching
mechanism.
-
ControllerEventQueue(Vector)
- Construct a ControllerEventQueue for the given list of
ControllerListeners.
-
postEvent(ControllerEvent)
- Post a ControllerEvent to the queue.
-
run()
- Endlessly monitor the event queue.
ControllerEventQueue
public ControllerEventQueue(Vector listeners)
- Construct a ControllerEventQueue for the given list of
ControllerListeners.
- Parameters:
- listeners
- The list of ControllerListeners to notify
whenever a ControllerEvents is posted.
postEvent
public synchronized void postEvent(ControllerEvent event)
- Post a ControllerEvent to the queue. All listeners will be
notified ASAP.
run
public void run()
- Endlessly monitor the event queue. This method should not
be called directly.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index