1. Introduction

Provides a shortcut for adding tango icons based on Tango! icon set.

Griffon version: 2.2.0

2. Usage

2.1. Swing

The griffon-tango-swing:1.1.0 JAR provides a new Icon class: griffon.swing.support.tangoicons.TangoIcon. You may use this class with any Swing component that supports an Icon property.

2.2. JavaFX

The griffon-tango-javafx:1.1.0 JAR provides a new Node class: griffon.javafx.support.tangoicons.TangoIcon. You may use this class with any JavaFX control that accepts a graphic property. You may also use the icon directly as it is a subclass of javafx.scene.control.Label.

2.3. Action Resources

Action icons can be set using resources files if the following format is used:

iconClassName|category:name:size

Here’s an example using the Swing icon

griffon-app/i18n/messages.properties
org.example.AppController.action.Preferences.icon=griffon.swing.support.tango.TangoIcon|apps:help-browser:32

The JavaFX version for the same icon value is

griffon-app/i18n/messages.properties
org.example.AppController.action.Preferences.icon=griffon.javafx.support.tango.TangoIcon|apps:help-browser:32

3. Configuration

The plugin delivers artifacts for both Swing and JavaFX. It also contains Groovy enhancements that can be used in combination with the respective UI toolkit DSL (SwingBuilder and GroovyFX).

3.1. Gradle

You have two options for configuring this plugin: automatic and manual.

3.1.1. Automatic

As long as the project has the org.codehaus.griffon.griffon plugin applied to it you may include the following snippet in build.gradle

dependencies {
    griffon 'org.codehaus.griffon.plugins:griffon-tangoicons-plugin:1.1.0'
}

The griffon plugin will take care of the rest given its configuration.

3.1.2. Manual

You will need to configure any of the following blocks depending on your setup

Java + Swing
dependencies {
    compile 'org.codehaus.griffon.plugins:griffon-tangoicons-swing:1.1.0'
}
Java + JavaFX
dependencies {
    compile 'org.codehaus.griffon.plugins:griffon-tangoicons-javafx:1.1.0'
}
Groovy + Swing
dependencies {
    compile 'org.codehaus.griffon.plugins:griffon-tangoicons-swing-groovy:1.1.0'
}
Groovy + JavaFX
dependencies {
    compile 'org.codehaus.griffon.plugins:griffon-tangoicons-javafx-groovy:1.1.0'
}

3.2. Maven

First configure the griffon-tangoicons-plugin BOM in your POM file, by placing the following snippet before the <build> element

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.codehaus.griffon.plugins</groupId>
            <artifactId>griffon-tangoicons-plugin</artifactId>
            <version>1.1.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Next configure dependencies as required by your particular setup

Java + Swing
<dependency>
    <groupId>org.codehaus.griffon.plugins</groupId>
    <artifactId>griffon-tangoicons-swing</artifactId>
</dependency>
Java + JavaFX
<dependency>
    <groupId>org.codehaus.griffon.plugins</groupId>
    <artifactId>griffon-tangoicons-javafx</artifactId>
</dependency>
Groovy + Swing
<dependency>
    <groupId>org.codehaus.griffon.plugins</groupId>
    <artifactId>griffon-tangoicons-swing-groovy</artifactId>
</dependency>
Groovy + JavaFX
<dependency>
    <groupId>org.codehaus.griffon.plugins</groupId>
    <artifactId>griffon-tangoicons-javafx-groovy</artifactId>
</dependency>

4. Modules

The following sections display all bindings per module. Use this information to successfully override a binding on your own modules or to troubleshoot a module binding if the wrong type has been applied by the Griffon runtime.

4.1. JavaFX

Module name: tangoicons-javafx-groovy

Depends on: javafx-groovy

bind(BuilderCustomizer.class)
    .to(TangoIconsJavaFXBuilderCustomizer.class)
    .asSingleton();

The following nodes will become available on a Groovy View

Node Type

tangoIcon

griffon.javafx.support.tangoicons.TangoIcon

