Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.util.InputMethod   Previous This
Package
Next

 


Interface InputMethodCallback

public interface InputMethodCallback
{
  // Methods
  public void handleIMEChar( long when, char keyChar, int state ) ;
  public void handleIMEMessage( InputMethodMessage IMEMessage ) ;
}

This interface enables InputMethodListener objects to return composed characters and Input Method Editor (IME) messages. This interface is used by both Java IMEs and native system IMEs.

Methods

handleIMEChar

public void handleIMEChar( long when, char keyChar, int state ) ;

Enables any class that implements InputMethodListener to return a composed character. The character is added to the internal input queue as if this is a character that the user typed. This method allows an InputMethodListener to pass back a composed character that is generated by a serious of keystrokes.

For example, in a Japanese IME, you can type "ka" to send a Katakana character that doesn't exist in a standard English keyboard.

Return Value:

No return value.

ParameterDescription
when The time that the composed character is generated at.
keyChar The key character of the composed character.
state The state when the event occurred.

handleIMEMessage

public void handleIMEMessage( InputMethodMessage IMEMessage ) ;

Enables any class that implements InputMethodListener to handle IME-related messages.

Return Value:

No return value.

ParameterDescription
IMEMessage The IME-related message (extended from InputMethodMessage). Two examples are IMENotifyMessage and IMECompositionMessage.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.