In The Enterprise Side of JavaFX, Part 1 of 3 Adam Bien explains the use of LightView to convert REST services into a bindable set of properties, which he begins with links to downloads of Java FX, GlassFish, and LightFish. Bien explains that the fine-grained binding model allows clear separation of the view, presentation, and business logic. The SnapshotFetcher is independent of any JavaFX library, and its single responsibility is communicating with the back end and converting an InputStream into a Snapshot instance. The SnapshotProvider integrates the SnapshotFetcher with the JavaFX threading model and implements the periodic fetching of Snapshot instances in the background. Both classes supersede the classic Business Delegate pattern and they are the proxy to Java EE back-end services, he writes. With theSnapshot instance converted into fine-grained properties, the SnapshotPresenter holds together the back-end services and the view logic. The DashboardPresenter entirely decouples the view from the implementation of the datasource and makes the realization of the view more convenient. To receive monitoring data, a view only has to bind its view components to the published SnapshotPresenterBindings interface, Bien concludes. In part 2 Bienwill will discuss the structure of the dashboard from the view perspective as well as the direct integration of the JavaServer Faces 2 UI with WebView.
JavaFX 2.1: Update on New Documentation and Tutorials
Read More ...