ExecutableInputMethodManager is the implementation of the
InputMethodManager class. It is runnable as a separate
thread in the AWT environment.
InputMethodManager.getInstance() creates an instance of
ExecutableInputMethodManager and executes it as a daemon
thread.
InputMethodManager
| Modifier and Type | Field and Description |
|---|---|
| private InputContext | |
| private static final String | |
| private InputMethodLocator | |
| private int | |
| private Vector | |
| private static final String | |
| private Hashtable | |
| private Component | |
| private InputContext | |
| private static String | |
| private InputMethodPopupMenu | |
| private String | |
| private Preferences |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| private String | |
| pack-priv InputMethodLocator | findInputMethod(Locale locale)
Implements abstract sun. Tries to find an input method locator for the given locale. |
| private String | |
| private Locale | |
| private String | |
| pack-priv Locale | getDefaultKeyboardLocale()
Implements abstract sun. Gets the default keyboard locale of the underlying operating system. |
| private synchronized InputMethodLocator | getPreferredInputMethod(Locale
Locale for which the user prefers the input method. locale)Returns a InputMethodLocator object that the user prefers for the given locale. |
| public String | getTriggerMenuString()
Implements abstract sun. Gets a string for the trigger menu item that should be added to the window manager menu. |
| private Preferences | |
| pack-priv boolean | hasMultipleInputMethods()
Implements abstract sun. Returns whether multiple input methods are available or not |
| pack-priv synchronized void | |
| private void | |
| public synchronized void | notifyChangeRequest(Component comp)
Implements abstract sun. Notifies InputMethodManager that input method change has been requested by the user. |
| public synchronized void | notifyChangeRequestByHotKey(Component comp)
Implements abstract sun. Notifies InputMethodManager that input method change has been requested by the user using the hot key combination. |
| private synchronized void | putPreferredInputMethod(InputMethodLocator
input method locator to remember. locator)Writes the preferred input method descriptor class name into the user's Preferences tree in accordance with the given locale. |
| private String | |
| public void | |
| pack-priv void | setInputContext(InputContext inputContext)
Implements abstract sun. Sets the current input context so that it will be notified of input method changes initiated from the user interface. |
| private void | |
| private void | |
| private synchronized void | |
| private void |
| currentInputContext | back to summary |
|---|---|
| private InputContext currentInputContext | |
| descriptorKey | back to summary |
|---|---|
| private static final String descriptorKey | |
| hostAdapterLocator | back to summary |
|---|---|
| private InputMethodLocator hostAdapterLocator | |
| javaInputMethodCount | back to summary |
|---|---|
| private int javaInputMethodCount | |
| javaInputMethodLocatorList | back to summary |
|---|---|
| private Vector<InputMethodLocator> javaInputMethodLocatorList | |
| preferredIMNode | back to summary |
|---|---|
| private static final String preferredIMNode | |
| preferredLocatorCache | back to summary |
|---|---|
| private Hashtable<String, InputMethodLocator> preferredLocatorCache | |
| requestComponent | back to summary |
|---|---|
| private Component requestComponent | |
| requestInputContext | back to summary |
|---|---|
| private InputContext requestInputContext | |
| selectInputMethodMenuTitle | back to summary |
|---|---|
| private static String selectInputMethodMenuTitle | |
| selectionMenu | back to summary |
|---|---|
| private InputMethodPopupMenu selectionMenu | |
| triggerMenuString | back to summary |
|---|---|
| private String triggerMenuString | |
| userRoot | back to summary |
|---|---|
| private Preferences userRoot | |
| ExecutableInputMethodManager | back to summary |
|---|---|
| pack-priv ExecutableInputMethodManager() | |
| changeInputMethod | back to summary |
|---|---|
| pack-priv synchronized void changeInputMethod(String choice) | |
| createLocalePath | back to summary |
|---|---|
| private String createLocalePath(Locale locale) | |
| findInputMethod | back to summary |
|---|---|
| pack-priv InputMethodLocator findInputMethod(Locale locale) Implements abstract sun. Doc from sun. Tries to find an input method locator for the given locale. Returns null if no available input method locator supports the locale. | |
| findPreferredInputMethodNode | back to summary |
|---|---|
| private String findPreferredInputMethodNode(Locale locale) | |
| getAdvertisedLocale | back to summary |
|---|---|
| private Locale getAdvertisedLocale(InputMethodLocator locator, Locale locale) | |
| getCurrentSelection | back to summary |
|---|---|
| private String getCurrentSelection() | |
| getDefaultKeyboardLocale | back to summary |
|---|---|
| pack-priv Locale getDefaultKeyboardLocale() Implements abstract sun. Doc from sun. Gets the default keyboard locale of the underlying operating system. | |
| getPreferredInputMethod | back to summary |
|---|---|
| private synchronized InputMethodLocator getPreferredInputMethod(Locale locale) Returns a InputMethodLocator object that the user prefers for the given locale.
| |
| getTriggerMenuString | back to summary |
|---|---|
| public String getTriggerMenuString() Implements abstract sun. Doc from sun. Gets a string for the trigger menu item that should be added to the window manager menu. If no need to display the trigger menu item, null is returned. | |
| getUserRoot | back to summary |
|---|---|
| private Preferences getUserRoot() | |
| hasMultipleInputMethods | back to summary |
|---|---|
| pack-priv boolean hasMultipleInputMethods() Implements abstract sun. Doc from sun. Returns whether multiple input methods are available or not | |
| initialize | back to summary |
|---|---|
| pack-priv synchronized void initialize() | |
| initializeInputMethodLocatorList | back to summary |
|---|---|
| private void initializeInputMethodLocatorList() | |
| notifyChangeRequest | back to summary |
|---|---|
| public synchronized void notifyChangeRequest(Component comp) Implements abstract sun. Doc from sun. Notifies InputMethodManager that input method change has been requested by the user. This notification triggers a popup menu for user selection. | |
| notifyChangeRequestByHotKey | back to summary |
|---|---|
| public synchronized void notifyChangeRequestByHotKey(Component comp) Implements abstract sun. Doc from sun. Notifies InputMethodManager that input method change has been requested by the user using the hot key combination. This notification triggers a popup menu for user selection. | |
| putPreferredInputMethod | back to summary |
|---|---|
| private synchronized void putPreferredInputMethod(InputMethodLocator locator) Writes the preferred input method descriptor class name into the user's Preferences tree in accordance with the given locale.
| |
| readPreferredInputMethod | back to summary |
|---|---|
| private String readPreferredInputMethod(String nodePath) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setInputContext | back to summary |
|---|---|
| pack-priv void setInputContext(InputContext inputContext) Implements abstract sun. Doc from sun. Sets the current input context so that it will be notified of input method changes initiated from the user interface. Set to real input context when activating; to null when deactivating. | |
| showInputMethodMenu | back to summary |
|---|---|
| private void showInputMethodMenu() | |
| showInputMethodMenuOnRequesterEDT | back to summary |
|---|---|
| private void showInputMethodMenuOnRequesterEDT(Component requester) throws InterruptedException, InvocationTargetException | |
| waitForChangeRequest | back to summary |
|---|---|
| private synchronized void waitForChangeRequest() | |
| writePreferredInputMethod | back to summary |
|---|---|
| private void writePreferredInputMethod(String path, String descriptorName) | |