org.openide.util
Class WeakListenerImpl.Focus

java.lang.Object
  extended by org.openide.util.WeakListenerImpl
      extended by org.openide.util.WeakListenerImpl.Focus
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener
Enclosing class:
WeakListenerImpl

static final class WeakListenerImpl.Focus
extends WeakListenerImpl
implements java.awt.event.FocusListener

Weak version of focus listener. This class if final only for performance reasons, can be happily unfinaled if desired.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.util.WeakListenerImpl
WeakListenerImpl.Change, WeakListenerImpl.Document, WeakListenerImpl.Focus, WeakListenerImpl.PropertyChange, WeakListenerImpl.VetoableChange
 
Field Summary
 
Fields inherited from class org.openide.util.WeakListenerImpl
listenerClass
 
Constructor Summary
WeakListenerImpl.Focus(java.awt.event.FocusListener l)
          Constructor.
 
Method Summary
 void focusGained(java.awt.event.FocusEvent ev)
          Delegates to the original listener.
 void focusLost(java.awt.event.FocusEvent ev)
          Delegates to the original listener.
protected  java.lang.String removeMethodName()
          Method name to use for removing the listener.
 
Methods inherited from class org.openide.util.WeakListenerImpl
create, get, getImplementator, setSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeakListenerImpl.Focus

public WeakListenerImpl.Focus(java.awt.event.FocusListener l)
Constructor.

Parameters:
l - listener to delegate to
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent ev)
Delegates to the original listener.

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent ev)
Delegates to the original listener.

Specified by:
focusLost in interface java.awt.event.FocusListener

removeMethodName

protected java.lang.String removeMethodName()
Method name to use for removing the listener.

Specified by:
removeMethodName in class WeakListenerImpl
Returns:
name of method of the source object that should be used to remove the listener from listening on source of events