Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 895
Registered: July 2009
Senior Member
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: Fri Jul 25 13:36:24 EDT 2014

Powered by FUDForum. Page generated in 0.01426 seconds