40 import java.awt.event.ActionListener; 41 import java.awt.event.InvocationEvent; 42 import java.awt.im.spi.InputMethodDescriptor; 43 import java.lang.reflect.InvocationTargetException; 44 import java.security.AccessController; 45 import java.security.PrivilegedAction; 46 import java.security.PrivilegedActionException; 47 import java.security.PrivilegedExceptionAction; 48 import java.util.Hashtable; 49 import java.util.Iterator; 50 import java.util.Locale; 51 import java.util.ServiceLoader; 52 import java.util.Vector; 53 import java.util.Set; 54 import java.util.prefs.BackingStoreException; 55 import java.util.prefs.Preferences; 56 import sun.awt.InputMethodSupport; 57 import sun.awt.SunToolkit; 58 59 /** 60 * <code>ExecutableInputMethodManager</code> is the implementation of the 61 * <code>InputMethodManager</code> class. It is runnable as a separate 62 * thread in the AWT environment. 63 * <code>InputMethodManager.getInstance()</code> creates an instance of 64 * <code>ExecutableInputMethodManager</code> and executes it as a deamon 65 * thread. 66 * 67 * @see InputMethodManager 68 */ 69 class ExecutableInputMethodManager extends InputMethodManager 70 implements Runnable 71 { 72 // the input context that's informed about selections from the user interface 73 private InputContext currentInputContext; 74 75 // Menu item string for the trigger menu. 76 private String triggerMenuString; 77 78 // popup menu for selecting an input method 79 private InputMethodPopupMenu selectionMenu; 80 private static String selectInputMethodMenuTitle; 81 82 // locator and name of host adapter 83 private InputMethodLocator hostAdapterLocator; 84 | 40 import java.awt.event.ActionListener; 41 import java.awt.event.InvocationEvent; 42 import java.awt.im.spi.InputMethodDescriptor; 43 import java.lang.reflect.InvocationTargetException; 44 import java.security.AccessController; 45 import java.security.PrivilegedAction; 46 import java.security.PrivilegedActionException; 47 import java.security.PrivilegedExceptionAction; 48 import java.util.Hashtable; 49 import java.util.Iterator; 50 import java.util.Locale; 51 import java.util.ServiceLoader; 52 import java.util.Vector; 53 import java.util.Set; 54 import java.util.prefs.BackingStoreException; 55 import java.util.prefs.Preferences; 56 import sun.awt.InputMethodSupport; 57 import sun.awt.SunToolkit; 58 59 /** 60 * {@code ExecutableInputMethodManager} is the implementation of the 61 * {@code InputMethodManager} class. It is runnable as a separate 62 * thread in the AWT environment. 63 * {@code InputMethodManager.getInstance()} creates an instance of 64 * {@code ExecutableInputMethodManager} and executes it as a deamon 65 * thread. 66 * 67 * @see InputMethodManager 68 */ 69 class ExecutableInputMethodManager extends InputMethodManager 70 implements Runnable 71 { 72 // the input context that's informed about selections from the user interface 73 private InputContext currentInputContext; 74 75 // Menu item string for the trigger menu. 76 private String triggerMenuString; 77 78 // popup menu for selecting an input method 79 private InputMethodPopupMenu selectionMenu; 80 private static String selectInputMethodMenuTitle; 81 82 // locator and name of host adapter 83 private InputMethodLocator hostAdapterLocator; 84 |