fr.emn.reactiveinput.system
Class MyEventQueue

java.lang.Object
  extended byjava.awt.EventQueue
      extended byfr.emn.reactiveinput.system.MyEventQueue

public class MyEventQueue
extends java.awt.EventQueue

Author:
Pierre To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
MyEventQueue()
           
 
Method Summary
static void activateKeyDisabling()
          Causes all key events to be disabled
static void activateMouseDisabling()
          Causes all mouse events to be disabled
static void addKeyMonitor(java.awt.event.AWTEventListener l)
           
protected static void checkInstall()
           
static void deactivateKeyDisabling()
          Enables key events
static void deactivateMouseDisabling()
          Enables mouse events
protected  void dispatchEvent(java.awt.AWTEvent e)
          We activate/deactivate instead of pushing/popping because this feature seems to be bugged
static void postEventAndForceProcess(java.awt.AWTEvent e)
          Queues an event and process it despite disablings.
static void removeKeyMonitor(java.awt.event.AWTEventListener l)
           
 
Methods inherited from class java.awt.EventQueue
getCurrentEvent, getMostRecentEventTime, getNextEvent, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, push
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyEventQueue

public MyEventQueue()
Method Detail

dispatchEvent

protected void dispatchEvent(java.awt.AWTEvent e)
We activate/deactivate instead of pushing/popping because this feature seems to be bugged


activateKeyDisabling

public static void activateKeyDisabling()
Causes all key events to be disabled


deactivateKeyDisabling

public static void deactivateKeyDisabling()
Enables key events


activateMouseDisabling

public static void activateMouseDisabling()
Causes all mouse events to be disabled


deactivateMouseDisabling

public static void deactivateMouseDisabling()
Enables mouse events


checkInstall

protected static void checkInstall()

addKeyMonitor

public static void addKeyMonitor(java.awt.event.AWTEventListener l)

removeKeyMonitor

public static void removeKeyMonitor(java.awt.event.AWTEventListener l)

postEventAndForceProcess

public static void postEventAndForceProcess(java.awt.AWTEvent e)
Queues an event and process it despite disablings.