4.2. Swing

Module name: tangoicons-swing-groovy

Depends on: swing-groovy

bind(BuilderCustomizer.class)
    .to(TangoIconsSwingBuilderCustomizer.class)
    .asSingleton();

The following nodes will become available on a Groovy View

Node Type

tangoIcon

griffon.swing.support.tangoicons.TangoIcon

Both tangoIcon Nodes support the following properties

icon

The name of the icon, such as actions:go-up or actions:go-down.

size

The size of the icon. One of 16, 22, 32.

6. Icon Cheat Sheet

The following tables show all available icons. Table names stand for categories.

Table 1. actions
Name 16 22 32

address-book-new

address-book-new

address-book-new

address-book-new

appointment-new

appointment-new

appointment-new

appointment-new

bookmark-new

bookmark-new

bookmark-new

bookmark-new

contact-new

contact-new

contact-new

contact-new

document-new

document-new

document-new

document-new

document-open

document-open

document-open

document-open

document-print-preview

document-print-preview

document-print-preview

document-print-preview

document-print

document-print

document-print

document-print

document-properties

document-properties

document-properties

document-properties

document-save-as

document-save-as

document-save-as

document-save-as

document-save

document-save

document-save

document-save

edit-clear

edit-clear

edit-clear

edit-clear

edit-copy

edit-copy

edit-copy

edit-copy

edit-cut

edit-cut

edit-cut

edit-cut

edit-delete

edit-delete

edit-delete

edit-delete

edit-find-replace

edit-find-replace

edit-find-replace

edit-find-replace

edit-find

edit-find

edit-find

edit-find

edit-paste

edit-paste

edit-paste

edit-paste

edit-redo

edit-redo

edit-redo

edit-redo

edit-select-all

edit-select-all

edit-select-all

edit-select-all

edit-undo

edit-undo

edit-undo

edit-undo

folder-new

folder-new

folder-new

folder-new

format-indent-less

format-indent-less

format-indent-less

format-indent-less

format-indent-more

format-indent-more

format-indent-more

format-indent-more

format-justify-center

format-justify-center

format-justify-center

format-justify-center

format-justify-fill

format-justify-fill

format-justify-fill

format-justify-fill

format-justify-left

format-justify-left

format-justify-left

format-justify-left

format-justify-right

format-justify-right

format-justify-right

format-justify-right

format-text-bold

format-text-bold

format-text-bold

format-text-bold

format-text-italic

format-text-italic

format-text-italic

format-text-italic

format-text-strikethrough

format-text-strikethrough

format-text-strikethrough

format-text-strikethrough

format-text-underline

format-text-underline

format-text-underline

format-text-underline

go-bottom

go-bottom

go-bottom

go-bottom

go-down

go-down

go-down

go-down

go-first

go-first

go-first

go-first

go-home

go-home

go-home

go-home

go-jump

go-jump

go-jump

go-jump

go-last

go-last

go-last

go-last

go-next

go-next

go-next

go-next

go-previous

go-previous

go-previous

go-previous

go-top

go-top

go-top

go-top

go-up

go-up

go-up

go-up

list-add

list-add

list-add

list-add

list-remove

list-remove

list-remove

list-remove

mail-forward

mail-forward

mail-forward

mail-forward

mail-mark-junk

mail-mark-junk

mail-mark-junk

mail-mark-junk

mail-mark-not-junk

mail-mark-not-junk

mail-mark-not-junk

mail-mark-not-junk

mail-message-new

mail-message-new

mail-message-new

mail-message-new

mail-reply-all

mail-reply-all

mail-reply-all

mail-reply-all

mail-reply-sender

mail-reply-sender

mail-reply-sender

mail-reply-sender

mail-send-receive

mail-send-receive

mail-send-receive

mail-send-receive

media-eject

media-eject

media-eject

media-eject

media-playback-pause

media-playback-pause

media-playback-pause

media-playback-pause

media-playback-start

media-playback-start

media-playback-start

