- java.lang.Object
-
- java.util.EventListenerProxy<AWTEventListener>
-
- java.awt.event.AWTEventListenerProxy
-
- All Implemented Interfaces:
- AWTEventListener, java.util.EventListener
A class which extends the
EventListenerProxy
specifically for adding an
AWTEventListener
for a specific event mask.
Instances of this class can be added as
AWTEventListener
s
to a
Toolkit
object.
The getAWTEventListeners
method of Toolkit
can return a mixture of AWTEventListener
and AWTEventListenerProxy
objects.
- Since:
- 1.4
- See Also:
Toolkit
,
EventListenerProxy
-
-
|
Constructor and Description |
|
AWTEventListenerProxy |
AWTEventListenerProxy(long eventMask,
AWTEventListener listener)
Constructor which binds the AWTEventListener
to a specific event mask.
-
Constructor which binds the AWTEventListener
to a specific event mask.
- Parameters:
eventMask - the bitmap of event types to receivelistener - the listener object
|
-
|
Modifier and Type |
Method and Description |
|
eventDispatched |
void eventDispatched(AWTEvent event)
Forwards the AWT event to the listener delegate.
|
|
getEventMask |
long getEventMask()
Returns the event mask associated with the listener.
public long getEventMask()
-
Returns the event mask associated with the listener.
- Returns:
- the event mask associated with the listener
|
|
getListener |
T getListener()
Returns the listener associated with the proxy.
public T getListener()
-
Description copied from class: java.util.EventListenerProxy
Returns the listener associated with the proxy.
- Returns:
- the listener associated with the proxy
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by
Dulcet from the OpenJDK sources.
Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.