com.retek.commons.gui.util
Class MnemonicTranslator

java.lang.Object
  extended bycom.retek.commons.gui.util.TranslatorManager
      extended bycom.retek.commons.gui.util.MnemonicTranslator

public class MnemonicTranslator
extends TranslatorManager

This class handles the translation of keys (indicating components in the application) and the mnemonic ALT-Keystroke associated to that key.

Retek Inc. Copyright (c) 2002


Field Summary
static java.lang.String APPLICATION_VIEW_CONCEPT
           
 
Fields inherited from class com.retek.commons.gui.util.TranslatorManager
EMPTY
 
Constructor Summary
MnemonicTranslator()
          Returns new MnemonicManager object.
MnemonicTranslator(java.util.Locale locale, java.lang.String filename)
          Returns new MnemonicManager object.
MnemonicTranslator(java.lang.String filename)
          Returns new MnemonicManager object.
 
Method Summary
 char getMnemonic(java.lang.String key)
          Retrieves the mnemonic character for the key.
 
Methods inherited from class com.retek.commons.gui.util.TranslatorManager
getBundle, getLocale, setBundle, setLocale, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_VIEW_CONCEPT

public static final java.lang.String APPLICATION_VIEW_CONCEPT
See Also:
Constant Field Values
Constructor Detail

MnemonicTranslator

public MnemonicTranslator()
Returns new MnemonicManager object.


MnemonicTranslator

public MnemonicTranslator(java.lang.String filename)
                   throws UiBundleException
Returns new MnemonicManager object.

Parameters:
filename - The filename of the properties file with mnemonic properties.
Throws:
UiBundleException - Thrown if the method fails to load the properties file.

MnemonicTranslator

public MnemonicTranslator(java.util.Locale locale,
                          java.lang.String filename)
                   throws UiBundleException
Returns new MnemonicManager object.

Parameters:
locale - The Locale to load the mnemonic translation for.
filename - The filename of the properties file with mnemonic properties.
Throws:
UiBundleException - Thrown if the method fails to load the properties file.
Method Detail

getMnemonic

public char getMnemonic(java.lang.String key)
Retrieves the mnemonic character for the key. If no translation exists, then '\0' is returned.

Parameters:
key - The key to translate into a mnemonic.
Returns:
The tranlated character mnemonic.


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28