Copyright
Brief Table of Contents
Table of Contents
List of Figures
List of Tables
List of Listings
Preface
Acknowledgments
About this Book
About the Title
About the Cover Illustration
Chapter 1. Welcome to the future: introducing JavaFX
1.1. Introducing JavaFX
1.1.1. Why do we need JavaFX Script? The power of a DSL
1.1.2. Back to the future: the rise of the cloud
1.1.3. Form follows function: the fall and rebirth of desktop Java
1.2. Minimum effort, maximum impact: a quick shot of JavaFX
1.3. Comparing Java and JavaFX Script: “Hello JavaFX!”
1.4. Comparing JavaFX with Adobe AIR, GWT, and Silverlight
1.4.1. Adobe AIR and Flex
1.4.2. Google Web Toolkit
1.4.3. Microsoft Silverlight
1.4.4. And by comparison, JavaFX
1.5. But why should I buy this book?
1.6. Summary
Chapter 2. JavaFX Script data and variables
2.1. Annotating code with comments
2.2. Data types
2.2.1. Static, not dynamic, types
2.2.2. Value type declaration
2.2.3. Initialize-only and reassignable variables (var, def)
2.2.4. Arithmetic on value types (+, -, etc.)
2.2.5. Logic operators (and, or, not, <, >, =, >=, <=, !=)
2.2.6. Translating and checking types (as, instanceof)
2.3. Working with text, via strings
2.3.1. String literals and embedded expressions
2.3.2. String formatting
2.3.3. String localization
2.4. Durations, using time literals
2.5. Sequences: not quite arrays
2.5.1. Basic sequence declaration and access (sizeof)
2.5.2. Sequence creation using ranges ([..], step)
2.5.3. Sequence creation using slices ( [..<] )