org.progeeks.util.beans
Class BeanChangeDelegate

java.lang.Object
  extended by org.progeeks.util.beans.BeanChangeDelegate
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class BeanChangeDelegate
extends java.lang.Object
implements java.beans.PropertyChangeListener

Property change listener that can listen for changes to one bean but dispatch them to a different one, re-sourcing the messages as it goes. It does this by having friendly access to the bean change support class... and so will only work with BeanChangeSupport objects and this class cannot be subclassed or it will lose its friendly access. This class is primarily useful for hooking up events thrown by ObservableList to the standard property change support of a regular bean. Indeed, special support has been built in to properly re-source ListPropertyChangeEvents.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Constructor Summary
BeanChangeDelegate(BeanChangeSupport bean)
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanChangeDelegate

public BeanChangeDelegate(BeanChangeSupport bean)
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright © 2002-2003 Paul Speed. All Rights Reserved.