Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Databinding] Without PropertyChangeListener
[Databinding] Without PropertyChangeListener [message #330754] Tue, 12 August 2008 15:55 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

I only need to update my model from the view not vice versa. Therefore I
would like to avoid to implement PropertyChangeListener support in my model.

I assume I can configure UpdateValueStrategy to tell the system that I
want to have only a one direction binding (only Ui to model). Can
someone point me in the right direction on how to do this?

Best regards, Lars
Re: [Databinding] Without PropertyChangeListener [message #330765 is a reply to message #330754] Tue, 12 August 2008 16:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You want the PojoObservables coming with 3.4 which don't require
PropertyChangeListeners on the model side.

Tom

Lars Vogel schrieb:
> Hi,
>
> I only need to update my model from the view not vice versa. Therefore I
> would like to avoid to implement PropertyChangeListener support in my
> model.
>
> I assume I can configure UpdateValueStrategy to tell the system that I
> want to have only a one direction binding (only Ui to model). Can
> someone point me in the right direction on how to do this?
>
> Best regards, Lars


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [Databinding] Without PropertyChangeListener [message #330767 is a reply to message #330765] Tue, 12 August 2008 17:30 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Tom Schindl wrote:
> You want the PojoObservables coming with 3.4 which don't require
> PropertyChangeListeners on the model side.
>

Awesome! Thank you. I uploaded a small example as a reference for
others:
http://www.vogella.de/articles/EclipseDataBinding/article.ht ml#eclipsedatabindingpojo
Re: [Databinding] Without PropertyChangeListener [message #330770 is a reply to message #330767] Tue, 12 August 2008 21:57 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Lars Vogel wrote:
> Tom Schindl wrote:
>> You want the PojoObservables coming with 3.4 which don't require
>> PropertyChangeListeners on the model side.
>>
>
> Awesome! Thank you. I uploaded a small example as a reference for
> others:
> http://www.vogella.de/articles/EclipseDataBinding/article.ht ml#eclipsedatabindingpojo
>

You should add it to the Data Binding Snippets page in the Eclipse Wiki:
http://wiki.eclipse.org/index.php/JFace_Data_Binding/Snippet s

Eric
Previous Topic:java heap | Out of memory | jobs api
Next Topic:How to get fully qualified names of classes in a project
Goto Forum:
  


Current Time: Sat Jul 27 13:23:20 GMT 2024

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

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

Back to the top