org.tbee.swing
Class EventQueue

java.lang.Object
  extended by java.awt.EventQueue
      extended by org.tbee.swing.EventQueue

public class EventQueue
extends java.awt.EventQueue

Allow for popup menu's on all textfields by default. Usage: StandardComponentPopupMenu.install();

Version:
$Revision: 1.11 $

Nested Class Summary
static interface EventQueue.AWTEventListener
           
 
Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
EventQueue()
           
 
Method Summary
 void addAWTEventListener(EventQueue.AWTEventListener l)
          listen to any AWT event
 void addComponentMouseListener(java.awt.Component c, java.awt.event.MouseListener l)
          Listen to any mouse event that occurs within the bounds of the components, even those that normally would go to a child or parent.
 void addMouseListener(java.awt.event.MouseListener l)
          listen to any mouse event
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
           
protected  void dispatchEvent(java.awt.AWTEvent event)
           
static EventQueue get()
          Singleton
 java.awt.Component getDeepestComponentAt(java.awt.event.MouseEvent lMouseEvent)
          returns the heavy weight component on which the event occured
static void install()
          Install this
 void removeAWTEventListener(EventQueue.AWTEventListener l)
           
 void removeComponentMouseListener(java.awt.Component c, java.awt.event.MouseListener l)
           
 void removeMouseListener(java.awt.event.MouseListener l)
           
 void removeMouseMotionListener(java.awt.event.MouseMotionListener 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
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

EventQueue

public EventQueue()
Method Detail

install

public static void install()
Install this


get

public static EventQueue get()
Singleton

Returns:

dispatchEvent

protected void dispatchEvent(java.awt.AWTEvent event)
Overrides:
dispatchEvent in class java.awt.EventQueue

addAWTEventListener

public void addAWTEventListener(EventQueue.AWTEventListener l)
listen to any AWT event


removeAWTEventListener

public void removeAWTEventListener(EventQueue.AWTEventListener l)

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
listen to any mouse event


removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)

addComponentMouseListener

public void addComponentMouseListener(java.awt.Component c,
                                      java.awt.event.MouseListener l)
Listen to any mouse event that occurs within the bounds of the components, even those that normally would go to a child or parent.


removeComponentMouseListener

public void removeComponentMouseListener(java.awt.Component c,
                                         java.awt.event.MouseListener l)

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)

getDeepestComponentAt

public java.awt.Component getDeepestComponentAt(java.awt.event.MouseEvent lMouseEvent)
returns the heavy weight component on which the event occured



Copyright © 2010. All Rights Reserved.