org.openide.nodes 6.7.22

org.openide.nodes
Class FilterNode.PropertyChangeAdapter

java.lang.Object
  extended by org.openide.nodes.FilterNode.PropertyChangeAdapter
All Implemented Interfaces:
PropertyChangeListener, EventListener
Enclosing class:
FilterNode

protected static class FilterNode.PropertyChangeAdapter
extends Object
implements PropertyChangeListener

Adapter that listens on changes in an original node and refires them in a proxy. This adapter is created during initialization in FilterNode.createPropertyChangeListener(). The method can be overriden and this class used as the super class for the new implementation.

A reference to the proxy is stored by weak reference, so it does not prevent the node from being finalized.


Constructor Summary
FilterNode.PropertyChangeAdapter(FilterNode fn)
          Create a new adapter.
 
Method Summary
protected  void propertyChange(FilterNode fn, PropertyChangeEvent ev)
          Actually propagate the event.
 void propertyChange(PropertyChangeEvent ev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterNode.PropertyChangeAdapter

public FilterNode.PropertyChangeAdapter(FilterNode fn)
Create a new adapter.

Parameters:
fn - the proxy
Method Detail

propertyChange

public final void propertyChange(PropertyChangeEvent ev)
Specified by:
propertyChange in interface PropertyChangeListener

propertyChange

protected void propertyChange(FilterNode fn,
                              PropertyChangeEvent ev)
Actually propagate the event. Intended for overriding.

Parameters:
fn - the proxy
ev - the event

org.openide.nodes 6.7.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.