java.awt.event

Class AWTEventListenerProxy

public class AWTEventListenerProxy extends EventListenerProxy implements AWTEventListener

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

Since: 1.4

See Also: Toolkit EventListenerProxy

UNKNOWN: updated to 1.4

Constructor Summary
AWTEventListenerProxy(long eventMask, 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(AWTEvent event)
Forwards events on to the delegate.
longgetEventMask()
This returns the event mask associated with this listener.

Constructor Detail

AWTEventListenerProxy

public AWTEventListenerProxy(long eventMask, 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: eventMask the mask of events to listen to listener the wrapped listener

Method Detail

eventDispatched

public void eventDispatched(AWTEvent event)
Forwards events on to the delegate.

Parameters: event the to forward to the delagate listener

Throws: NullPointerException if the delegate this was created with is null

getEventMask

public long getEventMask()
This returns the event mask associated with this listener.

Returns: the event mask