Hi all !
I'd like to use the meta attribute beans-property-type=bound to achieve
a couple of beans as follows.
I'd like to have the PropertyChangeSupport as a private member of
an abstract BaseBean, that all other beans extend.
Futhermore I'd like to have the addPropertyChangeListener and
removePropertyChangeListener in the abstract BaseBean, too.
Considering the beans I'd like to have a public method
firePropertyChange(String, Object, Object) in the BaseBeans that is accesibly
for every bean by just calling it... 'cause every bean extends the BaseBean.
firePropertyChange(String, Object, Object) is just a wrapper around the
PropertyChangeSupport. The code in the BaseBean looks like:
public firePropertyChange(String, Object, Object) {
changeSupport.firePropertyChange(String, Object, Object);
}
Every normal bean setterMethod needs nothing more than a
parametrized firePropertyChange method call, now.
This setup is the setup metioned in the core java2 book, but I had no luck
getting something like this from the BasicRenderer :(
Can anyone please help me with this ?
Max: maybe I can try to implement this after hearing your comments on
the setup I'd like to have ?
|