|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

A facility for accessing resource bundles.
| Method Summary | |
|---|---|
String |
getString(String key)
Returns the string resource associated with the key. |
String |
getString(String key,
boolean translate)
Returns the string resource associated with the key. |
String |
getString(String key,
boolean translate,
Object... args)
Returns a string resource associated with the key, and performs substitutions. |
String |
getString(String key,
Object... args)
Returns a string resource associated with the key, and performs substitutions. |
void |
setShouldTranslate(boolean shouldTranslate)
Sets whether strings should be translated by default. |
boolean |
shouldTranslate()
Indicates whether strings should be translated by default. |
| Method Detail |
|---|
boolean shouldTranslate()
true if strings should be translated by default; false otherwise.void setShouldTranslate(boolean shouldTranslate)
shouldTranslate - whether strings should be translated by default.String getString(String key)
key - the key of the string resource.
String getString(String key,
boolean translate)
key - the key of the string resource.translate - whether the result is to be translated to the current locale.
String getString(String key,
Object... args)
key - the key of the string.args - the message substitutions.
getString(String),
MessageFormat.format(String, Object...)
String getString(String key,
boolean translate,
Object... args)
key - the key of the string.translate - whether the result is to be translated to the current locale.args - the message substitutions.
getString(String),
MessageFormat.format(String, Object[])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||