Class TransliteratorInputMethodDescriptor
- java.lang.Object
-
- com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethodDescriptor
-
- All Implemented Interfaces:
java.awt.im.spi.InputMethodDescriptor
public class TransliteratorInputMethodDescriptor extends java.lang.Object implements java.awt.im.spi.InputMethodDescriptor
The TransliteratorInputMethodDescriptor class is used to identify this package as an input method editor.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ResourceBundle
rb
-
Constructor Summary
Constructors Constructor Description TransliteratorInputMethodDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.im.spi.InputMethod
createInputMethod()
Creates the Transliterator IME this is automatically called by the JVM when the Transliterator IME is selected from the input method list.java.util.Locale[]
getAvailableLocales()
Get the list of locales that this IME supports.java.lang.String
getInputMethodDisplayName(java.util.Locale inputLocale, java.util.Locale displayLanguage)
Obtain the localized name of the Transliterator IMEjava.awt.Image
getInputMethodIcon(java.util.Locale inputLocale)
Get the icon for the Transliterator IME.boolean
hasDynamicLocaleList()
The Transliterator IME does not support dynamic locales.
-
-
-
Method Detail
-
createInputMethod
public java.awt.im.spi.InputMethod createInputMethod() throws java.lang.Exception
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 interfacejava.awt.im.spi.InputMethodDescriptor
- Returns:
- InputMethod The Transliterator IME object.
- Throws:
java.lang.Exception
-
getAvailableLocales
public java.util.Locale[] getAvailableLocales()
Get the list of locales that this IME supports.- Specified by:
getAvailableLocales
in interfacejava.awt.im.spi.InputMethodDescriptor
- 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 interfacejava.awt.im.spi.InputMethodDescriptor
- Returns:
- boolean This will always be false.
-
getInputMethodDisplayName
public java.lang.String getInputMethodDisplayName(java.util.Locale inputLocale, java.util.Locale displayLanguage)
Obtain the localized name of the Transliterator IME- Specified by:
getInputMethodDisplayName
in interfacejava.awt.im.spi.InputMethodDescriptor
- Parameters:
inputLocale
- the requested input method localedisplayLanguage
- The requested translation of the Transliterator IME- Returns:
- the localized name for the Transliterator IME
-
getInputMethodIcon
public java.awt.Image getInputMethodIcon(java.util.Locale inputLocale)
Get the icon for the Transliterator IME. This is not supported.- Specified by:
getInputMethodIcon
in interfacejava.awt.im.spi.InputMethodDescriptor
- Parameters:
inputLocale
- (This is ignored).- Returns:
- Image This will always be null.
-
-