Overview
Griffon 0.1 – "Lego Griffon II" – is a maintenance release of Griffon 0.1.0
Principal Features
For a list of features added in 0.1.0 see the Griffon 0.1 Release Nodes
More Groovy Meta-Enhancements
Swing classes have benefited from a number of meta-class driven enhancements, you'll now be able to call iterator-friendly methods on Swing models for example.
def jlist = swing.list(data: [1, 2, 3, 4])
jlist.model.findAll{ it%2 == 0 } == [2, 4]
def data = [ [nick: "Mr.G", name: "Guillaume Laforge"], [nick: "jez", name: "Jeremy Rainer"], [nick: "blackdrag", name: "Jochen Theodoru"], [nick: "mittie", name: "Dierk Koenig"], [nick: "shemnon", name: "Danno Ferrin"] ] scrollPane { def mytable = table { tableModel(list:data) { propertyColumn( header: "Nickname", propertyName: "nick", editable: false ) propertyColumn( header: "Full Name", propertyName: "name", editable: false ) } } } mytable.model[0] == [ "Mr.G", "Guillaume Laforge"] mytable.model << [ "Mr. Grails", "Graeme Rocher"] mytable.model.size() == 6
See GRIFFON-44 for a full list of enhancements
One Big Jar option
Basic support has been added for packaging for the Java Store GRIFFON-71. when executing the package script an optional flag -jar will create the application jar with all packaged libraries. The flag can also set an alternate location: -jar=./OneBigJar.jar.
Notable Plugin Updates
Three new plugins have been added: AbeilleFormsBuilder, CSSBuilder & TridentBuilder.
Sample Applications
Griffon 0.1.2 ships with 4 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.
WebStart of
Application
Source:
Subversion Link
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.
WebStart of
Applicaiton
Subversion Link
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.
WebStart of
Applicaiton
Subversion Link
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.
An installer will be forthcoming.
Subversion Link
To run the sample from source, change into the source
directory and run
griffon run-app from the command prompt.



