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