Package com.dassault_systemes.pprnblcabase.utils

   
Class LCACATTranslator

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.pprnblcabase.utils.LCACATTranslator
Class Location

Framework : PPRJNavigatorBase

Module : PPRNBLcaBase

Class Description

public class LCACATTranslator

Interface to support National Language Support considerations for combo box selections.

   All Implemented Interfaces:
CATITranslator
Field Summary
Hashtable _Int2Ext
Hashtable _Ext2Int

Constructor Summary
LCACATTranslator(Hashtable iInternal2External, Hashtable iExternal2Internal)
LCACATTranslator(String[] iInternalValues, String[] iExternalValues, boolean iSupportExt2Int)

Method Summary
String translate(CATDialog iDialog, String iTag)
String internal2external(CATDialog iDialog, String iInternalValue)
String external2internal(CATDialog iDialog, String iExternalValue)


Field Detail

_Int2Ext

    Hashtable _Int2Ext


_Ext2Int

    Hashtable _Ext2Int


Constructor Detail

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.


Method Detail

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