|
|
|||||||||||
About com.ms.util.InputMethodThe com.ms.util.InputMethod package provides Java classes and interfaces that support Input Method messaging and access to native system Input Method Editors (IMEs). The Microsoft® Input Method Editor for Java APIs are designed to work with both Java and native system IMEs on any system where the Microsoft Win32 VM for Java is installed. Level 2 IME SupportCurrently, only level 2 IME support, where the user can type in text via a composition window, is provided for AFC components (components derived from com.ms.ui.UIComponent, or that implement the IUIComponent interface). Level 3 IME SupportLevel 3 IME support, where an IME is completely managed by an application, exists for components derived from java.awt.Component. The architecture of the com.ms.util.InputMethod package allows IMEs to work with components that are originally not IME-aware. Input Method Editors generate InputMethodMessage-derived messages (such as IMECompositionMessage and IMENotifyMessage) when states change in the IME. These messages are passed to the InputMethodCallback.handleIMEMessage method. If the currently focused (AWT-derived) component implements the InputMethodMessageListener interface, these IME messages are passed to that component. The component can render its own custom IME user interface (handleIMEMessage returns true), or pass the message on to the InputMethodListener (handleIMEMessage returns false), which can then draw a default IME user interface. The JavaIME accelerator key switching behavior is as follows: Ctrl+Alt will switch from JavaIME1, JavaIME2, ..., no IME, and back to JavaIME1, IME2, and so on. Classes
Interfaces
HierarchyObject | +--InputMethodMessage | +--IMECompositionMessage | +--IMENotifyMessage InputManagerListener InputMethodCallback InputMethodListener InputMethodMessageListener
|
© 1998 Microsoft Corporation. All rights reserved. Terms of use. |