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.
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.
Parameter | Description |
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.
|
public void handleIMEMessage( InputMethodMessage IMEMessage ) ;
Enables any class that implements InputMethodListener to handle IME-related messages.
Return Value:
No return value.
Parameter | Description |
IMEMessage
| The IME-related message (extended from InputMethodMessage). Two examples are IMENotifyMessage and IMECompositionMessage.
|