Package org.jdesktop.swingx.plaf
Class UIManagerExt.UIDefaultsExt
java.lang.Object
org.jdesktop.swingx.plaf.UIManagerExt.UIDefaultsExt
- Enclosing class:
UIManagerExt
Used to replicate the resource bundle behavior from the
UIDefaults
.-
Field Summary
FieldsModifier and TypeFieldDescriptionMaps from a Locale to a cached Map of the ResourceBundle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceBundle
(String bundleName) private Object
getFromResourceBundle
(Object key, Locale l) Returns a Map of the known resources for the given locale.void
removeResourceBundle
(String bundleName)
-
Field Details
-
resourceBundles
-
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
-
getResourceCache
Returns a Map of the known resources for the given locale. -
addResourceBundle
-
removeResourceBundle
-