APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt.event

public Class AWTEventListenerProxy

extends EventListenerProxy<AWTEventListener>
implements AWTEventListener
Class Inheritance
All Implemented Interfaces
java.awt.event.AWTEventListener, java.util.EventListener
Imports
java.util.EventListenerProxy, java.awt.AWTEvent

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
java.awt.Toolkit, java.util.EventListenerProxy

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
public
AWTEventListenerProxy(long
the bitmap of event types to receive
eventMask
,
AWTEventListener
the listener object
listener
)

Constructor which binds the AWTEventListener to a specific event mask.

Method Summary

Modifier and TypeMethod and Description
public void
eventDispatched(AWTEvent
the AWT event
event
)

Implements java.awt.event.AWTEventListener.eventDispatched.

Forwards the AWT event to the listener delegate.

public long

Returns:

the event mask associated with the listener
getEventMask
()

Returns the event mask associated with the listener.

Inherited from java.util.EventListenerProxy:
getListener

Field Detail

eventMaskback to summary
private final long eventMask

Constructor Detail

AWTEventListenerProxyback to summary
public AWTEventListenerProxy(long eventMask, AWTEventListener listener)

Constructor which binds the AWTEventListener to a specific event mask.

Parameters
eventMask:long

the bitmap of event types to receive

listener:AWTEventListener

the listener object

Method Detail

eventDispatchedback to summary
public void eventDispatched(AWTEvent event)

Implements java.awt.event.AWTEventListener.eventDispatched.

Forwards the AWT event to the listener delegate.

Parameters
event:AWTEvent

the AWT event

getEventMaskback to summary
public long getEventMask()

Returns the event mask associated with the listener.

Returns:long

the event mask associated with the listener