Class TransliteratorInputMethodDescriptor

java.lang.Object
com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethodDescriptor
All Implemented Interfaces:
InputMethodDescriptor

public class TransliteratorInputMethodDescriptor extends Object implements InputMethodDescriptor
The TransliteratorInputMethodDescriptor class is used to identify this package as an input method editor.
  • Field Details

  • Constructor Details

    • TransliteratorInputMethodDescriptor

      public TransliteratorInputMethodDescriptor()
  • Method Details

    • createInputMethod

      public InputMethod createInputMethod() throws 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 interface InputMethodDescriptor
      Returns:
      InputMethod The Transliterator IME object.
      Throws:
      Exception
    • getAvailableLocales

      public Locale[] getAvailableLocales()
      Get the list of locales that this IME supports.
      Specified by:
      getAvailableLocales in interface 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 interface InputMethodDescriptor
      Returns:
      boolean This will always be false.
    • getInputMethodDisplayName

      public String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)
      Obtain the localized name of the Transliterator IME
      Specified by:
      getInputMethodDisplayName in interface InputMethodDescriptor
      Parameters:
      inputLocale - the requested input method locale
      displayLanguage - The requested translation of the Transliterator IME
      Returns:
      the localized name for the Transliterator IME
    • getInputMethodIcon

      public Image getInputMethodIcon(Locale inputLocale)
      Get the icon for the Transliterator IME. This is not supported.
      Specified by:
      getInputMethodIcon in interface InputMethodDescriptor
      Parameters:
      inputLocale - (This is ignored).
      Returns:
      Image This will always be null.