A helper class for observing changes in bound bean properties
where the target bean changes.
Provides two access styles to the target bean that holds the observed
property: you can specify a bean directly,
or you can use a bean channel to access the bean indirectly.
In the latter case you specify a ValueModel
that holds the bean that in turn holds the observed properties.
If the target bean is null , it won't report any changes.
It is recommended to remove all listener by invoking #removeAll
if the observed bean lives much longer than this change support instance.
As an alternative you may use event listener lists that are based
on WeakReference s.
Constraints: All target bean classes must support
bound properties, i. e. must provide the following pair of methods
for registration of multicast property change event listeners:
public void addPropertyChangeListener(PropertyChangeListener x);
public void removePropertyChangeListener(PropertyChangeListener x);
and the following methods for listening on named properties:
public void addPropertyChangeListener(String, PropertyChangeListener x);
public void removePropertyChangeListener(String, PropertyChangeListener x);
author: Karsten Lentzsch version: $Revision: 1.7 $ See Also: PropertyChangeEvent See Also: PropertyChangeListener See Also: PropertyChangeSupport See Also: com.jgoodies.binding.beans.BeanAdapter |