java.awt.event
Interface AWTEventListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
AWTEventListenerProxy sample code for java.awt.event.AWTEventListenerProxy definition code for java.awt.event.AWTEventListenerProxy

public interface AWTEventListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

The listener interface for receiving notification of events dispatched to objects that are instances of Component or MenuComponent or their subclasses. Unlike the other EventListeners in this package, AWTEventListeners passively observe events being dispatched in the AWT, system-wide. Most applications should never use this class; applications which might use AWTEventListeners include event recorders for automated testing, and facilities such as the Java Accessibility package.

The class that is interested in monitoring AWT events implements this interface, and the object created with that class is registered with the Toolkit, using the Toolkit's addAWTEventListener method. When an event is dispatched anywhere in the AWT, that object's eventDispatched method is invoked.

Since:
1.2
See Also:
AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent , Toolkit.addAWTEventListener(java.awt.event.AWTEventListener, long) sample code for java.awt.Toolkit.addAWTEventListener(java.awt.event.AWTEventListener, long) definition code for java.awt.Toolkit.addAWTEventListener(java.awt.event.AWTEventListener, long) , Toolkit.removeAWTEventListener(java.awt.event.AWTEventListener) sample code for java.awt.Toolkit.removeAWTEventListener(java.awt.event.AWTEventListener) definition code for java.awt.Toolkit.removeAWTEventListener(java.awt.event.AWTEventListener)

Method Summary
 void eventDispatched sample code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent) definition code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent) (AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  event)
          Invoked when an event is dispatched in the AWT.
 

Method Detail

eventDispatched sample code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent) definition code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent)

void eventDispatched(AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  event)
Invoked when an event is dispatched in the AWT.