FileDocCategorySizeDatePackage
AWTEventListenerProxy.javaAPI DocJava SE 5 API1745Fri Aug 26 14:56:48 BST 2005java.awt.event

AWTEventListenerProxy

public class AWTEventListenerProxy extends EventListenerProxy implements AWTEventListener
A class which extends the EventListenerProxy, specifically for adding an AWTEventListener for a specific event mask. Instances of this class can be added as AWTEventListeners to a Toolkit object.

The getAWTEventListeners method of Toolkit can return a mixture of AWTEventListener and AWTEventListenerProxy objects.

see
java.awt.Toolkit
see
java.util.EventListenerProxy
since
1.4

Fields Summary
private long
eventMask
Constructors Summary
public AWTEventListenerProxy(long eventMask, AWTEventListener listener)
Constructor which binds the AWTEventListener to a specific event mask.

param
listener The listener object
param
eventMask The bitmap of event types to receive

        super(listener);
        this.eventMask = eventMask;
    
Methods Summary
public voideventDispatched(java.awt.AWTEvent evt)
Forwards the property change event to the listener delegate.

param
evt the property change event

        ((AWTEventListener)getListener()).eventDispatched(evt);
    
public longgetEventMask()
Returns the event mask associated with the listener.

        return eventMask;