Class UIManagerExt.UIDefaultsExt

java.lang.Object
org.jdesktop.swingx.plaf.UIManagerExt.UIDefaultsExt
Enclosing class:
UIManagerExt

private static class UIManagerExt.UIDefaultsExt extends Object
Used to replicate the resource bundle behavior from the UIDefaults.
  • Field Details

    • resourceBundles

      private Vector<String> resourceBundles
    • resourceCache

      private Map<Locale,Map<String,String>> resourceCache
      Maps from a Locale to a cached Map of the ResourceBundle. This is done so as to avoid an exception being thrown when a value is asked for. Access to this should be done while holding a lock on the UIDefaults, eg synchronized(this).
  • Constructor Details

    • UIDefaultsExt

      UIDefaultsExt()
  • Method Details

    • getFromResourceBundle

      private Object getFromResourceBundle(Object key, Locale l)
    • getResourceCache

      private Map<String,String> getResourceCache(Locale l)
      Returns a Map of the known resources for the given locale.
    • addResourceBundle

      public void addResourceBundle(String bundleName)
    • removeResourceBundle

      public void removeResourceBundle(String bundleName)