media-playback-start

media-playback-stop

media-playback-stop

media-playback-stop

media-playback-stop

media-record

media-record

media-record

media-record

media-seek-backward

media-seek-backward

media-seek-backward

media-seek-backward

media-seek-forward

media-seek-forward

media-seek-forward

media-seek-forward

media-skip-backward

media-skip-backward

media-skip-backward

media-skip-backward

media-skip-forward

media-skip-forward

media-skip-forward

media-skip-forward

process-stop

process-stop

process-stop

process-stop

system-lock-screen

system-lock-screen

system-lock-screen

system-lock-screen

system-log-out

system-log-out

system-log-out

system-log-out

system-search

system-search

system-search

system-search

system-shutdown

system-shutdown

system-shutdown

system-shutdown

tab-new

tab-new

tab-new

tab-new

view-fullscreen

view-fullscreen

view-fullscreen

view-fullscreen

view-refresh

view-refresh

view-refresh

view-refresh

window-new

window-new

window-new

window-new

Table 2. apps
Name 16 22 32

accessories-calculator

accessories-calculator

accessories-calculator

accessories-calculator

accessories-character-map

accessories-character-map

accessories-character-map

accessories-character-map

accessories-text-editor

accessories-text-editor

accessories-text-editor

accessories-text-editor

help-browser

help-browser

help-browser

help-browser

internet-group-chat

internet-group-chat

internet-group-chat

internet-group-chat

internet-mail

internet-mail

internet-mail

internet-mail

internet-news-reader

internet-news-reader

internet-news-reader

internet-news-reader

internet-web-browser

internet-web-browser

internet-web-browser

internet-web-browser

office-calendar

office-calendar

office-calendar

office-calendar

preferences-desktop-accessibility

preferences-desktop-accessibility

preferences-desktop-accessibility

preferences-desktop-accessibility

preferences-desktop-assistive-technology

preferences-desktop-assistive-technology

preferences-desktop-assistive-technology

preferences-desktop-assistive-technology

preferences-desktop-font

preferences-desktop-font

preferences-desktop-font

preferences-desktop-font

preferences-desktop-keyboard-shortcuts

preferences-desktop-keyboard-shortcuts

preferences-desktop-keyboard-shortcuts

preferences-desktop-keyboard-shortcuts

preferences-desktop-locale

preferences-desktop-locale

preferences-desktop-locale

preferences-desktop-locale

preferences-desktop-multimedia

preferences-desktop-multimedia

preferences-desktop-multimedia

preferences-desktop-multimedia

preferences-desktop-remote-desktop

preferences-desktop-remote-desktop

preferences-desktop-remote-desktop

preferences-desktop-remote-desktop

preferences-desktop-screensaver

preferences-desktop-screensaver

preferences-desktop-screensaver

preferences-desktop-screensaver

preferences-desktop-theme

preferences-desktop-theme

preferences-desktop-theme

preferences-desktop-theme

preferences-desktop-wallpaper

preferences-desktop-wallpaper

preferences-desktop-wallpaper

preferences-desktop-wallpaper

preferences-system-network-proxy

preferences-system-network-proxy

preferences-system-network-proxy

preferences-system-network-proxy

preferences-system-session

preferences-system-session

preferences-system-session

preferences-system-session

preferences-system-windows

preferences-system-windows

preferences-system-windows

preferences-system-windows

system-file-manager

system-file-manager

system-file-manager

system-file-manager

system-installer

system-installer

system-installer

system-installer

system-software-update

system-software-update

system-software-update

system-software-update

system-users

system-users

system-users

system-users

utilities-system-monitor

utilities-system-monitor

utilities-system-monitor

utilities-system-monitor

utilities-terminal

utilities-terminal

utilities-terminal

utilities-terminal

Table 3. categories
Name 16 22 32

applications-accessories

applications-accessories

applications-accessories

applications-accessories

applications-development

applications-development

applications-development

applications-development

applications-games

applications-games

applications-games

applications-games

applications-graphics

applications-graphics

applications-graphics

applications-graphics

applications-internet

applications-internet

applications-internet

applications-internet

applications-multimedia

applications-multimedia

applications-multimedia

applications-multimedia

applications-office

applications-office

applications-office

applications-office

applications-other

applications-other

applications-other

applications-other

applications-system

applications-system

applications-system

applications-system

preferences-desktop-peripherals

preferences-desktop-peripherals

preferences-desktop-peripherals

preferences-desktop-peripherals

preferences-desktop

preferences-desktop

preferences-desktop

preferences-desktop

preferences-system

preferences-system

preferences-system

preferences-system

Table 4. devices
Name 16 22 32

audio-card

audio-card

audio-card

audio-card

audio-input-microphone

audio-input-microphone

audio-input-microphone

audio-input-microphone

battery

battery

battery

battery

camera-photo

camera-photo

camera-photo

camera-photo

camera-video

camera-video

camera-video

camera-video

computer

computer

computer

computer

drive-harddisk

drive-harddisk

drive-harddisk

drive-harddisk

drive-optical

drive-optical

drive-optical

drive-optical

drive-removable-media

drive-removable-media

drive-removable-media

drive-removable-media

input-gaming

input-gaming

input-gaming

input-gaming

input-keyboard

input-keyboard

input-keyboard

input-keyboard

input-mouse

input-mouse

input-mouse

input-mouse

media-flash

media-flash

media-flash

media-flash

media-floppy

media-floppy

media-floppy

media-floppy

media-optical

media-optical

media-optical

media-optical

multimedia-player

multimedia-player

multimedia-player

multimedia-player

network-wired

network-wired

network-wired

network-wired

network-wireless

network-wireless

network-wireless

network-wireless

printer

printer

printer

printer

video-display

video-display

video-display

video-display

Table 5. emblems
Name 16 22 32

emblem-favorite

emblem-favorite

emblem-favorite

emblem-favorite

emblem-important

emblem-important

emblem-important

emblem-important

emblem-photos

emblem-photos

emblem-photos

emblem-photos

emblem-readonly

emblem-readonly

emblem-readonly

emblem-readonly

emblem-symbolic-link

emblem-symbolic-link

emblem-symbolic-link

emblem-symbolic-link

emblem-system

emblem-system

emblem-system

emblem-system

emblem-unreadable

emblem-unreadable

emblem-unreadable

emblem-unreadable

Table 6. emotes
Name 16 22 32

face-angel

face-angel

face-angel

face-angel

face-crying

face-crying

face-crying

face-crying

face-devilish

face-devilish

face-devilish

face-devilish

face-glasses

face-glasses

face-glasses

face-glasses

face-grin

face-grin

face-grin

face-grin

face-kiss

face-kiss

face-kiss

face-kiss

face-monkey

face-monkey

face-monkey

face-monkey

face-plain

face-plain

face-plain

face-plain

face-sad

face-sad

face-sad

face-sad

face-smile-big

face-smile-big

face-smile-big

face-smile-big

face-smile

face-smile

face-smile

face-smile

face-surprise

face-surprise

face-surprise

face-surprise

face-wink

face-wink

face-wink

face-wink

Table 7. mimetypes
Name 16 22 32

application-certificate

application-certificate

application-certificate

application-certificate

application-x-executable

application-x-executable

application-x-executable

application-x-executable

audio-x-generic

audio-x-generic

audio-x-generic

audio-x-generic

font-x-generic

font-x-generic

font-x-generic

font-x-generic

image-x-generic

image-x-generic

image-x-generic

image-x-generic

package-x-generic

package-x-generic

package-x-generic

package-x-generic

text-html

text-html

text-html

text-html

text-x-generic-template

text-x-generic-template

text-x-generic-template

text-x-generic-template

text-x-generic

text-x-generic

text-x-generic

text-x-generic

text-x-script

text-x-script

text-x-script

text-x-script

video-x-generic

video-x-generic

