org.openide.util
Class WeakListenerImpl.Change

java.lang.Object
  extended by org.openide.util.WeakListenerImpl
      extended by org.openide.util.WeakListenerImpl.Change
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener
Enclosing class:
WeakListenerImpl

static final class WeakListenerImpl.Change
extends WeakListenerImpl
implements javax.swing.event.ChangeListener

Weak swing change 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.Change(javax.swing.event.ChangeListener l)
          Constructor.
 
Method Summary
protected  java.lang.String removeMethodName()
          Method name to use for removing the listener.
 void stateChanged(javax.swing.event.ChangeEvent ev)
          Called when new file system is added to the pool.
 
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.Change

public WeakListenerImpl.Change(javax.swing.event.ChangeListener l)
Constructor.

Parameters:
l - listener to delegate to
Method Detail

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ev)
Called when new file system is added to the pool.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
ev - event describing the action

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