|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.WResources
Provides access to values within resource bundles.
Method Summary | |
static void |
clear()
Clears the internal resource bundle cache. |
static ResourceBundle |
getBundle(Locale locale,
String bundleName)
Returns a resource bundle for the specified bundle name and locale. |
static String |
getText(Locale locale,
String bundleName,
String key)
Returns text for the specified resource. |
static String |
getText(Locale locale,
String bundleName,
String key,
List args)
Returns text for the specified resource constructed with the specified arguments. |
static String |
getText(Locale locale,
String bundleName,
String key,
Object arg0)
Returns text for the specified resource constructed with the specified argument. |
static String |
getText(Locale locale,
String bundleName,
String key,
Object[] args)
Returns text for the specified resource constructed with the specified arguments. |
static String |
getText(Locale locale,
String bundleName,
String key,
Object arg0,
Object arg1)
Returns text for the specified resource constructed with the specified arguments. |
static String |
getText(Locale locale,
String bundleName,
String key,
Object arg0,
Object arg1,
Object arg2)
Returns text for the specified resource constructed with the specified arguments. |
static boolean |
isCacheOn()
Returns true if resource bundle caching is on, false otherwise. |
static void |
setCacheOn(boolean cacheOn)
Turns resource bundle caching on or off. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ResourceBundle getBundle(Locale locale, String bundleName)
locale
- the locale.bundleName
- the name of the bundle.
public static String getText(Locale locale, String bundleName, String key)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.
public static String getText(Locale locale, String bundleName, String key, Object[] args)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.args
- the arguments with which to construct the resulting text.
public static String getText(Locale locale, String bundleName, String key, List args)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.args
- the arguments with which to construct the resulting text.
public static String getText(Locale locale, String bundleName, String key, Object arg0)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.arg0
- the argument with which to construct the resulting text.
public static String getText(Locale locale, String bundleName, String key, Object arg0, Object arg1)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.arg0
- the first argument with which to construct the resulting text.arg1
- the second argument with which to construct the resulting text.
public static String getText(Locale locale, String bundleName, String key, Object arg0, Object arg1, Object arg2)
locale
- the locale.bundleName
- the name of the resource bundle.key
- the name of the resource.arg0
- the first argument with which to construct the resulting text.arg1
- the second argument with which to construct the resulting text.arg2
- the third argument with which to construct the resulting text.
public static boolean isCacheOn()
public static void setCacheOn(boolean cacheOn)
cacheOn
- true indicates caching is on, false indicates caching is off.public static void clear()
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |