public abstract class

InputMethodAdapter

extends Object
implements InputMethod
java.lang.Object
   ↳ sun.awt.im.InputMethodAdapter

Class Overview

An input method adapter interfaces with the native input methods on a host platform. In general, it looks to the input method framework like a Java input method (that may support a few more locales than a typical Java input method). However, since it often has to work in a slightly hostile environment that's not designed for easy integration into the Java input method framework, it gets some special treatment that's not available to Java input methods.

Licensees are free to modify this class as necessary to implement their host input method adapters.

Summary

Public Constructors
InputMethodAdapter()
Public Methods
abstract void disableInputMethod()
Disable the native input method.
abstract String getNativeInputMethodInfo()
Returns a string with information about the native input method, or null.
void notifyClientWindowChange(Rectangle location)
Notifies client Window location or status changes
void reconvert()
Starts reconvertion.
Protected Methods
Component getClientComponent()
boolean haveActiveClient()
void setAWTFocussedComponent(Component component)
Informs the input method adapter about the component that has the AWT focus if it's using the input context owning this adapter instance.
void stopListening()
Informs the input method adapter not to listen to the native events.
boolean supportsBelowTheSpot()
Returns whether host input methods can support below-the-spot input.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.im.spi.InputMethod

Public Constructors

public InputMethodAdapter ()

Public Methods

public abstract void disableInputMethod ()

Disable the native input method. This method is provided for explicitly turning off the native IM. The native IM is not turned off when the native input method is deactivated. This method is always called on AWT EDT. See details in bug 6226489.

public abstract String getNativeInputMethodInfo ()

Returns a string with information about the native input method, or null.

public void notifyClientWindowChange (Rectangle location)

Notifies client Window location or status changes

Parameters
location client window's bounds on the screen; or null if the client window is iconified or invisible

public void reconvert ()

Starts reconvertion. An implementing host adapter has to override this method if it can support reconvert().

Throws
UnsupportedOperationException when the adapter does not override the method.

Protected Methods

protected Component getClientComponent ()

protected boolean haveActiveClient ()

protected void setAWTFocussedComponent (Component component)

Informs the input method adapter about the component that has the AWT focus if it's using the input context owning this adapter instance.

protected void stopListening ()

Informs the input method adapter not to listen to the native events. This method is called when a Java input method is active.

protected boolean supportsBelowTheSpot ()

Returns whether host input methods can support below-the-spot input. Returns false by default.