TIENE EN SU CESTA DE LA COMPRA
en total 0,00 €
Griffon in Action is a comprehensive tutorial written for Java developers who want a more productive approach to UI development. After a quick Groovy tutorial, you´ll immediately dive into Griffon and start building examples that explore its high productivity approach to Swing development.
About the Technology
You can think of Griffon as Grails for the desktop. It is a Groovy-driven UI framework for the JVM that wraps and radically simplifies Swing. Its declarative style and approachable abstractions are instantly familiar to developers using Grails or JavaFX.
About the Book
With Griffon in Action you get going quickly. Griffon´s convention-over-configuration approach requires minimal code to get an app off the ground, so you can start seeing results immediately. You´ll learn how SwingBuilder and other Griffon ´builders´ provide a coherent DSL-driven development experience. Along the way, you´ll explore best practices for structure, architecture, and lifecycle of a Java desktop application.
Written for Java developers-no experience with Groovy, Grails, or Swing is required.
What´s Inside
Griffon from the ground up
Full compatibility with Griffon 1.0
Using SwingBuilder and the other ´builders´
Practical, real-world examples
Just enough Groovy
About the Authors
Andres Almiray is the project lead of the Griffon framework, frequent conference speaker, and Java Champion. Danno Ferrin is cofounder of Griffon and an active Groovy committer. James Shingler is a technical architect, conference speaker, open source advocate, and author.
Part 1 Getting started
Chapter 1 Welcome to the Griffon revolution
Introducing Griffon
Building the GroovyEdit text editor in minutes
Java desktop development: welcome to the jungle
The Griffon approach
Summary
Chapter 2 A closer look at Griffon
A tour of the common application structure
The ABCs of configuration
Using Griffon's command line
Application life cycle overview
Summary
Part 2 Essential Griffon
Chapter 3 Models and binding
A quick look at models and bindings
Models as communication hubs
Observable beans
Have your people call my people: binding
The secret life of BindingUpdatable
Putting it all together
Summary
Chapter 4 Creating a view
Java Swing for the impatient
Groovy SwingBuilder: streamlined Swing
Anatomy of a Griffon view
Using special nodes
Managing large views
Using screen designers and visual editors
Summary
Chapter 5 Understanding controllers and services
Dissecting a controller
The need for services
Artifact management
Summary
Chapter 6 Understanding MVC groups
Anatomy of an MVC group
Instantiating MVC groups
Using and managing MVC groups
Creating custom artifact templates
Summary
Chapter 7 Multithreaded applications
The bane of Swing development
SwingBuilder alternatives
Multithreaded applications with Griffon
SwingXBuilder and threading support
Putting it all together
Additional threading options
Summary
Chapter 8 Listening to notifications
Working with build events
Working with application events
Your class as an event publisher
Summary
Chapter 9 Testing your application
Griffon testing basics
Not for the faint of heart: UI testing
Testing with Spock and easyb
Metrics and code inspection
Summary
Chapter 10 Ship it!
Understanding the common packaging options
Using Griffon's standard packaging targets
Using the Installer plugin
Summary
Chapter 11 Working with plugins
Working with plugins
Understanding plugin types
Creating the Tracer plugin and addon
Releasing the Tracer plugin
Summary
Chapter 12 Enhanced looks
Adding new nodes
Builder delegates under the hood
Quick tour of builder extensions in Griffon
Summary
Chapter 13 Griffon in front, Grails in the back
Getting started with Grails
Building the Grails server application
To REST or not
Building the Griffon frontend
Querying the Grails backend
Alternative networking options
Summary
Chapter 14 Productivity tools
Getting set up in popular IDEs
Command-line tools
The Griffon wrapper
Summary
appendix Porting a legacy application
index