org.openide.util
Class WeakListenerImpl.VetoableChange

java.lang.Object
  extended by org.openide.util.WeakListenerImpl
      extended by org.openide.util.WeakListenerImpl.VetoableChange
All Implemented Interfaces:
java.beans.VetoableChangeListener, java.util.EventListener
Enclosing class:
WeakListenerImpl

static class WeakListenerImpl.VetoableChange
extends WeakListenerImpl
implements java.beans.VetoableChangeListener

Weak vetoable change listener


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.VetoableChange(java.beans.VetoableChangeListener l)
          Constructor.
 
Method Summary
protected  java.lang.String removeMethodName()
          Method name to use for removing the listener.
 void vetoableChange(java.beans.PropertyChangeEvent ev)
          Tests if the object we reference to still exists and if so, delegate to it.
 
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.VetoableChange

public WeakListenerImpl.VetoableChange(java.beans.VetoableChangeListener l)
Constructor.

Parameters:
l - listener to delegate to
Method Detail

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent ev)
                    throws java.beans.PropertyVetoException
Tests if the object we reference to still exists and if so, delegate to it. Otherwise remove from the source if it has removePropertyChangeListener method.

Specified by:
vetoableChange in interface java.beans.VetoableChangeListener
Throws:
java.beans.PropertyVetoException

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