Module org.jhotdraw8.application
Class ClasspathResources
java.lang.Object
java.util.ResourceBundle
org.jhotdraw8.application.resources.ClasspathResources
- All Implemented Interfaces:
Serializable,Resources
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
Fields inherited from interface org.jhotdraw8.application.resources.Resources
PARENT_RESOURCE_KEY -
Constructor Summary
ConstructorsConstructorDescriptionClasspathResources(@NonNull String baseName, @NonNull Locale locale) Creates a new ClasspathResources object which wraps the provided resource bundle. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(@Nullable String key) Class<?> getKeys()Returns a java.lang.Module if the resources have been created with named Java module on a Java VM that supports modules.getResources(@NonNull String baseName) Get the appropriate ResourceBundle subclass.voidtoString()Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.application.resources.Resources
configureAction, configureAction, configureButton, configureButton, configureMenu, configureMenuItem, configureToolBarButton, configureToolBarButton, format, getAcceleratorProperty, getFormatted, getInteger, getKeyCombination, getLargeIconProperty, getMnemonic, getMnemonicProperty, getRoot, getSmallIconProperty, getString, getTextProperty, getToolTipTextProperty, messageFormat, substitutePlaceholders, translateKeyStrokeToKeyCombination
-
Constructor Details
-
ClasspathResources
Creates a new ClasspathResources object which wraps the provided resource bundle.- Parameters:
baseName- the base namelocale- the locale
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceResources- Overrides:
containsKeyin classResourceBundle
-
getBaseClass
- Specified by:
getBaseClassin interfaceResources
-
getModule
Description copied from interface:ResourcesReturns a java.lang.Module if the resources have been created with named Java module on a Java VM that supports modules. -
handleGetObject
- Specified by:
handleGetObjectin classResourceBundle
-
handleGetObjectRecursively
- Specified by:
handleGetObjectRecursivelyin interfaceResources
-
toString
-
getBaseName
- Specified by:
getBaseNamein interfaceResources
-
getResources
public static @NonNull Resources getResources(@NonNull String baseName) throws MissingResourceException Get the appropriate ResourceBundle subclass.- Parameters:
baseName- the base name- Returns:
- the resource bundle
- Throws:
MissingResourceException- See Also:
-
asResourceBundle
- Specified by:
asResourceBundlein interfaceResources
-
getLocale
- Specified by:
getLocalein interfaceResources- Overrides:
getLocalein classResourceBundle
-
getKeys
- Specified by:
getKeysin interfaceResources- Specified by:
getKeysin classResourceBundle
-
getParent
-
setParent
-