Package diva.gui

Class ApplicationResources


  • @Deprecated
    public class ApplicationResources
    extends java.util.ResourceBundle
    Deprecated.
    Use diva.resource.DefaultBundle instead.
    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.
    Version:
    $Id$
    Author:
    John Reekie
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Field Summary

      • Fields inherited from class java.util.ResourceBundle

        parent
    • Constructor Summary

      Constructors 
      Constructor Description
      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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      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

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationResources

        public ApplicationResources()
        Deprecated.
        Create a new ApplicationResources object containing the default Diva GUI resources.
      • ApplicationResources

        public 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 Detail

      • getResource

        public java.net.URL getResource​(java.lang.String key)
        Deprecated.
        Get a resource as an absolute URL.
      • getImageIcon

        public javax.swing.ImageIcon getImageIcon​(java.lang.String key)
        Deprecated.
        Get a resource as an image icon. The name of the resource is formed by appending "Image" to the given key. Return null if not found. (Or should this throw an exception?)
      • getImage

        public java.awt.Image getImage​(java.lang.String key)
        Deprecated.
        Get a resource as an image. The name of the resource is formed by appending "Image" to the given key. Return null if not found. (Or should this throw an exception?)
      • handleGetObject

        protected java.lang.Object handleGetObject​(java.lang.String key)
                                            throws java.util.MissingResourceException
        Deprecated.
        Get an object from a ResourceBundle.
        Specified by:
        handleGetObject in class java.util.ResourceBundle
        Throws:
        java.util.MissingResourceException
      • getKeys

        public java.util.Enumeration getKeys()
        Deprecated.
        Get an enumeration over the keys
        Specified by:
        getKeys in class java.util.ResourceBundle