Famfamfam Silk Icons addon for Vaadin provides you with the ability to use your Vaadin UI components with the image icons by Mark James, e.g. like this:
Famfamfam Silk free icons set contains 1000 image icons, you may see them in the preview.
Just set the icon to any standard Vaadin UI component using its setIcon()
method.
You can use the class Fam3SilkIcon with enumerated all the icons from the set, example of usage:
Button button = new Button();
button.setCaption("OK");
button.setIcon(Fam3SilkIcon.ACCEPT);
Alternatively you may use class Fam3SilkIcons to get the icon by its filename (comparing to above, this approach does not load all the icons from the set into memory). Example of usage by specifying filename:
ExternalResource icon = Fam3SilkIcons.get("accept.png");
Button button = new Button();
button.setCaption("OK");
button.setIcon(icon);
Add following Maven dependency into your pom.xml:
<dependency>
<groupId>org.rubicone.vaddons</groupId>
<artifactId>fam3-silk-icons</artifactId>
<version>1.0</version>
</dependency>
Official releases of this add-on are available at Vaadin Directory. For Maven instructions, download and reviews, go to https://vaadin.com/addon/fam3-silk-icons
git clone https://github.com/bienjaroslav/vaadin-fam3-silk-icons-addon.git
mvn clean install
cd demo
mvn jetty:run
To see the demo, navigate to http://localhost:8080/
Alternatively you may deploy the demo war into your application server.
You can see the online demo on Heroku.
The Famfamfam Silk Icons are created by Mark James. The icons version currently included is 1.3.
Note on icons license: The Famfamfam Silk Icons by Mark James are available under a Creative Commons Attribution 2.5 License. You are free to use the icons. Please do not forget to provide attribution in your work (see famfamfam website for further details).