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

public abstract Class InputMethodManager

extends Object
Class Inheritance
Known Direct Subclasses
sun.awt.im.ExecutableInputMethodManager
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

InputMethodManager is an abstract class that manages the input method environment of JVM. There is only one InputMethodManager instance in JVM that is executed under a separate daemon thread. InputMethodManager performs the following: The mechanism for supporting input method switch is as follows. (Note that this may change in future releases.)
Author
JavaSoft International
See Also
java.awt.im.spi.InputMethod, sun.awt.im.InputContext, sun.awt.im.InputMethodAdapter

Field Summary

Modifier and TypeField and Description
private static InputMethodManager
inputMethodManager

The InputMethodManager instance

private static final Object
LOCK

Object for global locking

private static final String
threadName

InputMethodManager thread name

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract InputMethodLocator
findInputMethod(Locale forLocale)

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

pack-priv abstract Locale
getDefaultKeyboardLocale()

Gets the default keyboard locale of the underlying operating system.

public static final InputMethodManager

Returns:

the InputMethodManager instance
getInstance
()

Returns the instance of InputMethodManager.

public abstract String
getTriggerMenuString()

Gets a string for the trigger menu item that should be added to the window manager menu.

pack-priv abstract boolean
hasMultipleInputMethods()

Returns whether multiple input methods are available or not

public abstract void
notifyChangeRequest(Component
Component that has accepted the change request. This component has to be a Frame or Dialog.
comp
)

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

public abstract void
notifyChangeRequestByHotKey(Component
Component that has accepted the change request. This component has the input focus.
comp
)

Notifies InputMethodManager that input method change has been requested by the user using the hot key combination.

pack-priv abstract void
setInputContext(InputContext inputContext)

Sets the current input context so that it will be notified of input method changes initiated from the user interface.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inputMethodManagerback to summary
private static InputMethodManager inputMethodManager

The InputMethodManager instance

LOCKback to summary
private static final Object LOCK

Object for global locking

threadNameback to summary
private static final String threadName

InputMethodManager thread name

Constructor Detail

InputMethodManagerback to summary
public InputMethodManager()

Method Detail

findInputMethodback to summary
pack-priv abstract InputMethodLocator findInputMethod(Locale forLocale)

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

getDefaultKeyboardLocaleback to summary
pack-priv abstract Locale getDefaultKeyboardLocale()

Gets the default keyboard locale of the underlying operating system.

getInstanceback to summary
public static final InputMethodManager getInstance()

Returns the instance of InputMethodManager. This method creates the instance that is unique in the Java VM if it has not been created yet.

Returns:InputMethodManager

the InputMethodManager instance

getTriggerMenuStringback to summary
public abstract String 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.

hasMultipleInputMethodsback to summary
pack-priv abstract boolean hasMultipleInputMethods()

Returns whether multiple input methods are available or not

notifyChangeRequestback to summary
public abstract void notifyChangeRequest(Component comp)

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

Parameters
comp:Component

Component that has accepted the change request. This component has to be a Frame or Dialog.

notifyChangeRequestByHotKeyback to summary
public abstract void notifyChangeRequestByHotKey(Component comp)

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.

Parameters
comp:Component

Component that has accepted the change request. This component has the input focus.

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

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.