java.lang.Object
java.util.ResourceBundle
org.geotools.resources.ResourceBundle
org.geotools.resources.gui.Resources
- Direct Known Subclasses:
- Resources_el, Resources_en, Resources_fr, Resources_sp
- public class Resources
- extends org.geotools.resources.ResourceBundle
Base class for local-dependent resources. Instances of this class should
never been created directly. Use the factory method getResources(java.util.Locale) 55
or use static methods instead.
- Version:
- $Id: Resources.java,v 1.5 2003/02/09 23:38:12 lbruand Exp $
|
Constructor Summary |
|
Resources()
Construct a resource bundle using english language. |
(package private) |
Resources(java.lang.String filepath)
Construct a resource bundle
using the specified UTF8 file. |
|
Method Summary |
static java.lang.String |
format(int key)
Gets a string for the given key from this resource bundle or one of its
parents. |
static java.lang.String |
format(int key,
java.lang.Object arg0)
Gets a string for the given key are replace all occurence of "{0}"
with values of arg0. |
static java.lang.String |
format(int key,
java.lang.Object arg0,
java.lang.Object arg1)
Gets a string for the given key are replace all occurence of "{0}",
"{1}", with values of arg0, arg1. |
static java.lang.String |
format(int key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Gets a string for the given key are replace all occurence of "{0}",
"{1}", with values of arg0, arg1, etc. |
static Resources |
getResources(java.util.Locale locale)
Returns resources in the given locale. |
| Methods inherited from class org.geotools.resources.ResourceBundle |
getKeys, getLabel, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toString |
CVSID
public static final java.lang.String CVSID
- See Also:
- Constant Field Values
Resources
public Resources()
- Construct a resource bundle using english language.
This is the default when no resource are available
in user language.
Resources
Resources(java.lang.String filepath)
- Construct a resource bundle
using the specified UTF8 file.
getResources
public static Resources getResources(java.util.Locale locale)
throws java.util.MissingResourceException
- Returns resources in the given locale.
format
public static java.lang.String format(int key)
throws java.util.MissingResourceException
- Gets a string for the given key from this resource bundle or one of its
parents.
format
public static java.lang.String format(int key,
java.lang.Object arg0)
throws java.util.MissingResourceException
- Gets a string for the given key are replace all occurence of "{0}"
with values of
arg0.
format
public static java.lang.String format(int key,
java.lang.Object arg0,
java.lang.Object arg1)
throws java.util.MissingResourceException
- Gets a string for the given key are replace all occurence of "{0}",
"{1}", with values of
arg0, arg1.
format
public static java.lang.String format(int key,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
throws java.util.MissingResourceException
- Gets a string for the given key are replace all occurence of "{0}",
"{1}", with values of
arg0, arg1, etc.