|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface OMBundle.TranslationSupport
Method Summary | |
---|---|
java.lang.String |
getString(java.lang.String key)
Returns the string resource associated with the key. |
java.lang.String |
getString(java.lang.String key,
boolean translate)
Returns the string resource associated with the key. |
java.lang.String |
getString(java.lang.String key,
boolean translate,
java.lang.Object... args)
Returns a string resource associated with the key, and performs substitutions. |
java.lang.String |
getString(java.lang.String key,
java.lang.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.java.lang.String getString(java.lang.String key)
key
- the key of the string resource.
java.lang.String getString(java.lang.String key, boolean translate)
key
- the key of the string resource.translate
- whether the result is to be translated to the current locale.
java.lang.String getString(java.lang.String key, java.lang.Object... args)
key
- the key of the string.args
- the message substitutions.
getString(String)
,
MessageFormat.format(String, Object...)
java.lang.String getString(java.lang.String key, boolean translate, java.lang.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[])
|
Copyright (c) 2004 - 2008 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |