Jump to: navigation, search

Difference between revisions of "JFace Data Binding/Rhino"

m (Target)
m (RhinoObservables)
Line 2: Line 2:
  
 
The goal of <b>JFace Data Binding/Rhino</b> is to support bindings to Rhino Javascript Scriptable Object.  See (for the moment) [http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/jface-databinding-rhino/ TK-UI SVN] but we are discussing with the Eclipse Team on where it can be made available.
 
The goal of <b>JFace Data Binding/Rhino</b> is to support bindings to Rhino Javascript Scriptable Object.  See (for the moment) [http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/jface-databinding-rhino/ TK-UI SVN] but we are discussing with the Eclipse Team on where it can be made available.
 +
 +
== Use-case ==
 +
 +
Take a simple example. Imagine you have this script :
 +
 +
<pre>
 +
 +
function Person(name) {
 +
  this.name = name
 +
};
 +
 +
var person = new Person('Simon')
 +
 +
</pre>
 +
 +
And you wish bind the property 'name' of the scriptable object person with SWT Text.
 +
 +
[[Image:Jface-db-rhino-person.png]]
 +
 +
On load form page, SWT Text has 'Simon' value. When user type 'Boris' into SWT Text, it update
 +
property 'name' of the scriptable object person with 'Boris' value.
  
 
== RhinoObservables ==
 
== RhinoObservables ==
  
Like another JFace Databinding implementations (SWT, Beans, Pojo...), Rhino bindings project give you several JFace IObservableValue and IObservableList Rhino implementations accessible via the IObservable factoriy org.eclipse.core.databinding.rhino.<b>RhinoObservables</b>.
+
Like another JFace Databinding implementations (SWT, Beans, Pojo...), Rhino bindings project give you several JFace IObservableValue and IObservableList Rhino implementations accessible via the IObservable factory org.eclipse.core.databinding.rhino.<b>RhinoObservables</b>.
  
 
== Why JFace Rhino Databinding? ==
 
== Why JFace Rhino Databinding? ==

Revision as of 09:49, 18 March 2009

Target

The goal of JFace Data Binding/Rhino is to support bindings to Rhino Javascript Scriptable Object. See (for the moment) TK-UI SVN but we are discussing with the Eclipse Team on where it can be made available.

Use-case

Take a simple example. Imagine you have this script :


function Person(name) {
  this.name = name
};

var person = new Person('Simon')

And you wish bind the property 'name' of the scriptable object person with SWT Text.

Jface-db-rhino-person.png

On load form page, SWT Text has 'Simon' value. When user type 'Boris' into SWT Text, it update property 'name' of the scriptable object person with 'Boris' value.

RhinoObservables

Like another JFace Databinding implementations (SWT, Beans, Pojo...), Rhino bindings project give you several JFace IObservableValue and IObservableList Rhino implementations accessible via the IObservable factory org.eclipse.core.databinding.rhino.RhinoObservables.

Why JFace Rhino Databinding?

E4 project

XWT