[DataBinding] Relation of JavaBeans and JFace DB [message #325440] |
Mon, 18 February 2008 17:01  |
Eclipse User |
|
|
|
Originally posted by: housh_housh.yahoo.com
Hello,
could someone please explain how Java Beans and JFace Data Binding are
related to each other?
Should the "mode-side" always be javabeans?
Could someone please connect these two worlds (javabeans + jface db) for me?
thx,
ex
|
|
|
Re: [DataBinding] Relation of JavaBeans and JFace DB [message #325442 is a reply to message #325440] |
Mon, 18 February 2008 18:12  |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
exquisitus wrote:
> Hello,
>
> could someone please explain how Java Beans and JFace Data Binding are
> related to each other?
>
> Should the "mode-side" always be javabeans?
> Could someone please connect these two worlds (javabeans + jface db) for me?
Data Binding has the idea of a "model" and a "target" which are bound
together. In a typical scenario, the "target" is some kind of GUI
component like a SWT Control or JFace Viewer and the "model" is, well,
the model ;-) JDB supports several different kinds of models right now:
Java Beans (objects that fire property change events), EMF objects, and
(as of the latest Eclipse 3.4 builds) POJO objects. There are also
factories to create GUI observables as targets (SWTObservables, etc.)
Having said that, there is nothing that says you MUST use a non-visual
Java object as the model and a widget as the target - JDB is perfectly
useful for binding any two kinds of things together, as long as you can
create an IObservable for them.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.24124 seconds