Skip to main content

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 20:13
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member

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: Tue Jun 19 06:57:23 GMT 2018

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

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

Back to the top