[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Why is it needed for java bean to implement property change support

hao wrote:
jface databinding framwork has provided a lot of help classes, such as BeansObservables and WritableValue. Why is it still needed for java bean to implement property change support, such as
<<snip>>

DataBinding is based around the observer pattern. If there is no property change support on your bean, then BeansObservables has no way to add property change listeners, and therefore cannot detect when your bean properties change.


If property change support is not critical to your application, you can use PojoObservables instead. PojoObservables are identical to BeansObservables except that they do not use property change listeners.

Matthew