| Modifier and Type | Method and Description |
|---|---|
| public InputMethod | Returns: a new instance of the corresponding input methodCreates a new instance of the corresponding input method. |
| public Locale[] | Returns: the locales supported by the input methodReturns the locales supported by the corresponding input method. |
| public String | Returns: the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayedthe locale for which text input is supported, or null inputLocale, Locale the language in which the name will be displayed displayLanguage)Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed. |
| public Image | Returns: an icon for the corresponding input method, or nullthe locale for which text input is supported, or null inputLocale)Returns an icon for the corresponding input method. |
| public boolean | Returns: whether the list of available locales can change at runtimeReturns whether the list of available locales can change at runtime. |
| createInputMethod | back to summary |
|---|---|
| public InputMethod createInputMethod() throws Exception Creates a new instance of the corresponding input method.
| |
| getAvailableLocales | back to summary |
|---|---|
| public Locale[] getAvailableLocales() throws AWTException Returns the locales supported by the corresponding input method.
The locale may describe just the language, or may also include
country and variant information if needed.
The information is used to select input methods by locale
(
Only the input method's primary locales should be returned.
For example, if a Japanese input method also has a pass-through
mode for Roman characters, typically still only Japanese would
be returned. Thus, the list of locales returned is typically
a subset of the locales for which the corresponding input method's
implementation of
If
| |
| getInputMethodDisplayName | back to summary |
|---|---|
| public String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage) Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed.
The inputLocale parameter specifies the locale for which text
is input.
This parameter can only take values obtained from this descriptor's
If a name for the desired display language is not available, the method may fall back to some other language.
| |
| getInputMethodIcon | back to summary |
|---|---|
| public Image getInputMethodIcon(Locale inputLocale) Returns an icon for the corresponding input method. The icon may be used by a user interface for selecting input methods.
The inputLocale parameter specifies the locale for which text
is input.
This parameter can only take values obtained from this descriptor's
The icon's size should be 16×16 pixels. | |
| hasDynamicLocaleList | back to summary |
|---|---|
| public boolean hasDynamicLocaleList() Returns whether the list of available locales can change at runtime. This may be the case, for example, for adapters that access real input methods over the network.
| |