License Apache Software License 2.0
Documentation No documentation link provided
 Tags
Downloads 181
Rating
(0)

Authored by:

Andres Almiray
aalmiray@yahoo.com

Inspired by Ubuntu's Quickly this archetype bootstraps an application by adding common behavior found in many desktop applications, for example

  • main are separated in menu bar, content and status bar
  • typical set of menu actions (Open, Save, Quit, etc)
  • About, Credits, License and Preferences dialogs
  • centers all windows/dialogs on the screen
  • adds a quit confirmation dialog

Usage

Simply specify the name of the archetype (jumpstart) when invoking the create-app command, like this

griffon create-app sample --archetype=jumpstart

This will create the following artifacts

Configuration files

  • griffon-app/conf/Events.groovy
  • griffon-app/i18n/messages.properties

Models

  • griffon-app/models/sample/AboutModel.groovy
  • griffon-app/models/sample/AbstractDialogModel.groovy
  • griffon-app/models/sample/CreditsModel.groovy
  • griffon-app/models/sample/LicenseModel.groovy
  • griffon-app/models/sample/PreferencesModel.groovy

Views

  • griffon-app/views/sample/AboutView.groovy
  • griffon-app/views/sample/CreditsView.groovy
  • griffon-app/views/sample/LicenseView.groovy
  • griffon-app/views/sample/PreferencesView.groovy
  • griffon-app/views/sample/SampleActions.groovy
  • griffon-app/views/sample/SampleContent.groovy
  • griffon-app/views/sample/SampleMenuBar.groovy
  • griffon-app/views/sample/SampleStatusBar.groovy
  • griffon-app/views/sample/SampleView.groovy

Controllers

  • griffon-app/controllers/sample/DialogController.groovy
  • griffon-app/controllers/sample/SampleController.groovy

You can tweak all artifacts to match you're own needs.

Pay close attention to the conventions specified in the main MVC model. Controller actions will be harvested using the application's ActionManager. All messages are internationalized, which means you only need to create a messages.properties file that follows your own language conventions.

Configuration

The Jumpstart archetype supports Java files too. Create a Java based application with the following command

griffon create-app sample --archetype=jumpstart --file-type=java