java.awt.event

Interface InputMethodListener

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

UNKNOWN: updated to 1.4

Method Summary
voidcaretPositionChanged(InputMethodEvent event)
This method is called when the cursor position within the text is changed.
voidinputMethodTextChanged(InputMethodEvent event)
This method is called when the text is changed.

Method Detail

caretPositionChanged

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

Parameters: event the InputMethodEvent indicating the change

inputMethodTextChanged

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

Parameters: event the InputMethodEvent indicating the text change