|
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.Translator
public class Translator
This class hold all methods for translation of an Engine. It list all text parts of an engine that can be translate and at runtime translates all parts which do not change the structure.
| Constructor Summary | |
|---|---|
Translator(Engine engine)
Create a new translator for the given Engine. |
|
| Method Summary | |
|---|---|
java.util.Set |
listLabels(boolean useParagraph)
List all string that can be translated (i.e. labels, prompts and report title). |
void |
translate(java.util.ResourceBundle languageResource,
boolean useParagraph)
Translate all labels and the report title of the engine. |
| Constructor Detail |
|---|
public Translator(Engine engine)
engine - the Engine, the instance must not be null and the instance must not have been executed and must hold a loaded
report| Method Detail |
|---|
public java.util.Set listLabels(boolean useParagraph)
throws ReportException
useParagraph - true, then a paragraph is translated in one step.
ReportException - if Engine is finished or no report is set.Translations.setUseParagraph(boolean)
public void translate(java.util.ResourceBundle languageResource,
boolean useParagraph)
throws ReportException
languageResource - the translation resourceuseParagraph - true, then a paragraph is translated in one step.
ReportException - if Engine is finished or no report is set.Translations.setUseParagraph(boolean)
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||