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.


Constructor Index

 o ControllerEventQueue(Vector)
Construct a ControllerEventQueue for the given list of ControllerListeners.

Method Index

 o postEvent(ControllerEvent)
Post a ControllerEvent to the queue.
 o run()
Endlessly monitor the event queue.

Constructors

 o 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.

Methods

 o postEvent
 public synchronized void postEvent(ControllerEvent event)
Post a ControllerEvent to the queue. All listeners will be notified ASAP.

 o 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