Griffon (framework)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Griffon
Original authorsDanno Ferrin, Andres Almiray, James Williams
Initial releaseSeptember 10, 2008
Stable release
2.16.0 / December 16, 2021 (2021-12-16)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inJava, Groovy
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemCross-platform
    PlatformCross-platform (JVM)
    Available inEnglish
    TypeRich Client Platform
    LicenseApache License 2.0
    Websitegriffon-framework.org

    Griffon is an open source rich client platform framework which uses the Java, Apache Groovy, and/or Kotlin programming languages. Griffon is intended to be a high-productivity framework by rewarding use of the Model-View-Controller paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer.

    The first release is the fruit of the effort by the Groovy Swing team and an attempt to take the best of rapid application development, as indicated by its Grails-like structure, the agility of Groovy, and the availability of components for Swing. The framework was redesign from scratch for version 2, allowing different JVM programming languages to be used either in isolation or in conjunction. Supported UI toolkits are

    Overview

    [edit | edit source]

    Griffon aims to reduce the typical confusion that occurs with traditional Java UI development. Due to the MVC structure of Griffon, developers never have to go searching for files or be confused on how to start a new project. Everything begins with:

    lazybones create <template_name> <APP_NAME>
    

    The generated project follows this structure:

    %PROJECT_HOME%
        + griffon-app
           + conf                 ---> location of configuration artifacts like builder configuration
           + controllers          ---> location of controller classes
           + i18n                 ---> location of message bundles for i18n
           + lifecycle            ---> location of lifecycle scripts
           + models               ---> location of model classes
           + resources            ---> location of non code resources (images, etc)
           + views                ---> location of view classes
       + src
           + main                 ---> optional; location for Groovy and Java source files
                                       (of types other than those in griffon-app/*)
    

    The builder infrastructure enables seamless integration of different widget libraries such as Swing, JIDE, and SwingX.

    In the first release, three sample applications are included :

    • Greet, a Groovy Twitter client featured in the JavaOne 2009 Script Bowl,
    • FontPicker, an application to view the available fonts on one's machine,
    • SwingPad, a lightweight designer application for Griffon user interfaces.

    Plugins

    [edit | edit source]

    Griffon can be extended with the use of plugins. Plugins provide run-time access to testing libraries such as Easyb and FEST, and all widget libraries besides core Swing are provided as plugins. The plugin system allows for a wide range of additions, for example

    Publications

    [edit | edit source]

    Books

    [edit | edit source]

    Features that would eventually become integral parts of Griffon (UI builders) were featured in these books:

    • Groovy In Action (published by Manning)
    • Beginning Groovy and Grails

    Books that cover Griffon:

    • Griffon In Action (published by Manning)
    • Beginning Groovy, Grails and Griffon

    Magazine

    [edit | edit source]
    • GroovyMag for Groovy and Grails developers

    See also

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    [edit | edit source]