Skip to main content



      Home
Home » Eclipse Projects » JFace » Databinging - Writable and the opposite path.
Databinging - Writable and the opposite path. [message #689095] Sun, 26 June 2011 16:13
Eclipse UserFriend
Hi,

I am succesfully using a WritableValue to bind between UI widgets (i.e.
various Radio buttons, whereby the selected button will be reflected in
the WritableValue), and a model object in an indirect manner. This
happens by registering a IValueChangeListener on the UI Widgets, which
aggregates the value changes from several UI widgets and update the
WritableValue. So far so good.

I am however struggling to achieve the opposite, which is updating the
UI widgets from the model value. The WritableValue doesn't seem to sync
with the model value, and perhaps it shoudn't (It's a Writable after
all), but what would be the pattern for updating the UI widgets?

Do I need another binding with a change listener on the model
IValueProperty? (and in similar fashion update the UI widgets through a
value change listener on the property?).


Thank You, Christophe
Previous Topic:Binding checkbutton to text enabled property
Next Topic:Databinding - Writable and the opposite path.
Goto Forum:
  


Current Time: Sat Jul 05 02:19:24 EDT 2025

Powered by FUDForum. Page generated in 0.02900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top