|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.listener.WeakEventListener
public final class WeakEventListener
Understands an event listener that wraps a given and:
AWTEventListener
| Method Summary | |
|---|---|
static WeakEventListener |
attachAsWeakEventListener(Toolkit toolkit,
AWTEventListener listener,
long eventMask)
Creates a new and adds it to the given using
the given event mask. |
void |
dispose()
Removes itself from the this listener is attached to. |
void |
eventDispatched(AWTEvent e)
Dispatches the given event to the wrapped event listener. |
AWTEventListener |
underlyingListener()
Returns the underlying listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WeakEventListener attachAsWeakEventListener(Toolkit toolkit,
AWTEventListener listener,
long eventMask)
WeakEventListener and adds it to the given Toolkit using
the given event mask. The created WeakEventListener simply "decorates" the given
AWTEventListener. All events dispatched to the WeakEventListener are
re-routed to the underlying AWTEventListener. When the underlying
AWTEventListener is garbage-collected, the WeakEventListener will remove
itself from the toolkit.
toolkit - the given AWT Toolkit.listener - the underlying listener to wrap.eventMask - the event mask to use to attach the WeakEventListener to the toolkit.
WeakEventListener.public AWTEventListener underlyingListener()
public void eventDispatched(AWTEvent e)
null
(garbage-collected,) this listener will remove itself from the default toolkit.
eventDispatched in interface AWTEventListenere - the event dispatched in the AWT.public void dispose()
Toolkit this listener is attached to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||