APIdia Launch Partner
Top Description Methods
java.awt.event

public Interface InputMethodListener

extends EventListener
Known Direct Implementers
sun.awt.im.CompositionArea, sun.awt.im.CompositionAreaHandler, java.awt.AWTEventMulticaster
Imports
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.

Author
JavaSoft Asia/Pacific
Since
1.2
See Also
InputMethodEvent, java.awt.im.InputMethodRequests

Method Summary

Modifier and TypeMethod and Description
public void
caretPositionChanged(InputMethodEvent
the event to be processed
event
)

Invoked when the caret within composed text has changed.

public void
inputMethodTextChanged(InputMethodEvent
the event to be processed
event
)

Invoked when the text entered through an input method has changed.

Method Detail

caretPositionChangedback to summary
public void caretPositionChanged(InputMethodEvent event)

Invoked when the caret within composed text has changed.

Parameters
event:InputMethodEvent

the event to be processed

inputMethodTextChangedback to summary
public void inputMethodTextChanged(InputMethodEvent event)

Invoked when the text entered through an input method has changed.

Parameters
event:InputMethodEvent

the event to be processed