00:00
460
More
See all Show me
64. JavaFX 2.0 EA Episode 2 Low Level Binding API
11 months ago
This screencast shows off the JavaFX 2.0 EA low level binding API.

Super important: This is EARLY ACCESS

ORACLE HAVE A RIGHT TO CHANGE API AND ANY CODE YOU SEE HERE. DO NOT DEPEND ON THE INFO FOR PRODUCTS / PRODUCTION etc

Thanks to Oracle JavaFX SDK Team and Partner Program

Moving swiftly on: Richard Bair et al are working on a new high-level API for binding JavaFX 2.0. I defer to their expertise!!! You are strongly recommendated to do so as well. ;-)

This code demonstrates the lowest level SUBJECT OBSERVER design pattern.

All scene-graph nodes in the API have properties (ValueModel objects) also known as object instance members. The ValueModel class wraps the primitive data and object references with "binding" behaviour e.g. notification of observers.

Therefore changes can be propogated in JavaFX 2.0 using a list collection of ValueModelListeners, which is a SAM type if you noticed.

Are you keeping up? JDK 8 SAM (Single Abstract Method) interface types can be converted to Lambda Expressions, Java 8 Closures in the future. I like this feature alot, because it can also be exploited by alternative JVM languages right here, right now.

The sore points are obviously the boiler plate in Java programming language and lack of conciseness. This is however not entirely the JavaFX SDK team's fault at all.

Enjoy
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

WMV
00:07:40
  • 640x480, 14.79MB
  • Uploaded Fri February 25, 2011
  • Please join or log in to download
  • License:

Statistics

Date Plays Comments
Totals 507 0 0
Feb 23rd 0 0 0
Feb 22nd 0 0 0
Feb 21st 1 0 0
Feb 20th 0 0 0
Feb 19th 0 0 0
Feb 18th 1 0 0
Feb 17th 0 0 0