Griffon in Action by Andres Almiray

By Andres Almiray


Griffon in Action is a complete educational written for Java builders who need a extra effective method of UI improvement. After a brief Groovy instructional, you are going to instantly dive into Griffon and begin construction examples that discover its excessive productiveness method of Swing development.

About the Technology

You can examine Griffon as Grails for the computing device. it's a Groovy-driven UI framework for the JVM that wraps and noticeably simplifies Swing. Its declarative kind and approachable abstractions are immediately normal to builders utilizing Grails or JavaFX.

About the Book

Griffon in Action will get you going speedy. Griffon's convention-over-configuration method calls for minimum code to get an app off the floor, so that you can begin seeing effects instantly. you will learn the way SwingBuilder and different Griffon "builders" offer a coherent DSL-driven improvement event. alongside the best way, you will discover top practices for constitution, structure, and lifecycle of a Java computer application.

Written for Java developers—no event with Groovy, Grails, or Swing is needed.

buy of the print booklet comes with a suggestion of a loose PDF, ePub, and Kindle e-book from Manning. additionally to be had is all code from the e-book.

What's Inside

  • Griffon from the floor up
  • Full compatibility with Griffon 1.0
  • Using SwingBuilder and the opposite "builders"
  • Practical, real-world examples
  • Just sufficient Groovy


Table of Contents

  1. Welcome to the Griffon revolution
  2. A nearer examine Griffon
  3. PART 2 crucial GRIFFON
  4. Models and binding
  5. Creating a view
  6. Understanding controllers and services
  7. Understanding MVC groups
  8. Multithreaded applications
  9. Listening to notifications
  10. Testing your application
  11. Ship it!
  12. Working with plugins
  13. Enhanced looks
  14. Griffon in entrance, Grails within the back
  15. Productivity tools

Show description

Read Online or Download Griffon in Action PDF

Similar object-oriented design books

Building Java Enterprise Systems with J2EE

The sensible perspective of establishing Java firm platforms with J2EE presents the conceptual history and wealth of code examples had to really gather structures in an invaluable demeanour with the J2EE applied sciences. additionally, this booklet demonstrates how the applied sciences supplement and construct on best of each other through evolution of a cohesive and genuine pattern program.

Beginning Perl (Expert's Voice in Open Source)

It is a publication for these people who believed that we didn’t have to examine Perl, and now we all know it's extra ubiquitous than ever. Perl is very versatile and strong, and it isn’t frightened of net 2. zero or the cloud. initially touted because the duct tape of the web, Perl has due to the fact that developed right into a multipurpose, multiplatform language current totally in all places: heavy-duty internet purposes, the cloud, platforms management, ordinary language processing, and monetary engineering.

Developing Modular-Oriented Simulation Models Using System Dynamics Libraries (SpringerBriefs in Electrical and Computer Engineering)

This SpringerBrief introduces the advance and functional program of a module-oriented improvement framework for area particular system-dynamic libraries (SDL approach), which might be utilized in the simulation of multi-causal and dynamic relationships on diverse degrees of an undefined, for instance the development undefined.

Additional info for Griffon in Action

Sample text

Pack(); return frame; Add event listener on button } } There have been several attempts to simplify how UIs are created in Java, to the point of externalizing them in a different format; most of the time, the chosen format is XML. For some reason, Java developers have had a strong love/hate relationship with XML since the early days. When a configuration challenge appears or the need to externalize an aspect of an application arises, XML is the choice 99% of the time. 5 Once you go down the path of declarative UI programming with XML, you’ll eventually find yourself in a world of pain.

GRIFFON AND MVC What does Griffon bring to the table when it comes to MVC? A framework API referred to as MVC groups: a hybrid of the old-school MVC pattern mixed with more modern concepts such as injection and convention over configuration. Griffon automates the creation of the model, view, and controller classes both at build time and at runtime. It configures them via injection to follow the original convention of paths of references, observed updates, and user interactions. It also has established file locations for the created groups and other conventions relating to the life cycle of the MVC group.

We hope you’re getting excited about the painless configuration: so far, you haven’t done any! In the next section, you’ll build on this great start and create an editor. 2 Building the GroovyEdit text editor in minutes Many consider Swing application development painful. ” sums up this attitude. Swing development isn’t easy, and time to market suffers because of all the tweaking required. There’s truth in these complaints, at least partly because the Swing toolkit is more than 10 years old. It’s powerful, but it requires too much work for a new developer to come to terms with quickly.

Download PDF sample

Rated 4.99 of 5 – based on 14 votes