Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.ide.util
Class MenuCJKUtil

java.lang.Object
  extended by oracle.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.
Parameters:
the - string to be used for a menu label
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

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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