public class mxResources extends Object
Modifier and Type | Field and Description |
---|---|
protected static LinkedList<ResourceBundle> |
bundles
Ordered list of the inserted resource bundles.
|
Constructor and Description |
---|
mxResources() |
Modifier and Type | Method and Description |
---|---|
static void |
add(String basename)
Adds a resource bundle.
|
static void |
add(String basename,
Locale locale)
Adds a resource bundle.
|
static String |
get(String key) |
static String |
get(String key,
String defaultValue) |
static String |
get(String key,
String[] params)
Returns the value for the specified resource key.
|
static String |
get(String key,
String[] params,
String defaultValue)
Returns the value for the specified resource key.
|
static LinkedList<ResourceBundle> |
getBundles()
Returns the bundles.
|
protected static String |
getResource(String key)
Returns the value for
key by searching the resource
bundles in inverse order or null if no value can be found
for key . |
static void |
setBundles(LinkedList<ResourceBundle> value)
Sets the bundles.
|
protected static LinkedList<ResourceBundle> bundles
public static LinkedList<ResourceBundle> getBundles()
public static void setBundles(LinkedList<ResourceBundle> value)
value
- The bundles to set.public static void add(String basename)
basename
- The basename of the resource bundle to add.public static void add(String basename, Locale locale)
basename
- The basename of the resource bundle to add.public static String get(String key, String[] params)
public static String get(String key, String[] params, String defaultValue)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.