java.awt.event
Class InputMethodEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--java.awt.event.InputMethodEvent
All Implemented Interfaces:
Serializable
public class InputMethodEvent
extends AWTEvent

Input method events contain information about text that is being composed using an input method. Whenever the text changes, the input method sends an event. If the text component that's currently using the input method is an active client, the event is dispatched to that component. Otherwise, it is dispatched to a separate composition window.

The text included with the input method event consists of two parts: committed text and composed text. Either part may be empty. The two parts together replace any uncommitted composed text sent in previous events, or the currently selected committed text. Committed text should be integrated into the text component's persistent data, it will not be sent again. Composed text may be sent repeatedly, with changes to reflect the user's editing operations. Committed text always precedes composed text.

Since:
1.2
See Also:
Serialized Form

 

Field Summary

static int CARET_POSITION_CHANGED
    The event type indicating a changed insertion point in input method text.
static int INPUT_METHOD_FIRST
    Marks the first integer id for the range of input method event ids.
static int INPUT_METHOD_LAST
    Marks the last integer id for the range of input method event ids.
static int INPUT_METHOD_TEXT_CHANGED
    The event type indicating changed input method text.
 
Fields inherited from class java.awt.AWTEvent