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
protected Hashtable _Ext2Int
protected Hashtable _Int2Ext

Constructor Summary
LCACATTranslator(Hashtable iInternal2External, Hashtable iExternal2Internal)
Constructs the translator instance with the two mappings.
LCACATTranslator(String[] iInternalValues, String[] iExternalValues, boolean iSupportExt2Int)
Constructs the translator instance with the two mappings.

Method Summary
public String external2internal(CATDialog iDialog, String iExternalValue)
Computes the internal value given an external translated value.
public String internal2external(CATDialog iDialog, String iInternalValue)
Computes the external translated value given an internal value.
public String translate(CATDialog iDialog, String iTag)
Returns the localized string The session locale can be retreived from iSession.getLocale()


Field Detail

_Ext2Int

    protected Hashtable _Ext2Int


_Int2Ext

    protected Hashtable _Int2Ext


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

external2internal

    public 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


internal2external

    public 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


translate

    public String translate(CATDialog iDialog, String iTag)

Returns the localized string The session locale can be retreived from iSession.getLocale()



Copyright © 2000, Dassault Systèmes. All rights reserved