Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding] Relation of JavaBeans and JFace DB
[DataBinding] Relation of JavaBeans and JFace DB [message #325440] Mon, 18 February 2008 17:01 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:need help tweaking a layout on preference page
Next Topic:License for RCP
Goto Forum:
  


Current Time: Sun Jun 08 05:14:14 EDT 2025

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

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

Back to the top