net.sf.dc.core.objects
Class IconCache

java.lang.Object
  extended bynet.sf.dc.core.objects.IconCache

public class IconCache
extends java.lang.Object

Caches small icons retrieved from the database

Since:
1.3
Version:
DC1.00
Author:
Robert-Jan van der Waals

Constructor Summary
IconCache()
           
 
Method Summary
static javax.swing.ImageIcon getIconForId(java.lang.String sID)
          Return the icon for the object with the given ID
static void refresh()
          Refreshes the cached icons for the Software Categories The icons are loaded from the database and then stored in a hashtable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconCache

public IconCache()
Method Detail

refresh

public static void refresh()
Refreshes the cached icons for the Software Categories The icons are loaded from the database and then stored in a hashtable. Key = object ID / Value = image icon


getIconForId

public static javax.swing.ImageIcon getIconForId(java.lang.String sID)
Return the icon for the object with the given ID

Parameters:
sID - Object ID