Sie sind auf Seite 1von 69

Developing RIAs with JavaFX Script

James L. (Jim) Weaver


CTO/Developer
LAT, Inc.
Four Things I Want You to Take Away:
About the Presenter: James L. "Jim" Weaver
JavaFX Factoids
Session Take Away #1
JavaFX is Simple and Elegant
Expressing UI - Menus
DEMO

Creating Menus
The action Attribute
Menu-related widgets
Menu-related widgets (cont)
Expressing UI - Layout Widgets
DEMO
BorderPanel Layout Widget
More JavaFX Factoids
JavaFX is Simple and Elegant - Binding to a Model
DEMO
Binding to a Model
Factoid - The JavaFX Script Compiler Team
JavaFX is Simple and Elegant - Triggers
Creating String Expressions
Triggers Reduce Need for Setters
on replace Trigger Used for Setter
on replace Trigger Used for Setter (cont)
JavaFX Primitive Data Types
JavaFX Primitive Data Types (cont)
JavaFX is Simple and Elegant - Sequences & foreach
JavaFX is Simple and Elegant - Sequences (cont)
Sequences and the foreach Expression
Sequences and Block Expressions
Simple and Elegant - if/else Statement and Expression
JavaFX is Simple, Elegant and Leverages Java
JavaFX Leverages the Power of Java
JavaFX Leverages the Power of Java - Example
DEMO
TabbedPane widget and using Java Math library
JavaFX Leverages the Power of Java (Jah-va?)
Session Take Away #2:
Some Example JavaFX Apps "in the Wild" - WSB
DEMO
Word Search Puzzle Builder
The Word Search Builder Application Architecture
Session Take Away #3:
Using Borders and GridPanel
DEMO
Borders and GridPanel
Using JavaFX Layout Widgets
Using JavaFX Layout Widgets (cont)
BorderPanel Widget in Word Search App
BorderPanel Widget in Word Search App (cont)
The Layout Widget Types
The Layout Widget Types (cont)
Creating a ToolBar
Creating a ToolBar (cont)
Some JavaFX UI Classes
Some JavaFX UI Classes (cont)
Some Example JavaFX Apps "in the Wild" - FBB
DEMO
Freebase Browser
JavaFX Freebase Browser Screenshot
Romain Guy's Magic InfiniteProgressPanel Widget
JavaFX Freebase Browser Application Architecture
More UI Fun Including 2D Drawing
DEMO

JavaFX 2D Tutorial
Super Duck Example of 2D Graphics
DEMO

Super Duck 2D Graphics Demo


2D Graphics, Images and Animation
Custom Components - Graphical and Widget-Based
Graphical Custom Component - CompositeNode
Widget-Based Custom Component - CompositeWidget
Session Take Away #4:
Start Here - The OpenJFX Community Site
DEMO

Explore the OpenJFX Community Site


Q&A
Thank you for your
attention

Das könnte Ihnen auch gefallen