Griffon in Action
Andres Almiray, Danno Ferrin, and James Shingler
Foreword by Dierk König
  • June 2012
  • ISBN 9781935182238
  • 384 pages
  • printed in black & white

A thorough source of information...the definitive guide.

Dierk König, Author of Groovy in Action

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.

Table of Contents show full

foreword

preface acknowledgments about this book about the cover illustration

==

==

Part 1 Getting started

1. Chapter 1 Welcome to the Griffon revolution

1.1. Introducing Griffon

1.2. Building the GroovyEdit text editor in minutes

1.3. Java desktop development: welcome to the jungle

1.4. The Griffon approach

1.5. Summary

2. Chapter 2 A closer look at Griffon

2.1. A tour of the common application structure

2.2. The ABCs of configuration

2.3. Using Griffon’s command line

2.4. Application life cycle overview

2.5. Summary

Part 2 Essential Griffon

3. Chapter 3 Models and binding

3.1. A quick look at models and bindings

3.2. Models as communication hubs

3.3. Observable beans

3.4. Have your people call my people: binding

3.5. The secret life of BindingUpdatable

3.6. Putting it all together

3.7. Summary

4. Chapter 4 Creating a view

4.1. Java Swing for the impatient

4.2. Groovy SwingBuilder: streamlined Swing

4.3. Anatomy of a Griffon view

4.4. Using special nodes

4.5. Managing large views

4.6. Using screen designers and visual editors

4.7. Summary

5. Chapter 5 Understanding controllers and services

5.1. Dissecting a controller

5.2. The need for services

5.3. Artifact management

5.4. Summary

6. Chapter 6 Understanding MVC groups

6.1. Anatomy of an MVC group

6.2. Instantiating MVC groups

6.3. Using and managing MVC groups

6.4. Creating custom artifact templates

6.5. Summary

7. Chapter 7 Multithreaded applications

7.1. The bane of Swing development

7.2. SwingBuilder alternatives

7.3. Multithreaded applications with Griffon

7.4. SwingXBuilder and threading support

7.5. Putting it all together

7.6. Additional threading options

7.7. Summary

8. Chapter 8 Listening to notifications

8.1. Working with build events

8.2. Working with application events

8.3. Your class as an event publisher

8.4. Summary

9. Chapter 9 Testing your application

9.1. Griffon testing basics

9.2. Not for the faint of heart: UI testing

9.3. Testing with Spock and easyb

9.4. Metrics and code inspection

9.5. Summary

10. Chapter 10 Ship it!

10.1. Understanding the common packaging options

10.2. Using Griffon’s standard packaging targets

10.3. Using the Installer plugin

10.4. Summary

11. Chapter 11 Working with plugins

11.1. Working with plugins

11.2. Understanding plugin types

11.3. Creating the Tracer plugin and addon

11.4. Releasing the Tracer plugin

11.5. Summary

12. Chapter 12 Enhanced looks

12.1. Adding new nodes

12.2. Builder delegates under the hood

12.3. Quick tour of builder extensions in Griffon

12.4. Summary

13. Chapter 13 Griffon in front, Grails in the back

13.1. Getting started with Grails

13.2. Building the Grails server application

13.3. To REST or not

13.4. Building the Griffon frontend

13.5. Querying the Grails backend

13.6. Alternative networking options

13.7. Summary

14. Chapter 14 Productivity tools

14.2. Command-line tools

14.3. The Griffon wrapper

14.4. Summary

© 2014 Manning Publications Co.

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.

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 reader

Written for Java developers—no experience with Groovy, Grails, or Swing is required.

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.


combo $44.99 pBook + eBook
eBook $35.99 pdf + ePub + kindle

FREE domestic shipping on three or more pBooks

If you think building desktop apps is complex, this awesome book will change your mind!

Guillaume Laforge, Groovy project lead

Brings life back into Java desktop application development.

Santosh Shanbhag, Monsanto Company

Griffon makes Java GUI programming easy. Griffon in Action makes it fun.

Michael Kimsal, Publisher of GroovyMag