net.sf.doolin.gui.service.icon
Class SimpleIconService

java.lang.Object
  extended by net.sf.doolin.gui.service.icon.AbstractIconService
      extended by net.sf.doolin.gui.service.icon.DefaultIconService
          extended by net.sf.doolin.gui.service.icon.SimpleIconService
All Implemented Interfaces:
IconService, org.springframework.beans.factory.InitializingBean

public class SimpleIconService
extends DefaultIconService
implements org.springframework.beans.factory.InitializingBean

This icon manager is using a property file that maps the icon ids to a resource path. No size is taken into account.

Author:
Damien Coraboeuf

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.doolin.gui.service.icon.AbstractIconService
AbstractIconService.IconItem
 
Constructor Summary
SimpleIconService()
           
 
Method Summary
 void afterPropertiesSet()
          
 String getPrefix()
          Gets the prefix.
 Map<String,String> getProperties()
          Gets the properties.
 void setPrefix(String prefix)
          Sets the resource path prefix.
 void setProperties(Map<String,String> properties)
          Sets the index of icon paths per icon id.
 
Methods inherited from class net.sf.doolin.gui.service.icon.DefaultIconService
loadIconObject, toURL
 
Methods inherited from class net.sf.doolin.gui.service.icon.AbstractIconService
getIcon, getIconDefinitions, getIconURL, init, load, setIconDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIconService

public SimpleIconService()
Method Detail

getPrefix

public String getPrefix()
Gets the prefix.

Returns:
the prefix

setPrefix

public void setPrefix(String prefix)
Sets the resource path prefix.

Parameters:
prefix - the new prefix

getProperties

public Map<String,String> getProperties()
Gets the properties.

Returns:
the properties

setProperties

public void setProperties(Map<String,String> properties)
Sets the index of icon paths per icon id.

Parameters:
properties - the properties

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2011. All Rights Reserved.