public class Strings
extends java.lang.Object
Bundles are searched from most- to least-recently added.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIALOG_SUFFIX
Resources whose name ends with this suffix (".dlg") will automatically
be formatted by the dialog formatter.
|
static java.lang.String |
TOOLTIP_SUFFIX
Resources whose name ends with this suffix (".tip") will automatically
be formatted by the tooltip formatter.
|
Modifier and Type | Method and Description |
---|---|
static void |
addBundle(java.util.ResourceBundle b)
Add the given
ResourceBundle as one to be searched. |
static java.util.ResourceBundle |
addBundle(java.lang.String name)
Add the given bundle to the list searched.
|
static java.util.ResourceBundle |
addBundle(java.lang.String name,
java.lang.ClassLoader cl)
Add the given bundle to the list searched, loading from the given
class loader.
|
static java.lang.String |
get(java.lang.String key)
Returns the localized String for the given key, or the key surrounded
by '#' if no corresponding localized string is found.
|
static java.lang.String |
get(java.lang.String key,
boolean optional)
Returns the localized string for the given key.
|
static java.lang.String |
get(java.lang.String key,
java.lang.Object... args)
Returns a formatted localized string for the given key and arguments,
or the key if no corresponding localized string is found.
|
public static final java.lang.String TOOLTIP_SUFFIX
public static final java.lang.String DIALOG_SUFFIX
public static java.util.ResourceBundle addBundle(java.lang.String name) throws java.util.MissingResourceException
java.util.MissingResourceException
public static java.util.ResourceBundle addBundle(java.lang.String name, java.lang.ClassLoader cl) throws java.util.MissingResourceException
java.util.MissingResourceException
public static void addBundle(java.util.ResourceBundle b)
ResourceBundle
as one to be searched.public static java.lang.String get(java.lang.String key)
public static java.lang.String get(java.lang.String key, boolean optional)
public static java.lang.String get(java.lang.String key, java.lang.Object... args)
MessageFormat
syntax for the format string and
arguments.
Abbot is hosted on