| |
|
| java.lang.Object org.jfree.report.DefaultResourceBundleFactory
DefaultResourceBundleFactory | public class DefaultResourceBundleFactory implements ResourceBundleFactory(Code) | | A default implementation of the ResourceBundleFactory, that creates resource bundles using the specified locale.
If not defined otherwise, this implementation uses Locale.getDefault() as Locale.
author: Thomas Morgner |
Method Summary | |
public Locale | getLocale() Returns the locale that will be used to create the resource bundle. | public ResourceBundle | getResourceBundle(String key) Creates a resource bundle named by the given key and using the factory's defined locale.
Parameters: key - the name of the resourcebundle, never null. | public void | setLocale(Locale locale) Redefines the locale. |
DefaultResourceBundleFactory | public DefaultResourceBundleFactory()(Code) | | Creates a new DefaultResourceBundleFactory using the system's default locale as factory locale.
|
DefaultResourceBundleFactory | public DefaultResourceBundleFactory(Locale locale)(Code) | | Creates a new DefaultResourceBundleFactory using the specified locale as factory locale.
Parameters: locale - the Locale instance that should be used when creating ResourceBundles. throws: NullPointerException - if the given Locale is null. |
getLocale | public Locale getLocale()(Code) | | Returns the locale that will be used to create the resource bundle.
the locale. |
setLocale | public void setLocale(Locale locale)(Code) | | Redefines the locale. The locale given must not be null.
Parameters: locale - the new locale (never null). throws: NullPointerException - if the given locale is null. |
|
|
|