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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
supportedLocales
Map supportedLocales
- The available locales. Maps from locale to filename.
GateIMDescriptor
public GateIMDescriptor()
- Default constructor.
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 soughtdisplayLanguage
- 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
-