Package org.apache.batik.ext.swing
Class Resources
- java.lang.Object
-
- org.apache.batik.ext.swing.Resources
-
public class Resources extends java.lang.ObjectThis class manages the message for the Swing extensions.- Version:
- $Id: Resources.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalizableSupportlocalizableSupportThe localizable support for the error messages.protected static ResourceManagerresourceManagerThe resource manager to decode messages.protected static java.lang.StringRESOURCESThe error messages bundle class name.
-
Constructor Summary
Constructors Modifier Constructor Description protectedResources()This class does not need to be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatMessage(java.lang.String key, java.lang.Object[] args)ImplementsLocalizable.formatMessage(String,Object[]).static intgetInteger(java.lang.String key)static java.util.LocalegetLocale()ImplementsLocalizable.getLocale().static java.lang.StringgetString(java.lang.String key)static voidsetLocale(java.util.Locale l)ImplementsLocalizable.setLocale(Locale).
-
-
-
Field Detail
-
RESOURCES
protected static final java.lang.String RESOURCES
The error messages bundle class name.- See Also:
- Constant Field Values
-
localizableSupport
protected static LocalizableSupport localizableSupport
The localizable support for the error messages.
-
resourceManager
protected static ResourceManager resourceManager
The resource manager to decode messages.
-
-
Method Detail
-
setLocale
public static void setLocale(java.util.Locale l)
ImplementsLocalizable.setLocale(Locale).
-
getLocale
public static java.util.Locale getLocale()
ImplementsLocalizable.getLocale().
-
formatMessage
public static java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceExceptionImplementsLocalizable.formatMessage(String,Object[]).- Throws:
java.util.MissingResourceException
-
getString
public static java.lang.String getString(java.lang.String key) throws java.util.MissingResourceException- Throws:
java.util.MissingResourceException
-
getInteger
public static int getInteger(java.lang.String key) throws java.util.MissingResourceException- Throws:
java.util.MissingResourceException
-
-