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.
java.awt.Toolkit , java.util.EventListenerProxy
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| public | AWTEventListenerProxy(long
the bitmap of event types to receive eventMask, AWTEventListener the listener object listener)Constructor which binds the |
| Modifier and Type | Method and Description |
|---|---|
| public void | eventDispatched(AWTEvent
the AWT event event)Implements java. Forwards the AWT event to the listener delegate. |
| public long | Returns: the event mask associated with the listenerReturns the event mask associated with the listener. |
| eventMask | back to summary |
|---|---|
| private final long eventMask | |
| AWTEventListenerProxy | back to summary |
|---|---|
| public AWTEventListenerProxy(long eventMask, AWTEventListener listener) Constructor which binds the
| |
| eventDispatched | back to summary |
|---|---|
| public void eventDispatched(AWTEvent event) Implements java. Forwards the AWT event to the listener delegate.
| |
| getEventMask | back to summary |
|---|---|
| public long getEventMask() Returns the event mask associated with the listener.
| |