APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.X11

public final Class XInputMethod

extends X11InputMethod
Class Inheritance
Imports
java.awt.AWTException, .Component, .Container, .Rectangle, java.awt.im.spi.InputMethodContext, java.awt.peer.ComponentPeer, sun.awt.AWTAccessor, .X11InputMethod, sun.util.logging.PlatformLogger

Input Method Adapter for XIM (without Motif)
Author
JavaSoft International

Field Summary

Modifier and TypeField and Description
private static final PlatformLogger
private static volatile long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private native void
adjustStatusWindow(long window)

protected void
awtLock()

Implements abstract sun.awt.X11InputMethodBase.awtLock.

Used to protect preedit data

protected void
protected boolean
private native boolean
createXICNative(long window)

protected synchronized void
pack-priv long
protected Container
protected ComponentPeer
getPeer(Component client)

Implements abstract sun.awt.X11InputMethodBase.getPeer.

Returns peer of the given client component.

public static long
public void
protected boolean
private native boolean
openXIMNative(long display)

public void
setInputMethodContext(InputMethodContext context)

Overrides sun.awt.X11InputMethodBase.setInputMethodContext.

Implements java.awt.im.spi.InputMethod.setInputMethodContext.

Does nothing - this adapter doesn't use the input method context.

protected void
setXICFocus(ComponentPeer peer, boolean value, boolean active)

Implements abstract sun.awt.X11InputMethodBase.setXICFocus.

private native void
setXICFocusNative(long window, boolean value, boolean active)

Inherited from sun.awt.X11InputMethod:
activatedeactivatehideWindowsresetCompositionStatesetCompositionEnabled

Field Detail

logback to summary
private static final PlatformLogger log

Hides sun.awt.X11InputMethodBase.log.

xicFocusback to summary
private static volatile long xicFocus

Constructor Detail

XInputMethodback to summary
public XInputMethod() throws AWTException

Method Detail

adjustStatusWindowback to summary
private native void adjustStatusWindow(long window)
awtLockback to summary
protected void awtLock()

Implements abstract sun.awt.X11InputMethodBase.awtLock.

Doc from sun.awt.X11InputMethodBase.awtLock.

Used to protect preedit data

Annotations
@Override
awtUnlockback to summary
protected void awtUnlock()

Implements abstract sun.awt.X11InputMethodBase.awtUnlock.

Annotations
@Override
createXICback to summary
protected boolean createXIC()

Implements abstract sun.awt.X11InputMethodBase.createXIC.

Annotations
@Override
createXICNativeback to summary
private native boolean createXICNative(long window)
disposeImplback to summary
protected synchronized void disposeImpl()

Overrides sun.awt.X11InputMethod.disposeImpl.

Annotations
@Override
getCurrentParentWindowback to summary
pack-priv long getCurrentParentWindow()
getParentback to summary
protected Container getParent(Component client)

Implements abstract sun.awt.X11InputMethodBase.getParent.

Annotations
@Override
getPeerback to summary
protected ComponentPeer getPeer(Component client)

Implements abstract sun.awt.X11InputMethodBase.getPeer.

Returns peer of the given client component. If the given client component doesn't have peer, peer of the native container of the client is returned.

Annotations
@Override
getXICFocusback to summary
public static long getXICFocus()
notifyClientWindowChangeback to summary
public void notifyClientWindowChange(Rectangle location)

Overrides sun.awt.im.InputMethodAdapter.notifyClientWindowChange.

Implements java.awt.im.spi.InputMethod.notifyClientWindowChange.

Doc from sun.awt.im.InputMethodAdapter.notifyClientWindowChange.

Notifies client Window location or status changes

Annotations
@Override
openXIMback to summary
protected boolean openXIM()

Implements abstract sun.awt.X11InputMethodBase.openXIM.

Annotations
@Override
openXIMNativeback to summary
private native boolean openXIMNative(long display)
setInputMethodContextback to summary
public void setInputMethodContext(InputMethodContext context)

Overrides sun.awt.X11InputMethodBase.setInputMethodContext.

Implements java.awt.im.spi.InputMethod.setInputMethodContext.

Doc from sun.awt.X11InputMethodBase.setInputMethodContext.

Does nothing - this adapter doesn't use the input method context.

Annotations
@Override
setXICFocusback to summary
protected void setXICFocus(ComponentPeer peer, boolean value, boolean active)

Implements abstract sun.awt.X11InputMethodBase.setXICFocus.

Annotations
@Override
setXICFocusNativeback to summary
private native void setXICFocusNative(long window, boolean value, boolean active)