|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.output.UICTranslator
This translator enabled the generated classes to use the uic.Translate class for translations.
Translate
Constructor Summary | |
UICTranslator()
|
Method Summary | |
Representer |
getButtonText(Object in)
In modern GUIs the '&' in front of a character represents a mnemonic; but should not be visible on buttons; this method returns the string sans the '&'. |
Representer |
getMnemonic(Object in)
In modern GUIs the '&' in front of a character represents a mnemonic; but should not be visible on buttons; this method returns the first character that follows the first '& char. |
Representer |
i18n(Object in)
The usage of this method (in implementing classes) would be to translate text from the user-interface input file to the output. |
void |
setBuilder(UICBuilder builder)
To access the class you are suppost to do internatialisation for here is the builder.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UICTranslator()
Method Detail |
public void setBuilder(UICBuilder builder)
TranslatorInterface
setBuilder
in interface TranslatorInterface
public Representer i18n(Object in) throws IllegalArgumentException
TranslatorInterface
The usage of this method (in implementing classes) would be to translate text from the user-interface input file to the output. A simple example is that the implementation of this method will translate 'back' to 'terug' since my dictionairy says that that is the translation for my locale.
Most i18n implementions do the translation of strings at runtime.
i18n
in interface TranslatorInterface
IllegalArgumentException
- this method only takes strings; but since this method
will most certainly be used in combination with Hashtable we allow Object to
shorten the code.public Representer getButtonText(Object in)
TranslatorInterface
getButtonText
in interface TranslatorInterface
public Representer getMnemonic(Object in)
TranslatorInterface
getMnemonic
in interface TranslatorInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |