com.ibm.retail.AEF.client
Class EventDispatcher.EventDispatchQueue

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.retail.AEF.client.EventDispatcher.EventDispatchQueue
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
EventDispatcher

class EventDispatcher.EventDispatchQueue
extends java.lang.Thread

The EventDispatchQueue provides an equivalent to the AWT or Swing invokeLater() method for queueing events on an event dispatching thread.


Field Summary
protected  java.util.Vector queue
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
EventDispatcher.EventDispatchQueue(java.lang.String queueName)
          Construct an EventDispatchQueue
 
Method Summary
 void addToQueue(java.lang.Runnable obj)
          Add a runnable object to the event queue.
 void run()
          Main processing loop.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queue

protected java.util.Vector queue
Constructor Detail

EventDispatcher.EventDispatchQueue

public EventDispatcher.EventDispatchQueue(java.lang.String queueName)
Construct an EventDispatchQueue

Parameters:
queueName - of the queue is used to specify Thread name
Method Detail

run

public void run()
Main processing loop. Wait for runnable event objects to be added to the queue.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

addToQueue

public void addToQueue(java.lang.Runnable obj)
Add a runnable object to the event queue.

Parameters:
obj - runnable object on queue


Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004