
Hierar chy: Object→ java.util.EventObject(Serializable)→ AWTEvent→ InputMethodEvent
Passed To: AWTEventMulticaster.{caretPositionChanged(), inputMethodTextChanged()},
Component.processInputMethodEvent(), InputMethodListener.{caretPositionChanged(),
inputMethodTextChanged()}, javax.swing .text.JTextComponent.processInputMethodEvent()
InputMethodListener Ja va 1.2
java.awt.e vent event listener
This interface defines the methods that a text input component must define in order to
receive notifications from an input method. caretPositionChanged() is invoked when the
user has moved the editing cursor. inputMethodTextChanged() is invoked when the user has
edited text being composed by the input method.
Input method details are usually hidden by text input components. Application-level
code should never have to use or implement this interface.
public abstract interface InputMethodListener extends java.util.EventListener {
// Public Instance Methods
public abstract void caretPositionChanged(InputMethodEvent event);
public abstract void inputMethodTextChanged(InputMethodEvent event);
}
Hierar chy: (InputMethodListener(java.util.EventListener))
Implementations: AWTEventMulticaster
Passed To: AWTEventMulticaster.{add(), remove()}, Component.{addInputMethodListener(),
removeInputMethodListener()}, javax.swing .text.JTextComponent.addInputMethodListener()
Retur ned By: AWTEventMulticaster.{add(), remove()}
InvocationEvent ...