video-x-generic

video-x-generic

x-office-address-book

x-office-address-book

x-office-address-book

x-office-address-book

x-office-calendar

x-office-calendar

x-office-calendar

x-office-calendar

x-office-document-template

x-office-document-template

x-office-document-template

x-office-document-template

x-office-document

x-office-document

x-office-document

x-office-document

x-office-drawing-template

x-office-drawing-template

x-office-drawing-template

x-office-drawing-template

x-office-drawing

x-office-drawing

x-office-drawing

x-office-drawing

x-office-presentation-template

x-office-presentation-template

x-office-presentation-template

x-office-presentation-template

x-office-presentation

x-office-presentation

x-office-presentation

x-office-presentation

x-office-spreadsheet-template

x-office-spreadsheet-template

x-office-spreadsheet-template

x-office-spreadsheet-template

x-office-spreadsheet

x-office-spreadsheet

x-office-spreadsheet

x-office-spreadsheet

Table 8. places
Name 16 22 32

folder-remote

folder-remote

folder-remote

folder-remote

folder-saved-search

folder-saved-search

folder-saved-search

folder-saved-search

folder

folder

folder

folder

network-server

network-server

network-server

network-server

network-workgroup

network-workgroup

network-workgroup

network-workgroup

start-here

start-here

start-here

start-here

user-desktop

user-desktop

user-desktop

user-desktop

user-home

user-home

user-home

user-home

user-trash

user-trash

user-trash

user-trash

Table 9. status
Name 16 22 32

audio-volume-high

audio-volume-high

audio-volume-high

audio-volume-high

audio-volume-low

audio-volume-low

audio-volume-low

audio-volume-low

audio-volume-medium

audio-volume-medium

audio-volume-medium

audio-volume-medium

audio-volume-muted

audio-volume-muted

audio-volume-muted

audio-volume-muted

battery-caution

battery-caution

battery-caution

battery-caution

dialog-error

dialog-error

dialog-error

dialog-error

dialog-information

dialog-information

dialog-information

dialog-information

dialog-warning

dialog-warning

dialog-warning

dialog-warning

folder-drag-accept

folder-drag-accept

folder-drag-accept

folder-drag-accept

folder-open

folder-open

folder-open

folder-open

folder-visiting

folder-visiting

folder-visiting

folder-visiting

image-loading

image-loading

image-loading

image-loading

image-missing

image-missing

image-missing

image-missing

mail-attachment

mail-attachment

mail-attachment

mail-attachment

network-error

network-error

network-error

network-error

network-idle

network-idle

network-idle

network-idle

network-offline

network-offline

network-offline

network-offline

network-receive

network-receive

network-receive

network-receive

network-transmit-receive

network-transmit-receive

network-transmit-receive

network-transmit-receive

network-transmit

network-transmit

network-transmit

network-transmit

network-wireless-encrypted

network-wireless-encrypted

network-wireless-encrypted

network-wireless-encrypted

printer-error

printer-error

printer-error

printer-error

software-update-available

software-update-available

software-update-available

software-update-available

software-update-urgent

software-update-urgent

software-update-urgent

software-update-urgent

user-trash-full

user-trash-full

user-trash-full

user-trash-full

weather-clear-night

weather-clear-night

weather-clear-night

weather-clear-night

weather-clear

weather-clear

weather-clear

weather-clear

weather-few-clouds-night

weather-few-clouds-night

weather-few-clouds-night

weather-few-clouds-night

weather-few-clouds

weather-few-clouds

weather-few-clouds

weather-few-clouds

weather-overcast

weather-overcast

weather-overcast

weather-overcast

weather-severe-alert

weather-severe-alert

weather-severe-alert

weather-severe-alert

weather-showers-scattered

weather-showers-scattered

weather-showers-scattered

weather-showers-scattered

weather-showers

weather-showers

weather-showers

weather-showers

weather-snow

weather-snow

weather-snow

weather-snow

weather-storm

weather-storm

weather-storm

weather-storm