Extension SDK 10.1.2

oracle.ide.util
Class MenuCJKUtil

java.lang.Object
  extended byoracle.ide.util.MenuCJKUtil

public class MenuCJKUtil
extends java.lang.Object

Utility class to handle issues with menu labels and mnemonics in Chinese, Japanese, or Korean languages.


Constructor Summary
MenuCJKUtil()
           
 
Method Summary
static java.lang.String addSingleByteCharsForMnemonics(java.lang.String menuLabel)
          Ensures the string passed in contains single-byte characters that can be used for mnemonics.
static java.lang.String getCJKMenuLabel(java.lang.String label, int key)
           
static java.lang.String getCJKMenuLabel(java.lang.String label, java.lang.Integer mnemonic)
          Ensures the label used for the menu is correct in Chinese/Japanese/Korean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuCJKUtil

public MenuCJKUtil()
Method Detail

addSingleByteCharsForMnemonics

public static java.lang.String addSingleByteCharsForMnemonics(java.lang.String menuLabel)
Ensures the string passed in contains single-byte characters that can be used for mnemonics. This only appends the single-byte characters if the language is Chinese, Japanese, or Korean; otherwise it just passes back what was input.

Returns:
the string for the menu label with single-byte characters added so that the MnemonicSolver can determine a mnemonic to use.

getCJKMenuLabel

public static java.lang.String getCJKMenuLabel(java.lang.String label,
                                               java.lang.Integer mnemonic)
Ensures the label used for the menu is correct in Chinese/Japanese/Korean. In these languages the menu mnemonic should be in the form of

getCJKMenuLabel

public static java.lang.String getCJKMenuLabel(java.lang.String label,
                                               int key)

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.