Skip to end of metadata
Go to start of metadata

Overview

Griffon 0.3.1 – "Leopardus colocolo" - is a maintainance release of Griffon 0.3.

New Features

The first version of the Griffon Guide is now available. You'll find it in every Griffon distribution from now on.

Shutdown Handlers

Applications have the option to let particular artifacts to abort the shutdown sequence and/or perform a task while the shutdown sequence is in process. Artifacts that desire to be part of the shutdown sequence should implement the griffon.core.ShutdownHandler interface and register themselves with the application instance.

The contract of a ShutdownHandler is very simple

  • boolean canShutdown(GriffonApplication app) - return false to abort the shutdown sequence.
  • void onShutdown(GriffonApplication app) - called if the shutdown sequence was not aborted.

There are no default ShutdownHandlers registered with an application.

Running Mode

Applications can run in 3 modes: STANDALONE, WEBSTART and APPLET. The griffon.util.RunMode enum allows access to the current running mode.

Here's a snippet of code that shows how to setup a welcome message that displays the application's name and version, along with its Griffon version, current environment and current running mode.

Sample Applications

Griffon 0.3.1 ships with 5 sample applications of varying levels of complexity demonstrating various parts of the framework. In order of complexity they are:

File Viewer

File View is a simple demonstration of creating new MVCGroups on the fly.

Source: git

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Font Picker

Font Picker demonstrates form based data binding to adjust the sample rendering of system fonts.

Source: git

To run the sample from source, change into the source directory and run griffon run-app from the command prompt.

Greet

Greet, a full featured Griffon Application, is a Twitter client. It shows Joint Java/Groovy compilation, richer MVCGroup interactions, and network service based data delivery.

Source: git

To run the sample from source, change into the source directory and run griffon run-webstart from the command prompt. Because Greet uses JNLP APIs for browser integration using run-app will prevent web links from working.

SwingPad

SwingPad, a full featured Griffon Application, is a scripting console for rendering Groovy SwingBuilder views.

  • No labels