java.awt.event
Interface InputMethodListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AWTEventMulticaster

public interface InputMethodListener
extends EventListener

This interface is for classes that wish to receive events from an input method. For a text component to use input methods, it must also install an InputMethodRequests handler.

Since:
1.2
See Also:
InputMethodEvent, InputMethodRequests

Method Summary
 void caretPositionChanged(InputMethodEvent event)
          This method is called when the cursor position within the text is changed.
 void inputMethodTextChanged(InputMethodEvent event)
          This method is called when the text is changed.
 

Method Detail

inputMethodTextChanged

void inputMethodTextChanged(InputMethodEvent event)
This method is called when the text is changed.

Parameters:
event - the InputMethodEvent indicating the text change

caretPositionChanged

void caretPositionChanged(InputMethodEvent event)
This method is called when the cursor position within the text is changed.

Parameters:
event - the InputMethodEvent indicating the change