guk.im
Class GateIMDescriptor

java.lang.Object
  |
  +--guk.im.GateIMDescriptor
All Implemented Interfaces:
InputMethodDescriptor

public class GateIMDescriptor
extends Object
implements InputMethodDescriptor

Provides a way for the Gate input method to be discovered by the system.

See Also:
java.awt.im, java.awt.im.spi

Field Summary
(package private)  Map supportedLocales
          The available locales.
 
Constructor Summary
GateIMDescriptor()
          Default constructor.
 
Method Summary
 InputMethod createInputMethod()
          Creates a new GateIM object and returns a handle.
 Locale[] getAvailableLocales()
          Gets an Array with the locales supported by the Gate input method.
 String getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)
          Returns the display name for the input method for a given locale.
 Image getInputMethodIcon(Locale inputLocale)
          Provides an icon for the gate input method.
 boolean hasDynamicLocaleList()
          Is the available locales list dynamic.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

supportedLocales

Map supportedLocales
The available locales. Maps from locale to filename.
Constructor Detail

GateIMDescriptor

public GateIMDescriptor()
Default constructor.
Method Detail

getAvailableLocales

public Locale[] getAvailableLocales()
                             throws AWTException
Gets an Array with the locales supported by the Gate input method.
Specified by:
getAvailableLocales in interface InputMethodDescriptor
Throws:
AWTException -  

hasDynamicLocaleList

public boolean hasDynamicLocaleList()
Is the available locales list dynamic. Always returns false;
Specified by:
hasDynamicLocaleList in interface InputMethodDescriptor

getInputMethodDisplayName

public String getInputMethodDisplayName(Locale inputLocale,
                                        Locale displayLanguage)
Returns the display name for the input method for a given locale.
Specified by:
getInputMethodDisplayName in interface InputMethodDescriptor
Parameters:
inputLocale - the locale for which the display name is sought
displayLanguage - the current locale to be used for displaying the name

getInputMethodIcon

public Image getInputMethodIcon(Locale inputLocale)
Provides an icon for the gate input method.
Specified by:
getInputMethodIcon in interface InputMethodDescriptor
Parameters:
inputLocale -  

createInputMethod

public InputMethod createInputMethod()
                              throws Exception
Creates a new GateIM object and returns a handle.
Specified by:
createInputMethod in interface InputMethodDescriptor
Throws:
Exception -