-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: bound bean properties
PostPosted: Sat Jul 03, 2004 9:42 am 
Newbie

Joined: Sun Jun 20, 2004 10:24 am
Posts: 6
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.