Class 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  
    • 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 IME
      java.awt.Image getInputMethodIcon​(java.util.Locale inputLocale)
      Get the icon for the Transliterator IME.
      boolean hasDynamicLocaleList()
      The Transliterator IME does not support dynamic locales.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • rb

        private java.util.ResourceBundle rb
    • Constructor Detail

      • TransliteratorInputMethodDescriptor

        public TransliteratorInputMethodDescriptor()
    • 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 interface java.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 interface java.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 interface java.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 interface java.awt.im.spi.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 java.awt.Image getInputMethodIcon​(java.util.Locale inputLocale)
        Get the icon for the Transliterator IME. This is not supported.
        Specified by:
        getInputMethodIcon in interface java.awt.im.spi.InputMethodDescriptor
        Parameters:
        inputLocale - (This is ignored).
        Returns:
        Image This will always be null.