APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.im

pack-priv Class ExecutableInputMethodManager

extends InputMethodManager
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
java.awt.AWTException, .CheckboxMenuItem, .Component, .Dialog, .EventQueue, .Frame, .PopupMenu, .Menu, .MenuItem, .Toolkit, java.awt.event.ActionEvent, .ActionListener, .InvocationEvent, java.awt.im.spi.InputMethodDescriptor, java.lang.reflect.InvocationTargetException, java.util.Hashtable, .Iterator, .Locale, .ServiceLoader, .Vector, .Set, java.util.prefs.BackingStoreException, .Preferences, sun.awt.InputMethodSupport, .SunToolkit

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.
See Also
InputMethodManager

Field Summary

Modifier and TypeField and Description
private InputContext
private static final String
private InputMethodLocator
private int
private Vector<InputMethodLocator>
private static final String
private Hashtable<String, InputMethodLocator>
private Component
private InputContext
private static String
private InputMethodPopupMenu
private String
private Preferences

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
private String
pack-priv InputMethodLocator
findInputMethod(Locale locale)

Implements abstract sun.awt.im.InputMethodManager.findInputMethod.

Tries to find an input method locator for the given locale.

private String
private Locale
private String
pack-priv Locale
getDefaultKeyboardLocale()

Implements abstract sun.awt.im.InputMethodManager.getDefaultKeyboardLocale.

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.awt.im.InputMethodManager.getTriggerMenuString.

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.awt.im.InputMethodManager.hasMultipleInputMethods.

Returns whether multiple input methods are available or not

pack-priv synchronized void
private void
public synchronized void
notifyChangeRequest(Component comp)

Implements abstract sun.awt.im.InputMethodManager.notifyChangeRequest.

Notifies InputMethodManager that input method change has been requested by the user.

public synchronized void
notifyChangeRequestByHotKey(Component comp)

Implements abstract sun.awt.im.InputMethodManager.notifyChangeRequestByHotKey.

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
run()

Implements java.lang.Runnable.run.

Runs this operation.

pack-priv void
setInputContext(InputContext inputContext)

Implements abstract sun.awt.im.InputMethodManager.setInputContext.

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
writePreferredInputMethod(String path, String descriptorName)

Inherited from sun.awt.im.InputMethodManager:
getInstance

Field Detail

currentInputContextback to summary
private InputContext currentInputContext
descriptorKeyback to summary
private static final String descriptorKey
hostAdapterLocatorback to summary
private InputMethodLocator hostAdapterLocator
javaInputMethodCountback to summary
private int javaInputMethodCount
javaInputMethodLocatorListback to summary
private Vector<InputMethodLocator> javaInputMethodLocatorList
preferredIMNodeback to summary
private static final String preferredIMNode
preferredLocatorCacheback to summary
private Hashtable<String, InputMethodLocator> preferredLocatorCache
requestComponentback to summary
private Component requestComponent
requestInputContextback to summary
private InputContext requestInputContext
selectInputMethodMenuTitleback to summary
private static String selectInputMethodMenuTitle
selectionMenuback to summary
private InputMethodPopupMenu selectionMenu
triggerMenuStringback to summary
private String triggerMenuString
userRootback to summary
private Preferences userRoot

Constructor Detail

ExecutableInputMethodManagerback to summary
pack-priv ExecutableInputMethodManager()

Method Detail

changeInputMethodback to summary
pack-priv synchronized void changeInputMethod(String choice)
createLocalePathback to summary
private String createLocalePath(Locale locale)
findInputMethodback to summary
pack-priv InputMethodLocator findInputMethod(Locale locale)

Implements abstract sun.awt.im.InputMethodManager.findInputMethod.

Doc from sun.awt.im.InputMethodManager.findInputMethod.

Tries to find an input method locator for the given locale. Returns null if no available input method locator supports the locale.

findPreferredInputMethodNodeback to summary
private String findPreferredInputMethodNode(Locale locale)
getAdvertisedLocaleback to summary
private Locale getAdvertisedLocale(InputMethodLocator locator, Locale locale)
getCurrentSelectionback to summary
private String getCurrentSelection()
getDefaultKeyboardLocaleback to summary
pack-priv Locale getDefaultKeyboardLocale()

Implements abstract sun.awt.im.InputMethodManager.getDefaultKeyboardLocale.

Doc from sun.awt.im.InputMethodManager.getDefaultKeyboardLocale.

Gets the default keyboard locale of the underlying operating system.

getPreferredInputMethodback to summary
private synchronized InputMethodLocator getPreferredInputMethod(Locale locale)

Returns a InputMethodLocator object that the user prefers for the given locale.

Parameters
locale:Locale

Locale for which the user prefers the input method.

getTriggerMenuStringback to summary
public String getTriggerMenuString()

Implements abstract sun.awt.im.InputMethodManager.getTriggerMenuString.

Doc from sun.awt.im.InputMethodManager.getTriggerMenuString.

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.

getUserRootback to summary
private Preferences getUserRoot()
hasMultipleInputMethodsback to summary
pack-priv boolean hasMultipleInputMethods()

Implements abstract sun.awt.im.InputMethodManager.hasMultipleInputMethods.

Doc from sun.awt.im.InputMethodManager.hasMultipleInputMethods.

Returns whether multiple input methods are available or not

initializeback to summary
pack-priv synchronized void initialize()
initializeInputMethodLocatorListback to summary
private void initializeInputMethodLocatorList()
notifyChangeRequestback to summary
public synchronized void notifyChangeRequest(Component comp)

Implements abstract sun.awt.im.InputMethodManager.notifyChangeRequest.

Doc from sun.awt.im.InputMethodManager.notifyChangeRequest.

Notifies InputMethodManager that input method change has been requested by the user. This notification triggers a popup menu for user selection.

notifyChangeRequestByHotKeyback to summary
public synchronized void notifyChangeRequestByHotKey(Component comp)

Implements abstract sun.awt.im.InputMethodManager.notifyChangeRequestByHotKey.

Doc from sun.awt.im.InputMethodManager.notifyChangeRequestByHotKey.

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.

putPreferredInputMethodback 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.

Parameters
locator:InputMethodLocator

input method locator to remember.

readPreferredInputMethodback to summary
private String readPreferredInputMethod(String nodePath)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

setInputContextback to summary
pack-priv void setInputContext(InputContext inputContext)

Implements abstract sun.awt.im.InputMethodManager.setInputContext.

Doc from sun.awt.im.InputMethodManager.setInputContext.

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.

showInputMethodMenuback to summary
private void showInputMethodMenu()
showInputMethodMenuOnRequesterEDTback to summary
private void showInputMethodMenuOnRequesterEDT(Component requester) throws InterruptedException, InvocationTargetException
waitForChangeRequestback to summary
private synchronized void waitForChangeRequest()
writePreferredInputMethodback to summary
private void writePreferredInputMethod(String path, String descriptorName)