|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputMethodDescriptor
This interface provides information about an InputMethod before it is loaded.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 result
Image getInputMethodIcon(Locale inputLocale)
getAvailableLocales()
, or
null for a locale-independent icon for the input method.
inputLocale
- the locale of the input method, or null
InputMethod createInputMethod() throws Exception
Exception
- if anything goes wrong
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |