| Modifier and Type | Class and Description |
|---|---|
| protected class | X11InputMethodBase.
IntBuffer is an inner class that manipulates an int array and provides UNIX file io stream-like programming interfaces to access it. |
| Modifier and Type | Field and Description |
|---|---|
| protected Component | |
| protected Container | |
| protected String | |
| protected StringBuffer | |
| protected boolean | |
| protected boolean | |
| private static Map | |
| protected static final int | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private static boolean | |
| protected Component | |
| private Locale | |
| protected static final PlatformLogger | |
| protected boolean | |
| private WeakReference | |
| protected transient long | |
| protected X11InputMethodBase. | |
| protected boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected InputMethodHighlight | Returns: Java input method highlightPerforms mapping from an XIM visible feedback value to Java IM highlight. |
| protected abstract boolean | |
| public abstract void | deactivate(boolean isTemporary)
Redeclares java. Deactivate input method. |
| public void | disableInputMethod()
Implements abstract sun. Explicitly disable the native IME. |
| pack-priv void | dispatchCommittedText(String
committed text str, long when when)Dispatches committed text from XIM to the awt event queue. |
| private void | |
| pack-priv abstract void | dispatchComposedText(String chgText, int[] chgStyles, int chgOffset, int chgLength, int caretPosition, long when)
Updates composed text with XIM preedit information and posts composed text to the awt event queue. |
| public void | dispatchEvent(AWTEvent
event e)Implements java. Dispatch event to input method. |
| public final void | dispose()
Implements java. Frees all X Window resources associated with this object. |
| protected abstract void | |
| protected native void | |
| public void | endComposition()
Implements java. Ends any input composition that may currently be going on in this context. |
| pack-priv void | |
| protected Window | |
| protected boolean | Returns: the composition state if isCompositionEnabled call is successful. Otherwise, it returns false.Query and then return the current composition state. |
| public Object | |
| public Locale | |
| public String | getNativeInputMethodInfo()
Implements abstract sun. Returns a string with information about the current input method server, or null. |
| protected abstract Container | |
| protected abstract ComponentPeer | |
| public abstract void | hideWindows()
Redeclares java. Closes or hides all windows opened by this input method instance or its class. |
| private static native void | |
| private synchronized boolean | Returns: true if openXIM() is successful or it's already been opened.Invokes openIM() that invokes XOpenIM() if it's not opened yet. |
| public boolean | isCompositionEnabled()
Implements java. Determines whether this input method is enabled. |
| private native boolean | |
| protected boolean | |
| public static Map | |
| protected abstract boolean | |
| protected void | postInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition, long when)
Creates an input method event from the arguments given and posts it on the AWT event queue. |
| private void | postInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
|
| public synchronized void | removeNotify()
Implements java. Notifies the input method that a client component has been removed from its containment hierarchy, or that input method support has been disabled for the component. |
| protected abstract void | |
| private native String | |
| protected final void | |
| protected void | setAWTFocussedComponent(Component component)
Overrides sun. Informs the input method adapter about the component that has the AWT focus if it's using the input context owning this adapter instance. |
| public void | setCharacterSubsets(Character.
Implements java. Does nothing - XIM doesn't let you specify which characters you expect. |
| public abstract void | setCompositionEnabled(boolean enable)
Redeclares java. Enables or disables this input method for composition,
depending on the value of the parameter |
| protected native boolean | |
| public void | setInputMethodContext(InputMethodContext context)
Implements java. Does nothing - this adapter doesn't use the input method context. |
| public boolean | Returns: the true is returned when specified locale is supported.locale to input lang)Implements java. Set locale to input. |
| protected abstract void | |
| protected void | stopListening()
Overrides sun. Informs the input method adapter not to listen to the native events. |
| protected native void |
| awtFocussedComponent | back to summary |
|---|---|
| protected Component awtFocussedComponent | |
| clientComponentWindow | back to summary |
|---|---|
| protected Container clientComponentWindow | |
| committedText | back to summary |
|---|---|
| protected String committedText | |
| composedText | back to summary |
|---|---|
| protected StringBuffer composedText | |
| compositionEnableSupported | back to summary |
|---|---|
| protected boolean compositionEnableSupported | |
| disposed | back to summary |
|---|---|
| protected boolean disposed | |
| highlightStyles | back to summary |
|---|---|
| private static Map<TextAttribute, ?>[] highlightStyles | |
| INITIAL_SIZE | back to summary |
|---|---|
| protected static final int INITIAL_SIZE | |
| isActive | back to summary |
|---|---|
| protected boolean isActive | |
| isLastTemporary | back to summary |
|---|---|
| protected boolean isLastTemporary | |
| isLastXICActive | back to summary |
|---|---|
| protected boolean isLastXICActive | |
| isXIMOpened | back to summary |
|---|---|
| private static boolean isXIMOpened | |
| lastXICFocussedComponent | back to summary |
|---|---|
| protected Component lastXICFocussedComponent | |
| locale | back to summary |
|---|---|
| private Locale locale | |
| log | back to summary |
|---|---|
| protected static final PlatformLogger log | |
| needResetXIC | back to summary |
|---|---|
| protected boolean needResetXIC | |
| needResetXICClient | back to summary |
|---|---|
| private WeakReference<Component> needResetXICClient | |
| pData | back to summary |
|---|---|
| protected transient long pData | |
| rawFeedbacks | back to summary |
|---|---|
| protected X11InputMethodBase. | |
| savedCompositionState | back to summary |
|---|---|
| protected boolean savedCompositionState | |
| XIMHighlight | back to summary |
|---|---|
| private static final int XIMHighlight | |
| XIMPrimary | back to summary |
|---|---|
| private static final int XIMPrimary | |
| XIMReverse | back to summary |
|---|---|
| private static final int XIMReverse | |
| XIMSecondary | back to summary |
|---|---|
| private static final int XIMSecondary | |
| XIMTertiary | back to summary |
|---|---|
| private static final int XIMTertiary | |
| XIMUnderline | back to summary |
|---|---|
| private static final int XIMUnderline | |
| XIMVisibleCenter | back to summary |
|---|---|
| protected static final int XIMVisibleCenter | |
| XIMVisibleMask | back to summary |
|---|---|
| protected static final int XIMVisibleMask | |
| XIMVisibleToBackward | back to summary |
|---|---|
| protected static final int XIMVisibleToBackward | |
| XIMVisibleToForward | back to summary |
|---|---|
| protected static final int XIMVisibleToForward | |
| X11InputMethodBase | back to summary |
|---|---|
| public X11InputMethodBase() throws AWTException Constructs an X11InputMethod instance. It initializes the XIM environment if it's not done yet.
| |
| activate | back to summary |
|---|---|
| public abstract void activate() Redeclares java. Activate input method.
| |
| awtLock | back to summary |
|---|---|
| protected abstract void awtLock() Used to protect preedit data | |
| awtUnlock | back to summary |
|---|---|
| protected abstract void awtUnlock() | |
| convertVisualFeedbackToHighlight | back to summary |
|---|---|
| protected InputMethodHighlight convertVisualFeedbackToHighlight(int feedback) Performs mapping from an XIM visible feedback value to Java IM highlight.
| |
| createXIC | back to summary |
|---|---|
| protected abstract boolean createXIC() | |
| deactivate | back to summary |
|---|---|
| public abstract void deactivate(boolean isTemporary) Redeclares java. Deactivate input method.
| |
| disableInputMethod | back to summary |
|---|---|
| public void disableInputMethod() Implements abstract sun. Explicitly disable the native IME. Native IME is not disabled when deactivate is called.
| |
| dispatchCommittedText | back to summary |
|---|---|
| pack-priv void dispatchCommittedText(String str, long when) Dispatches committed text from XIM to the awt event queue. This method is invoked from the event handler in canvas.c in the AWT Toolkit thread context and thus inside the AWT Lock.
| |
| dispatchCommittedText | back to summary |
|---|---|
| private void dispatchCommittedText(String str) | |
| dispatchComposedText | back to summary |
|---|---|
| pack-priv abstract void dispatchComposedText(String chgText, int[] chgStyles, int chgOffset, int chgLength, int caretPosition, long when) Updates composed text with XIM preedit information and posts composed text to the awt event queue. The args of this method correspond to the XIM preedit callback information. The XIM highlight attributes are translated via fixed mapping (i.e., independent from any underlying input method engine). This method is invoked in the AWT Toolkit (X event loop) thread context and thus inside the AWT Lock. | |
| dispatchEvent | back to summary |
|---|---|
| public void dispatchEvent(AWTEvent e) Implements java. Dispatch event to input method. InputContext dispatch event with this method. Input method set consume flag if event is consumed in input method. | |
| dispose | back to summary |
|---|---|
| public final void dispose() Implements java. Frees all X Window resources associated with this object.
| |
| disposeImpl | back to summary |
|---|---|
| protected abstract void disposeImpl() | |
| disposeXIC | back to summary |
|---|---|
| protected native void disposeXIC() | |
| endComposition | back to summary |
|---|---|
| public void endComposition() Implements java. Ends any input composition that may currently be going on in this context. Depending on the platform and possibly user preferences, this may commit or delete uncommitted text. Any changes to the text are communicated to the active component using an input method event. A text editing component may call this in a variety of situations, for example, when the user moves the insertion point within the text (but outside the composed text), or when the component's text is saved to a file or copied to the clipboard.
| |
| flushText | back to summary |
|---|---|
| pack-priv void flushText() Flushes composed and committed text held in this context. This method is invoked in the AWT Toolkit (X event loop) thread context and thus inside the AWT Lock. | |
| getClientComponentWindow | back to summary |
|---|---|
| protected Window getClientComponentWindow() Returns the Window instance in which the client component is contained. If not found, null is returned. (IS THIS POSSIBLE?) | |
| getCompositionState | back to summary |
|---|---|
| protected boolean getCompositionState() Query and then return the current composition state.
| |
| getControlObject | back to summary |
|---|---|
| public Object getControlObject() Implements java. Returns null.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements java. Returns current input locale.
| |
| getNativeInputMethodInfo | back to summary |
|---|---|
| public String getNativeInputMethodInfo() Implements abstract sun. Returns a string with information about the current input method server, or null. On both Linux & SunOS, the value of environment variable XMODIFIERS is returned if set. Otherwise, on SunOS, $HOME/.dtprofile will be parsed to find out the language service engine (atok or wnn) since there is no API in Xlib which returns the information of native IM server or language service and we want to try our best to return as much information as possible. Note This method could return null on Linux if XMODIFIERS is not set properly or if any IOException is thrown. See man page of XSetLocaleModifiers(3X11) for the usgae of XMODIFIERS, atok12setup(1) and wnn6setup(1) for the information written to $HOME/.dtprofile when you run these two commands.
| |
| getParent | back to summary |
|---|---|
| protected abstract Container getParent(Component client) | |
| getPeer | back to summary |
|---|---|
| protected abstract ComponentPeer getPeer(Component client) 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. | |
| hideWindows | back to summary |
|---|---|
| public abstract void hideWindows() Redeclares java. Doc from java. Closes or hides all windows opened by this input method instance or its class. This method is called
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() Initialize JNI field and method IDs for fields that may be accessed from C. | |
| initXIM | back to summary |
|---|---|
| private synchronized boolean initXIM() Invokes openIM() that invokes XOpenIM() if it's not opened yet.
| |
| isCompositionEnabled | back to summary |
|---|---|
| public boolean isCompositionEnabled() Implements java. Doc from java. Determines whether this input method is enabled. An input method that is enabled for composition interprets incoming events for both composition and control purposes, while a disabled input method does not interpret events for composition. This method is called
| |
| isCompositionEnabledNative | back to summary |
|---|---|
| private native boolean isCompositionEnabledNative() | |
| isDisposed | back to summary |
|---|---|
| protected boolean isDisposed() | |
| mapInputMethodHighlight | back to summary |
|---|---|
| public static Map | |
| openXIM | back to summary |
|---|---|
| protected abstract boolean openXIM() | |
| postInputMethodEvent | back to summary |
|---|---|
| protected void postInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition, long when) Creates an input method event from the arguments given and posts it on the AWT event queue. For arguments, see InputMethodEvent. Called by input method. | |
| postInputMethodEvent | back to summary |
|---|---|
| private void postInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) | |
| removeNotify | back to summary |
|---|---|
| public synchronized void removeNotify() Implements java. Doc from java. Notifies the input method that a client component has been removed from its containment hierarchy, or that input method support has been disabled for the component.
This method is called by The method is only called when the input method is inactive.
| |
| resetCompositionState | back to summary |
|---|---|
| protected abstract void resetCompositionState() Reset the composition state to the current composition state. | |
| resetXIC | back to summary |
|---|---|
| private native String resetXIC() | |
| resetXICifneeded | back to summary |
|---|---|
| protected final void resetXICifneeded() | |
| setAWTFocussedComponent | back to summary |
|---|---|
| protected void setAWTFocussedComponent(Component component) Overrides sun. Doc from sun. Informs the input method adapter about the component that has the AWT focus if it's using the input context owning this adapter instance.
| |
| setCharacterSubsets | back to summary |
|---|---|
| public void setCharacterSubsets(Character. Implements java. Does nothing - XIM doesn't let you specify which characters you expect.
| |
| setCompositionEnabled | back to summary |
|---|---|
| public abstract void setCompositionEnabled(boolean enable) Redeclares java. Doc from java. Enables or disables this input method for composition,
depending on the value of the parameter An input method that is enabled for composition interprets incoming events for both composition and control purposes, while a disabled input method does not interpret events for composition. Note however that events are passed on to the input method regardless whether it is enabled or not, and that an input method that is disabled for composition may still interpret events for control purposes, including to enable or disable itself for composition.
For input methods provided by host operating systems, it is not always possible to
determine whether this operation is supported. For example, an input method may enable
composition only for some locales, and do nothing for other locales. For such input
methods, it is possible that this method does not throw
This method is called
| |
| setCompositionEnabledNative | back to summary |
|---|---|
| protected native boolean setCompositionEnabledNative(boolean enable) | |
| setInputMethodContext | back to summary |
|---|---|
| public void setInputMethodContext(InputMethodContext context) Implements java. Does nothing - this adapter doesn't use the input method context.
| |
| setLocale | back to summary |
|---|---|
| public boolean setLocale(Locale lang) Implements java. Set locale to input. If input method doesn't support specified locale, false will be returned and its behavior is not changed. | |
| setXICFocus | back to summary |
|---|---|
| protected abstract void setXICFocus(ComponentPeer peer, boolean value, boolean active) | |
| stopListening | back to summary |
|---|---|
| protected void stopListening() Overrides sun. Doc from sun. Informs the input method adapter not to listen to the native events.
| |
| turnoffStatusWindow | back to summary |
|---|---|
| protected native void turnoffStatusWindow() | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | |
| pack-priv void |
| index | back to summary |
|---|---|
| private int index | |
| intArray | back to summary |
|---|---|
| private int[] intArray | |
| size | back to summary |
|---|---|
| private int size | |
| IntBuffer | back to summary |
|---|---|
| pack-priv IntBuffer(int initialCapacity) | |
| getNext | back to summary |
|---|---|
| pack-priv int getNext() | |
| getOffset | back to summary |
|---|---|
| pack-priv int getOffset() | |
| insert | back to summary |
|---|---|
| pack-priv void insert(int offset, int[] values) | |
| remove | back to summary |
|---|---|
| pack-priv void remove(int offset, int length) | |
| removeAll | back to summary |
|---|---|
| pack-priv void removeAll() | |
| replace | back to summary |
|---|---|
| pack-priv void replace(int offset, int[] values) | |
| rewind | back to summary |
|---|---|
| pack-priv void rewind() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unget | back to summary |
|---|---|
| pack-priv void unget() | |