|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--guk.im.GateIM
The Gate input method
Field Summary | |
(package private) Map |
additionalKeymaps
Not used |
(package private) String |
composedText
The composed text; |
(package private) LocaleHandler |
currentHandler
The current locale handler. |
(package private) Locale |
currentLocale
The active locale |
(package private) State |
currentState
The current state of the current LocaleHandler. |
(package private) 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? |
private static String |
imBase
The resource path to the input methods director |
private static Font |
keyboardFont
|
(package private) KeyboardMap |
keyboardMap
The current virtual keyboard map. |
(package private) Map |
loadedLocales
The locales that have been loaded already. |
(package private) boolean |
mapVisible
Should the keyboard map be visible? |
(package private) InputMethodContext |
myContext
The input context |
(package private) Map |
supportedLocales
The available locales (the locales for which a definition file exists). |
Constructor Summary | |
GateIM(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(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. |
InputMethodContext |
getContext()
Returns theinput context for this input method. |
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 String |
getIMBase()
Gets the path inside the classpath where the input methods should be found |
static Font |
getKeyboardFont()
|
Locale |
getLocale()
Gets the active locale |
void |
hideWindows()
Hides all the windows displayed by the input method. |
boolean |
isCompositionEnabled()
Is this input method enabled? |
protected void |
loadLocale(Locale locale)
Loads a new locale if it's not already loaded. |
void |
notifyClientWindowChange(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(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(String path)
Sets the default path to be used when looking for input methods. |
void |
setInputMethodContext(InputMethodContext context)
Provides the input method with a context. |
boolean |
setLocale(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 |
Locale currentLocale
Locale defaultLocale
LocaleHandler currentHandler
InputMethodContext myContext
Map supportedLocales
Map loadedLocales
LocaleHandler
.boolean enabled
String composedText
State currentState
Map additionalKeymaps
KeyboardMap keyboardMap
boolean mapVisible
private static String imBase
private static Font keyboardFont
Constructor Detail |
public GateIM(Map supportedLocales)
supportedLocales
- Method Detail |
public void setInputMethodContext(InputMethodContext context)
setInputMethodContext
in interface InputMethod
context
- public boolean setLocale(Locale locale)
setLocale
in interface InputMethod
locale
- public Locale getLocale()
getLocale
in interface InputMethod
public GateIMDescriptor getDescriptor()
public void setCharacterSubsets(Character.Subset[] subsets)
setCharacterSubsets
in interface InputMethod
subsets
- public void setCompositionEnabled(boolean enable)
setCompositionEnabled
in interface InputMethod
enable
- public boolean isCompositionEnabled()
isCompositionEnabled
in interface InputMethod
public void reconvert()
reconvert
in interface InputMethod
public void dispatchEvent(AWTEvent event)
dispatchEvent
in interface InputMethod
event
- public void notifyClientWindowChange(Rectangle bounds)
notifyClientWindowChange
in interface InputMethod
bounds
- public void activate()
activate
in interface InputMethod
public void deactivate(boolean isTemporary)
deactivate
in interface InputMethod
isTemporary
- public void hideWindows()
hideWindows
in interface InputMethod
public void removeNotify()
removeNotify
in interface InputMethod
public void endComposition()
endComposition
in interface InputMethod
public void dispose()
dispose
in interface InputMethod
public Object getControlObject()
getControlObject
in interface InputMethod
public void setMapVisible(boolean mapvis)
mapvis
- protected void loadLocale(Locale locale)
locale
- public InputMethodContext getContext()
public static void setIMBase(String path)
path
- public static String getIMBase()
public static Font getKeyboardFont()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |