Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Class AWTEventListenerProxy

java.lang.Object
|
+--java.util.EventListenerProxy
   |
   +--java.awt.event.AWTEventListenerProxy

All Implemented Interfaces:

AWTEventListener, EventListener


public class AWTEventListenerProxy

extends EventListenerProxy

implements AWTEventListener

This class allows adding an AWTEventListener which only pays attention to a specific event mask.

Since:Author:See Also:

Constructor Summary

AWTEventListenerProxy(long eventMask, java.awt.event.AWTEventListener listener)

Construct an AWT Event Listener which only listens to events in the given mask, passing the work on to the real listener.

Method Summary

voideventDispatched(java.awt.AWTEvent event)

Forwards events on to the delegate if they meet the event mask.
longgetEventMask()

This returns the event mask associated with this listener.

Constructor Details

AWTEventListenerProxy

public AWTEventListenerProxy(long eventMask, java.awt.event.AWTEventListener listener)

Construct an AWT Event Listener which only listens to events in the given mask, passing the work on to the real listener.

Parameters:


Method Details

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)

Forwards events on to the delegate if they meet the event mask.

Parameters:

Throws:


getEventMask

public long getEventMask()

This returns the event mask associated with this listener.

Returns: