java.awt.event
Interface InputMethodListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
AWTEventMulticaster sample code for java.awt.AWTEventMulticaster definition code for java.awt.AWTEventMulticaster

public interface InputMethodListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

The listener interface for receiving input method events. A text editing component has to install an input method event listener in order to work with input methods.

The text editing component also has to provide an instance of InputMethodRequests.

Since:
1.2
See Also:
InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent , InputMethodRequests sample code for java.awt.im.InputMethodRequests definition code for java.awt.im.InputMethodRequests

Method Summary
 void caretPositionChanged sample code for java.awt.event.InputMethodListener.caretPositionChanged(java.awt.event.InputMethodEvent) definition code for java.awt.event.InputMethodListener.caretPositionChanged(java.awt.event.InputMethodEvent) (InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent  event)
          Invoked when the caret within composed text has changed.
 void inputMethodTextChanged sample code for java.awt.event.InputMethodListener.inputMethodTextChanged(java.awt.event.InputMethodEvent) definition code for java.awt.event.InputMethodListener.inputMethodTextChanged(java.awt.event.InputMethodEvent) (InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent  event)
          Invoked when the text entered through an input method has changed.
 

Method Detail

inputMethodTextChanged sample code for java.awt.event.InputMethodListener.inputMethodTextChanged(java.awt.event.InputMethodEvent) definition code for java.awt.event.InputMethodListener.inputMethodTextChanged(java.awt.event.InputMethodEvent)

void inputMethodTextChanged(InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent  event)
Invoked when the text entered through an input method has changed.


caretPositionChanged sample code for java.awt.event.InputMethodListener.caretPositionChanged(java.awt.event.InputMethodEvent) definition code for java.awt.event.InputMethodListener.caretPositionChanged(java.awt.event.InputMethodEvent)

void caretPositionChanged(InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent  event)
Invoked when the caret within composed text has changed.