Tuesday, April 28, 2009

ANN: Griffon Splash Plugin Updated



I am pleased to announce the release of the Griffon plugin, Splash 0.1.1. Splash has been updated to use the new Griffon Banner and enhanced as per GRIFFON-38.

Sunday, January 18, 2009

ANN: Griffon Splash Screen Plugin

I am pleased to announce the release of my first Griffon plugin, Splash. Splash is a Griffon splash screen plugin based upon Roy Ratcliff's Java Splash Screen paper http://www.randelshofer.ch/oop/javasplash/Java%20Splash%20Screen.pdf

Installation



griffon install-plugin splash


The "initialize.groovy" script causes the splash screen to be displayed. The splash screen is disposed of by the "ready.groovy" script. Griffon executes teh initialize script then creates and initialize the controller, model, and view. Durring the initialization process, the splash screen status can be updated using the following technique.


SplashScreen.getInstance().showStatus("Initializing the Controller")


The plugin also provides the ability to provide your own image. this is accomplished in the
initialize.groovy
script using the following technique.


def splashScreen = SplashScreen.getInstance()

// Setting a splash image
URL url = this.class.getResource("mySplash.jpg")
splashScreen.setImage(url)


Keep an eye on: http://griffon.codehaus.org/Splash+Plugin

A special thanks to Andres Almiray for helping me and all of the Griffon Team.

Saturday, January 17, 2009

Testing new SyntaxHighlighting Plugin

This is a simple post to test syntax highlighting


public void printHello(){
System.out.println("Hello World");
}


Let's try some Groovy code now


class MyController {
// these will be injected by Griffon
def model
def view

void mvcGroupInit(Map args) {
// this method is called after model and view are injected
}

/*
def action = { evt = null ->
}
*/
}


I hope it works

Got it working, . . .

Keys to getting it working:
http://fahdshariff.blogspot.com/2008/07/syntax-highlighting-code-in-webpages.html
http://code.google.com/p/syntaxhighlighter/wiki/BloggerMode

Borrowed Groovy Highlighting from: http://grails.org/SyntaxHighlighter+Plugin

Sunday, January 11, 2009

CodeMash 2009 - Griffon in Front Grails in Back

I uploaded the slides from my Griffon in Front Grails in Back session at CodeMash 2009.

For Those of you who attend the talk, I enhanced the counting application based upon your questions. The code in the counting example now includes @bindable.


Slides: http://www.slideshare.net/jshingler/griffon-in-front-grails-in-back-presentation
gCollabTodo Code: http://github.com/jshingler/gcollabtodo/tree/master

Friday, January 9, 2009

CodeMash 2009 - Groovy and Grails Precompile

Just uploaded the Slides and Code from the Precompile Presentation that Chris Judd and I did at CodeMash 2009 on Groovy and Grails.

The presentation went really well.

Slides: http://www.slideshare.net/jshingler/gg-code-mash2009-20090106-presentation/
Code: http://github.com/jshingler/codemash2009precompile/tree/master

Thursday, November 27, 2008

Griffon Collab Todo Example

Okay, it is still a work in progress, . . . But, I have pushed the Griffon Collab Todo application to Github (http://github.com/jshingler/gcollabtodo/wikis). Griffon Collab Todo is a reimplementation of the Swing Client found in Chapter 13 of Beginning Groovy and Grails using Griffon.

The application is a Griffon (Groovy & Swing) client to a Grails Web Application. It communicates with the Grails application using a JSON Restful approach.

While it is still a work in progress, . . . It does give you an idea of they types of things you can do with Griffon.

Stay tuned, as time permits, I will blog more info on my experiences with Griffon. BTW, it has been fun.

Danno, Andres, and James have done a Great Job with Griffon!

Monday, November 24, 2008

Installing Griffon Snapshot

Griffon is to Desktop as Grails is to Web Apps.

Here are some instructions for installing the latest Griffon Dev Snapshot on Windows.

Assumptions: java is already installed.

1. Download the source (http://svn.codehaus.org/griffon) using your favorite Subversion tool. I like SmartSVN (http://www.syntevo.com/smartsvn)
2. cd download\core\trunk
3. run ant to build the code
4. create an installer. ant create-installer-izpack (look in ant\build\installer.xml for other options)
5. execute trunk\dist\griffon-installer-0.1.SNAPSHOT.jar (java -jar griffon-installer-0.1.SNAPSHOT.jar)

NOTE: Depending upon when you download the source, there is an error in the windows installer. It puts a PATH entry in the User variables that contains ${OLD_PATH_VALUE}. This creates a problem. A work around is to delete the PATH entry in User Variables and add the appropriate info to the System PATH variable. You should also make sure that GRIFFON_HOME has been defined.