Package com.dassault_systemes.pprnblcabase.utils |
java.lang.Object
|
+-com.dassault_systemes.pprnblcabase.utils.LCACATTranslator
Framework : PPRJNavigatorBase
Module : PPRNBLcaBase
public class LCACATTranslator
Interface to support National Language Support considerations
for combo box selections.
All Implemented Interfaces:
CATITranslator
LCACATTranslator(Hashtable iInternal2External, Hashtable iExternal2Internal)
|
LCACATTranslator(String[] iInternalValues, String[] iExternalValues, boolean iSupportExt2Int)
|
_Int2Ext
Hashtable _Int2Ext
_Ext2Int
Hashtable _Ext2Int
LCACATTranslator
LCACATTranslator(Hashtable iInternal2External, Hashtable iExternal2Internal)
Constructs the translator instance with the two mappings.
LCACATTranslator
LCACATTranslator(String[] iInternalValues, String[] iExternalValues, boolean iSupportExt2Int)
Constructs the translator instance with the two mappings.
If there are multiple external values for the same internal value,
the first value will be used for the internal to external mapping.
Likewise if there are multiple internal values for the same external value.
translate
String translate(CATDialog iDialog, String iTag)
Returns the localized string
The session locale can be retreived from iSession.getLocale()
internal2external
String internal2external(CATDialog iDialog, String iInternalValue)
Computes the external translated value given an internal value.
If there is no translation for the value, the input value should
be returned.
iInternalValue : the internal string value
external2internal
String external2internal(CATDialog iDialog, String iExternalValue)
Computes the internal value given an external translated value.
If there is no translation for the value, the input value should
be returned.
iExternalValue : the externally translated string value
Copyright © 2000, Dassault Systèmes. All rights reserved