| |
java.awt.im |
Provides classes and interfaces for the input method framework.
This package enables text editing components to receive text input
through input methods. Input methods are software components that let
the user enter text in ways other than simple typing on a keyboard.
They are commonly used to enter Japanese, Chinese, or Korean -
languages using thousands of different characters - on keyboards with
far fewer keys. However, the framework also supports input methods
for other languages and the use of entirely different input
mechanisms, such as handwriting or speech recognition.
Package Specification
Related Documentation
For overviews, tutorials, examples, guides, and tool
documentation, please see:
@since 1.2
| Java Source File Name | Type | Comment | InputContext.java | Class | Provides methods to control text input facilities such as input
methods and keyboard layouts.
Two methods handle both input methods and keyboard layouts: selectInputMethod
lets a client component select an input method or keyboard layout by locale,
getLocale lets a client component obtain the locale of the current input method
or keyboard layout.
The other methods more specifically support interaction with input methods:
They let client components control the behavior of input methods, and
dispatch events from the client component to the input method.
By default, one InputContext instance is created per Window instance,
and this input context is shared by all components within the window's
container hierarchy. | InputMethodHighlight.java | Class | An InputMethodHighlight is used to describe the highlight
attributes of text being composed.
The description can be at two levels:
at the abstract level it specifies the conversion state and whether the
text is selected; at the concrete level it specifies style attributes used
to render the highlight.
An InputMethodHighlight must provide the description at the
abstract level; it may or may not provide the description at the concrete
level.
If no concrete style is provided, a renderer should use
java.awt.Toolkit.mapInputMethodHighlight to map to a concrete style.
The abstract description consists of three fields: selected ,
state , and variation .
selected indicates whether the text range is the one that the
input method is currently working on, for example, the segment for which
conversion candidates are currently shown in a menu.
state represents the conversion state. | InputMethodRequests.java | Interface | InputMethodRequests defines the requests that a text editing component
has to handle in order to work with input methods. | InputSubset.java | Class | Defines additional Unicode subsets for use by input methods. |
|