JavaFX
technology creates stunning user interfaces. But how should a JavaFX enthusiast
develop the next enterprise application or migrate an existing one? OpenDolphin
is a freeopen source library that strictly separates business logic from
visualization.This architectural approach
assists
in making a switch between different UI toolkits while ensuring that all investments
in business logic are protected. At JavaOne 2012,OpenDolphin was presented at
the Java Strategy Keynote as an example of successfully integrating JavaFX with
enterprise applications. The keynote demonstrated an interactive 3-D
application that monitors a container yard, facilitates planning activities for
container relocations,
and
simulates the execution of resulting work plans .This container monitoring demo—from
Navis(CargoTec), the world market leader of container terminal software—illustrates
two important characteristics
of
many JavaFX enterprise applications:
■ First, you want to fully exploit the
rich UI capabilities of JavaFX.
■ Second,
often a server centric programming model has been used
for
many years and this architecture cannot be compromised.
OpenDolphin
is very flexible when it comes to supporting different
UI
toolkits. JavaFX is preferred,but you can also use Swing, AWT,
SWT,
and client-side frameworks such as Eclipse RCP or NetBeans.
Any
Java-based UI toolkit is just fine as long as it is able to register
itself
as a listener in a JavaBeans likefashion.
First
encapsulate the view layer with the helpof OpenDolphin, and then replace it. This
strategy safeguards you regardless of whether
you
want to prepare yourself for a future move to JavaFX or you
want
to jump into JavaFX right away and hedge your bets.
The
demo section ofOpenDolphin contains the
so-called performance
demo
which comes in a Swing version and a JavaFX version to show the ease of
migration. The business logic is not touched at all. The same
application
code runs on the server for both applications, and only the
views
differ.
No comments:
Post a Comment