|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.translation.Translations
public class Translations
This class hold the translations and options for translation of a single report (Engine).
Engine.getTranslations(),
Serialized Form| Method Summary | |
|---|---|
java.util.List |
getAvailableLocales()
Get a list of all available translation locales in this report. |
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale)
Request a resource bundle for translation the current report. |
java.lang.String |
getResourceBundleName()
Get the base name of the ResourceBundle |
java.util.Properties |
getTranslation(java.util.Locale locale)
Request the property of a translation for the given locale. |
boolean |
isUseParagraph()
Get the flag useParagraph. |
void |
setResourceBundleName(java.lang.String name)
Set an optional ResourceBundle. |
void |
setTranslation(java.util.Locale locale,
java.util.Properties props)
Set a new translation for the current report/engine or remove it. |
void |
setUseParagraph(boolean useParagraph)
Set the flag useParagraph. |
| Method Detail |
|---|
public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
locale - the locale for which a resource bundle is desired, can not be null
public java.util.Properties getTranslation(java.util.Locale locale)
locale - the locale for which a translation is desired, can not be null
getAvailableLocales(),
setTranslation(Locale, Properties)
public void setTranslation(java.util.Locale locale,
java.util.Properties props)
locale - the locale of the translationprops - the new key/value pairs. The required keys can be request via Translator.listLabels(boolean).
A value of null remove it.getTranslation(Locale)public java.util.List getAvailableLocales()
setTranslation(Locale, Properties)public void setUseParagraph(boolean useParagraph)
useParagraph - the value of the flag useParagraph.isUseParagraph(),
Translator.listLabels(boolean)public boolean isUseParagraph()
setUseParagraph(boolean)public void setResourceBundleName(java.lang.String name)
name - the base name of the ResourceBundle or nullgetResourceBundleName()public java.lang.String getResourceBundleName()
setResourceBundleName(String)
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||