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