public interface InputMethodDescriptor
| Modifier and Type | Method and Description |
|---|---|
InputMethod |
createInputMethod()
Creates a new instance of the input method.
|
Locale[] |
getAvailableLocales()
Returns the locales supported by the input method this describes.
|
String |
getInputMethodDisplayName(Locale inputLocale,
Locale displayLanguage)
Returns a user visible name of the input locale, displayed in the
specified locale.
|
Image |
getInputMethodIcon(Locale inputLocale)
Returns a 16x16 icon for the input locale.
|
boolean |
hasDynamicLocaleList()
Test whether the input method this describes has a static or dynamic
locale list.
|
Locale[] getAvailableLocales() throws AWTException
InputContext.selectInputMethod(Locale). The returned list should
ignore pass-through locales, so it is usually a subset of locales for
which InputMethod.setLocale(Locale) returns true. If
hasDynamicLocaleList() returns true, this is called each time
information is needed, allowing dynamic addition or removal of supported
locales.AWTException - if the input method is not availableboolean hasDynamicLocaleList()
String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)
getAvailableLocales(), or null for a
locale-independent description of the input method. If a translation to
the desired display language is not available, another language may be
used.inputLocale - the locale of the input method, or nulldisplayLanguage - the language of the resultImage getInputMethodIcon(Locale inputLocale)
getAvailableLocales(), or
null for a locale-independent icon for the input method.inputLocale - the locale of the input method, or nullInputMethod createInputMethod() throws Exception
Exception - if anything goes wrong