14.09.2015 Views

e(fx)clipse - JavaFX Tooling and Runtime

e(fx)clipse - JavaFX Tooling and Runtime - Tomsondev Blog

e(fx)clipse - JavaFX Tooling and Runtime - Tomsondev Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

e(<strong>fx</strong>)<strong>clipse</strong> runtime<br />

✤<br />

Integration in E<strong>clipse</strong> Databinding<br />

TextField f = new TextField();<br />

IEMFValueProperty mProp = EMFProperties.value(MEDIA__TITLE);<br />

IJFXBeanValueProperty tProp = JFXBeanProperties.value("text");<br />

dbc.bindValue(<br />

! ! tProp.observe(f),<br />

! ! mProp.observeDetail(currentSelection)<br />

);<br />

✤<br />

Adapting to FX-Observable<br />

ObservableValue <strong>fx</strong>Value = AdapterFactory.adapt(EMFProperties.value<br />

(PHOTO_AREA__X).observe(eObject))<br />

ObservableList <strong>fx</strong>List = AdapterFactory.adapt(EMFProperties.list<br />

(PHOTO__AREAS).observe(eObject));<br />

Mittwoch, 28. März 2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!