java.awt.event
Class AWTEventListenerProxy

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventListenerProxy sample code for java.util.EventListenerProxy definition code for java.util.EventListenerProxy 
      extended by java.awt.event.AWTEventListenerProxy
All Implemented Interfaces:
AWTEventListener sample code for java.awt.event.AWTEventListener definition code for java.awt.event.AWTEventListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener

public class AWTEventListenerProxy
extends EventListenerProxy sample code for java.util.EventListenerProxy definition code for java.util.EventListenerProxy
implements AWTEventListener sample code for java.awt.event.AWTEventListener definition code for java.awt.event.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.

Since:
1.4
See Also:
Toolkit sample code for java.awt.Toolkit definition code for java.awt.Toolkit , EventListenerProxy sample code for java.util.EventListenerProxy definition code for java.util.EventListenerProxy

Constructor Summary
AWTEventListenerProxy sample code for java.awt.event.AWTEventListenerProxy.AWTEventListenerProxy(long, java.awt.event.AWTEventListener) definition code for java.awt.event.AWTEventListenerProxy.AWTEventListenerProxy(long, java.awt.event.AWTEventListener) (long eventMask, AWTEventListener sample code for java.awt.event.AWTEventListener definition code for java.awt.event.AWTEventListener  listener)
          Constructor which binds the AWTEventListener to a specific event mask.
 
Method Summary
 void eventDispatched sample code for java.awt.event.AWTEventListenerProxy.eventDispatched(java.awt.AWTEvent) definition code for java.awt.event.AWTEventListenerProxy.eventDispatched(java.awt.AWTEvent) (AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  evt)
          Forwards the property change event to the listener delegate.
 long getEventMask sample code for java.awt.event.AWTEventListenerProxy.getEventMask() definition code for java.awt.event.AWTEventListenerProxy.getEventMask() ()
          Returns the event mask associated with the listener.
 
Methods inherited from class java.util.EventListenerProxy sample code for java.util.EventListenerProxy definition code for java.util.EventListenerProxy
getListener sample code for java.util.EventListenerProxy.getListener() definition code for java.util.EventListenerProxy.getListener()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

AWTEventListenerProxy sample code for java.awt.event.AWTEventListenerProxy(long, java.awt.event.AWTEventListener) definition code for java.awt.event.AWTEventListenerProxy(long, java.awt.event.AWTEventListener)

public AWTEventListenerProxy(long eventMask,
                             AWTEventListener sample code for java.awt.event.AWTEventListener definition code for java.awt.event.AWTEventListener  listener)
Constructor which binds the AWTEventListener to a specific event mask.

Parameters:
listener - The listener object
eventMask - The bitmap of event types to receive
Method Detail

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

public void eventDispatched(AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  evt)
Forwards the property change event to the listener delegate.

Specified by:
eventDispatched sample code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent) definition code for java.awt.event.AWTEventListener.eventDispatched(java.awt.AWTEvent) in interface AWTEventListener sample code for java.awt.event.AWTEventListener definition code for java.awt.event.AWTEventListener
Parameters:
evt - the property change event

getEventMask sample code for java.awt.event.AWTEventListenerProxy.getEventMask() definition code for java.awt.event.AWTEventListenerProxy.getEventMask()

public long getEventMask()
Returns the event mask associated with the listener.