|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.ResourceBundle
diva.gui.ApplicationResources
public class ApplicationResources
A class for helping to manage application resources. This class is an extension to the standard ResourceBundle that allows to construct ResourceBundles that "override" other resource bundles. Thus, an abstract application class can have a set of default resources, and a particular application subclass can add its own resources to override the defaults where appropriate.
Field Summary | |
---|---|
private java.lang.Class |
_class
Deprecated. The class that is to be used to look up URL resources from this bundle. |
private java.util.ResourceBundle |
_delegate
Deprecated. The actual ResourceBundle |
private java.util.HashMap |
_imageIcons
Deprecated. Icons that have already been loaded |
Fields inherited from class java.util.ResourceBundle |
---|
parent |
Constructor Summary | |
---|---|
ApplicationResources()
Deprecated. Create a new ApplicationResources object containing the default Diva GUI resources. |
|
ApplicationResources(java.lang.String baseName,
java.lang.Class withLoader,
java.util.ResourceBundle overrides)
Deprecated. Create a new ApplicationResources object using the given basename, with the given class as the loader for URL-based resources, and with the given ResourceBundle as the one that gets overridden. |
Method Summary | |
---|---|
java.awt.Image |
getImage(java.lang.String key)
Deprecated. Get a resource as an image. |
javax.swing.ImageIcon |
getImageIcon(java.lang.String key)
Deprecated. Get a resource as an image icon. |
java.util.Enumeration |
getKeys()
Deprecated. Get an enumeration over the keys |
java.net.URL |
getResource(java.lang.String key)
Deprecated. Get a resource as an absolute URL. |
protected java.lang.Object |
handleGetObject(java.lang.String key)
Deprecated. Get an object from a ResourceBundle. |
Methods inherited from class java.util.ResourceBundle |
---|
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Class _class
private java.util.HashMap _imageIcons
private java.util.ResourceBundle _delegate
Constructor Detail |
---|
public ApplicationResources()
public ApplicationResources(java.lang.String baseName, java.lang.Class withLoader, java.util.ResourceBundle overrides)
Method Detail |
---|
public java.net.URL getResource(java.lang.String key)
public javax.swing.ImageIcon getImageIcon(java.lang.String key)
public java.awt.Image getImage(java.lang.String key)
protected java.lang.Object handleGetObject(java.lang.String key) throws java.util.MissingResourceException
handleGetObject
in class java.util.ResourceBundle
java.util.MissingResourceException
public java.util.Enumeration getKeys()
getKeys
in class java.util.ResourceBundle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |