JavaFX
Straight from the trenches
WANTED
Braz, Anderson
Software Engineer
Java Man since 2000, postgradute, open
source advocate, speaker and training
consultant
mrbraz mrbrazjava
You cannot love what
You cannot understand
Dependecy Injection
Make it easy to create
conventions
Event streams
Decouple object
communication
Multithreading
Immutability
The simplest way to avoid problems with
concurrency
Defensive copy
To protect your class against that you should copy
data you receive and only return copies of data to
calling code.
JavaFX Thread
Command Thread
Background Thread
UI Controls
java.lang.IllegalStateException:
Not on FX application thread
Platform.runLater()
Model-View-Presenter
Presenter is the guy
Knows everything about the Model and View contracts
and coordinates the communication between them
View is the User Interface
Everything that interacts with the user to
maintain the Subject up to date
Model is the Subject
Business Domain, Business Data, Meta Data,
Conceptual Objects, etc
Easy to test
Model-View-Presenter is the design created to make
it easy to create testable User Interfaces and the
behaviours associated with it.
MVP: A true revelation
I developed this presentation using MVP design
WANTED
Braz, Anderson
Software Engineer
Java Man since 2000, postgradute, open
source advocate, speaker and training
consultant
mrbraz mrbrazjava
ReactiveFX
An open source solution that
illustrates the use of topics
discussed in this presentation.
Find it on github