|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.ResourceManager
public final class ResourceManager
A simple resource manager implementation for Insight. This implementation starts with loading images, but can be extended for i18n implementation later.
Method Summary | |
---|---|
java.util.Locale |
getDefaultLocale()
|
static ResourceManager |
getInstance()
Gets the singleton instance of the resource manager. |
javax.swing.ImageIcon |
loadImageIcon(java.lang.String imageKey)
Loads an image from the classpath with the relative key passed in. |
javax.swing.ImageIcon |
loadImageIcon(java.lang.String imageKey,
java.lang.ClassLoader classLoader)
Loads an image icon using the image key passed in and the class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResourceManager getInstance()
public javax.swing.ImageIcon loadImageIcon(java.lang.String imageKey)
imageKey
- The key to the image
public javax.swing.ImageIcon loadImageIcon(java.lang.String imageKey, java.lang.ClassLoader classLoader)
imageKey
- The key to the imageclassLoader
- The classloader to use
public java.util.Locale getDefaultLocale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |