Description
The Notify Plugin allows easy desktop notification integration to Griffon applications. If the user has the Ubuntu notify-send application, Windows Snarl, or Mac Growl installed, then nice looking alpha-blended message can be displayed by interacting with the NotifyService. If not, then a plain old JDialog will be displayed in the corner of the window for 5 seconds.
Installation
Simply run:
| Code Block |
|---|
griffon install-plugin notify |
The plugin will give you access to the NotifyService and a Growl jar that wraps the libgrowl.jnilib library.
The Growl integration requires the application to be deployed as a zip file ("griffon package zip"). If not, the fallback mechanism of displaying a JFrame will be used.
Usage
The service is a standard service. Declare a field called notifyService in your controller and it will be injected.
| Code Block |
|---|
class NotifyDemoController {
def model
def notifyService
def action = { evt = null ->
notifyService.notify(model.title, model.message)
}
}
|
A full demo is available on HamletDRC's GitHub.
History
Version | Date | Notes |
|---|---|---|
0.3 | 2010-12-02 | Fix artifact packaging |
0.2 | 2010-07-23 | Release sync with Griffon 0.9 |
0.1 | 2010-04-30 | first release |
The Notify Plugin was created by the Hackergarten programming group, at the Canoo Engineering AG world headquarters in Basel Switzerland. It was a true group effort and a special thanks goes to Oleg Buss for his high standards of keyboarding. Also, Rene Gröschke worked very hard on the Growl support and Francesco Durbin played a key role in the Snarl integration. Hamlet D'Arcy drank 4 beers and cursed git the entire time.