org.arch4j.ui.util
Class IconManager
java.lang.Object
|
+--org.arch4j.ui.util.IconManager
- public class IconManager
- extends Object
This static singleton class provides cached access to icons. Users of this code will call
the getIcon(String iconName) method to get an ImageIcon. The iconName is the name of a
graphic file, minus the gif extension, that can be found in the /icons/ directory.
The file type and directory may someday be pulled out into a property file and
defaulted to these values. Once an ImageIcon is loaded for the first time it is added
to the cache to speed up subsequent requests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filePath
public static String filePath
iconCache
public static Hashtable iconCache
IconManager
public IconManager()
getIcon
public static ImageIcon getIcon(String iconName)
getIconFilename
public static String getIconFilename(String iconName)
loadIcon
public static Image loadIcon(String imageFileName)
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.