站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

FilterNode.PropertyChangeAdapter (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.nodes
Class FilterNode.PropertyChangeAdapter

java.lang.Object
  extended byorg.openide.nodes.FilterNode.PropertyChangeAdapter
All Implemented Interfaces:
EventListener, PropertyChangeListener
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


Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.