qflib 0.98.0

de.qfs.lib.gui
Class EventQueue.WrapperEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--de.qfs.lib.gui.EventQueue.WrapperEvent
All Implemented Interfaces:
java.awt.ActiveEvent, java.io.Serializable
Enclosing class:
EventQueue

public class EventQueue.WrapperEvent
extends java.awt.AWTEvent
implements java.awt.ActiveEvent

ActiveEvent that wraps itself around an AWTEvent and dispatches it in JDK 1.2 style through the EventQueue's dispatchEvent method. This way it is possible to get inside the AWT event dispatch thread even with JDK 1.1.

Since:
0.98.0
See Also:
Serialized Form

Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EventQueue.WrapperEvent(java.awt.AWTEvent event)
          Create a new WrapperEvent.
 
Method Summary
 void dispatch()
          Dispatch the wrapped event through the EventQueue's dispatchEvent method.
 java.awt.AWTEvent getWrappedEvent()
          Get the wrapped event.
 
Methods inherited from class java.awt.AWTEvent
consume, finalize, getID, isConsumed, paramString, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventQueue.WrapperEvent

public EventQueue.WrapperEvent(java.awt.AWTEvent event)
Create a new WrapperEvent.
Parameters:
event - The event to wrap.
Method Detail

getWrappedEvent

public final java.awt.AWTEvent getWrappedEvent()
Get the wrapped event.
Returns:
The wrapped event.

dispatch

public void dispatch()
Dispatch the wrapped event through the EventQueue's dispatchEvent method.
Specified by:
dispatch in interface java.awt.ActiveEvent

qflib 0.98.0