Jump to: navigation, search

Difference between revisions of "JFace Data Binding/DOM"

(New page: {{JFace Data Binding}} == Target == Work is underway to support binding to w3c DOM node. See (for the moment) [http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/inbox/ TK-UI SVN] - you can ...)
 
(Target)
Line 8: Line 8:
 
     <li>[http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/inbox/org.eclipse.core.examples.databinding.dom org.eclipse.core.examples.databinding.dom]  : DOM binding samples.</li>
 
     <li>[http://tk-ui.svn.sourceforge.net/svnroot/tk-ui/inbox/org.eclipse.core.examples.databinding.dom org.eclipse.core.examples.databinding.dom]  : DOM binding samples.</li>
 
</ul>
 
</ul>
 +
 +
== DOM binding sample ==
 +
 +
This DOM binding sample explains how bind this XHTML content :
 +
 +
<pre>
 +
<html>
 +
  <title>DOM Bindings - HTML Input Text Sample.</title>
 +
  <label>This sample bind :
 +
* CharacterData of DOM Element title with Text property of SWT Shell.
 +
* CharacterData of DOM Element label with Text property of SWT Label.
 +
* Attribute value of DOM Element input with Text property of SWT Text.
 +
* DOM Document content with Text property of SWT Text (Area).</label>
 +
  <input type="text" value="bla bla bla" />
 +
</html>
 +
</pre>
 +
 +
with several SWT UI widgets :
 +
 +
[[Image:TestHTMLInputText.JPG]]
  
 
[[Category:Data Binding]]
 
[[Category:Data Binding]]

Revision as of 17:22, 1 August 2008

JFace Data Binding
Home
How to Contribute
FAQ
Snippets
Concepts
Binding
Converter
Observable
Realm

Target

Work is underway to support binding to w3c DOM node. See (for the moment) TK-UI SVN - you can find two plug-in project that provides DOM-based observables :

DOM binding sample

This DOM binding sample explains how bind this XHTML content :

<html>
  <title>DOM Bindings - HTML Input Text Sample.</title>
  <label>This sample bind :
* CharacterData of DOM Element title with Text property of SWT Shell. 
* CharacterData of DOM Element label with Text property of SWT Label. 
* Attribute value of DOM Element input with Text property of SWT Text. 
* DOM Document content with Text property of SWT Text (Area).</label>
  <input type="text" value="bla bla bla" />	
</html>

with several SWT UI widgets :

TestHTMLInputText.JPG