|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.gate.guk.im.GateIM
The Gate input method
Field Summary | |
(package private) java.util.Map |
additionalKeymaps
Not used |
(package private) java.lang.String |
composedText
The composed text; |
(package private) LocaleHandler |
currentHandler
The current locale handler. |
(package private) java.util.Locale |
currentLocale
The active locale |
(package private) State |
currentState
The current state of the current LocaleHandler. |
(package private) java.util.Locale |
defaultLocale
The default locale to be used when this method is loaded and no locale is specified. |
(package private) boolean |
enabled
Is this inpuit method enabled? |
(package private) static boolean |
GIMDEBUG
enables or disables output of GimDPrintln |
private static java.lang.String |
imBase
The resource path to the input methods director |
private static java.awt.Font |
keyboardFont
|
(package private) static KeyboardMap |
keyboardMap
The current virtual keyboard map. |
(package private) java.util.Map |
loadedLocales
The locales that have been loaded already. |
(package private) boolean |
mapVisible
Should the keyboard map be visible? |
(package private) java.awt.im.spi.InputMethodContext |
myContext
The input context |
(package private) java.util.Map |
supportedLocales
The available locales (the locales for which a definition file exists). |
Constructor Summary | |
GateIM(java.util.Map supportedLocales)
Constructs a new Gate input method |
Method Summary | |
void |
activate()
Activates this input method |
void |
deactivate(boolean isTemporary)
Deactivates this input method |
void |
dispatchEvent(java.awt.AWTEvent event)
Called by the system when an input event occures in a component that uses this input method. |
void |
dispose()
Disposes this input method releasing all the memory. |
void |
endComposition()
Ends the curent composition. |
java.awt.im.spi.InputMethodContext |
getContext()
Returns the input context for this input method. |
java.lang.Object |
getControlObject()
Gives the clients a chance to control the bevaviour of this input method by returning a handle to itself. |
GateIMDescriptor |
getDescriptor()
gets the descriptor class for this input method |
static java.lang.String |
getIMBase()
Gets the path inside the classpath where the input methods should be found |
static java.awt.Font |
getKeyboardFont()
returns the current keyboard font, default Arial Unicode MS |
java.util.Locale |
getLocale()
Gets the active locale |
static void |
GimDPrintln(java.lang.String s)
print if debugging enabled... |
void |
hideWindows()
Hides all the windows displayed by the input method. |
boolean |
isCompositionEnabled()
Is this input method enabled? |
protected void |
loadLocale(java.util.Locale locale)
Loads a new locale if it's not already loaded. |
void |
notifyClientWindowChange(java.awt.Rectangle bounds)
Called by the system when the client window has changed size or position. |
void |
reconvert()
Throws a UnsupportedOperationException as this input method does not support recnversion. |
void |
removeNotify()
Called by the system when a client unregisters to this input method. |
void |
setCharacterSubsets(java.lang.Character.Subset[] subsets)
Restricts the character ranges valid for this input method output. |
void |
setCompositionEnabled(boolean enable)
Enables this input method for composition |
static void |
setIMBase(java.lang.String path)
Sets the default path to be used when looking for input methods. |
void |
setInputMethodContext(java.awt.im.spi.InputMethodContext context)
Provides the input method with a context. |
static void |
setKeyboardFont(java.awt.Font font)
sets a new keyboard font |
boolean |
setLocale(java.util.Locale locale)
Selects the active locale |
void |
setMapVisible(boolean mapvis)
Should the virtual keyboard map be visible? |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final boolean GIMDEBUG
java.util.Locale currentLocale
java.util.Locale defaultLocale
LocaleHandler currentHandler
java.awt.im.spi.InputMethodContext myContext
java.util.Map supportedLocales
java.util.Map loadedLocales
LocaleHandler
.boolean enabled
java.lang.String composedText
State currentState
java.util.Map additionalKeymaps
static KeyboardMap keyboardMap
boolean mapVisible
private static java.lang.String imBase
private static java.awt.Font keyboardFont
Constructor Detail |
public GateIM(java.util.Map supportedLocales)
supportedLocales
- Method Detail |
public static void GimDPrintln(java.lang.String s)
public void setInputMethodContext(java.awt.im.spi.InputMethodContext context)
setInputMethodContext
in interface java.awt.im.spi.InputMethod
context
- public boolean setLocale(java.util.Locale locale)
setLocale
in interface java.awt.im.spi.InputMethod
locale
- public java.util.Locale getLocale()
getLocale
in interface java.awt.im.spi.InputMethod
public GateIMDescriptor getDescriptor()
public void setCharacterSubsets(java.lang.Character.Subset[] subsets)
setCharacterSubsets
in interface java.awt.im.spi.InputMethod
subsets
- public void setCompositionEnabled(boolean enable)
setCompositionEnabled
in interface java.awt.im.spi.InputMethod
enable
- public boolean isCompositionEnabled()
isCompositionEnabled
in interface java.awt.im.spi.InputMethod
public void reconvert()
reconvert
in interface java.awt.im.spi.InputMethod
public void dispatchEvent(java.awt.AWTEvent event)
dispatchEvent
in interface java.awt.im.spi.InputMethod
event
- public void notifyClientWindowChange(java.awt.Rectangle bounds)
notifyClientWindowChange
in interface java.awt.im.spi.InputMethod
bounds
- public void activate()
activate
in interface java.awt.im.spi.InputMethod
public void deactivate(boolean isTemporary)
deactivate
in interface java.awt.im.spi.InputMethod
isTemporary
- public void hideWindows()
hideWindows
in interface java.awt.im.spi.InputMethod
public void removeNotify()
removeNotify
in interface java.awt.im.spi.InputMethod
public void endComposition()
endComposition
in interface java.awt.im.spi.InputMethod
public void dispose()
dispose
in interface java.awt.im.spi.InputMethod
public java.lang.Object getControlObject()
getControlObject
in interface java.awt.im.spi.InputMethod
public void setMapVisible(boolean mapvis)
mapvis
- protected void loadLocale(java.util.Locale locale)
locale
- public java.awt.im.spi.InputMethodContext getContext()
public static void setIMBase(java.lang.String path)
path
- The path where im.list and the *.gim files are.public static java.lang.String getIMBase()
public static java.awt.Font getKeyboardFont()
public static void setKeyboardFont(java.awt.Font font)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |