Class TransliteratorInputMethodDescriptor
java.lang.Object
com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethodDescriptor
- All Implemented Interfaces:
InputMethodDescriptor
The TransliteratorInputMethodDescriptor class is used to identify this package
as an input method editor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the Transliterator IME this is automatically called by the JVM when the Transliterator IME is selected from the input method list.Locale[]
Get the list of locales that this IME supports.getInputMethodDisplayName
(Locale inputLocale, Locale displayLanguage) Obtain the localized name of the Transliterator IMEgetInputMethodIcon
(Locale inputLocale) Get the icon for the Transliterator IME.boolean
The Transliterator IME does not support dynamic locales.
-
Field Details
-
rb
-
-
Constructor Details
-
TransliteratorInputMethodDescriptor
public TransliteratorInputMethodDescriptor()
-
-
Method Details
-
createInputMethod
Creates the Transliterator IME this is automatically called by the JVM when the Transliterator IME is selected from the input method list.- Specified by:
createInputMethod
in interfaceInputMethodDescriptor
- Returns:
- InputMethod The Transliterator IME object.
- Throws:
Exception
-
getAvailableLocales
Get the list of locales that this IME supports.- Specified by:
getAvailableLocales
in interfaceInputMethodDescriptor
- Returns:
- Locale[] This will always have one locale. By default we just return the current locale. Therefore the Transliterator IME works in all locales.
-
hasDynamicLocaleList
public boolean hasDynamicLocaleList()The Transliterator IME does not support dynamic locales. The Transliterator IME's functionality does not depend upon any locale.- Specified by:
hasDynamicLocaleList
in interfaceInputMethodDescriptor
- Returns:
- boolean This will always be false.
-
getInputMethodDisplayName
Obtain the localized name of the Transliterator IME- Specified by:
getInputMethodDisplayName
in interfaceInputMethodDescriptor
- Parameters:
inputLocale
- the requested input method localedisplayLanguage
- The requested translation of the Transliterator IME- Returns:
- the localized name for the Transliterator IME
-
getInputMethodIcon
Get the icon for the Transliterator IME. This is not supported.- Specified by:
getInputMethodIcon
in interfaceInputMethodDescriptor
- Parameters:
inputLocale
- (This is ignored).- Returns:
- Image This will always be null.
-