Class TransliteratorInputMethod
java.lang.Object
com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethod
- All Implemented Interfaces:
InputMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Rectangleprivate Pointprivate static final booleanprivate StringBufferprivate static JComboBoxprivate intprivate booleanprivate static intprivate int(package private) InputMethodContextprivate Transliterator.Positionprivate ReplaceableStringprivate intprivate static Windowprivate static TransliteratorInputMethodprivate static booleanprivate static booleanprivate static booleanprivate Transliterator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()private booleanprivate booleanprivate booleanprivate voidprivate voidprivate booleanprivate booleanprivate voidclearAll()private booleanvoiddeactivate(boolean isTemporary) private booleandelete()voiddispatchEvent(AWTEvent event) voiddispose()private voiddoDelete(int start, int limit) voiddumpStatus(String msg) private booleanediting()voidprivate Stringprivate booleanhandlePressed(int code) Handle keyPressed events.private booleanhandleTyped(char ch) The big problem is that from release to release swing changes how it handles some characters like tab and backspace.voidprivate static voidinitStatusWindow(InputMethodContext context) private booleaninsert(char c) booleanvoidnotifyClientWindowChange(Rectangle location) private static voidvoidvoidprivate voidreset()Wipe cleanvoidsetCharacterSubsets(Character.Subset[] subsets) voidsetCompositionEnabled(boolean enable) voidsetInputMethodContext(InputMethodContext context) booleanprivate voidtoString()private voidtraceBuffer(String msg, int cc, int off) private voidupdate(boolean flush) private voidprivate static boolean
-
Field Details
-
attachedStatusWindow
private static final boolean attachedStatusWindow -
statusWindow
-
statusWindowOwner
-
attachedLimits
-
choices
-
attachedLocation
-
gid
private static int gid -
id
private int id -
imc
-
enabled
private boolean enabled -
selectedIndex
private int selectedIndex -
transliterator
-
desiredContext
private int desiredContext -
buffer
-
replaceableText
-
index
-
TRACE_EVENT
private static boolean TRACE_EVENT -
TRACE_MESSAGES
private static boolean TRACE_MESSAGES -
TRACE_BUFFER
private static boolean TRACE_BUFFER
-
-
Constructor Details
-
TransliteratorInputMethod
public TransliteratorInputMethod()
-
-
Method Details
-
usesAttachedIME
private static boolean usesAttachedIME() -
dumpStatus
-
setInputMethodContext
- Specified by:
setInputMethodContextin interfaceInputMethod
-
initStatusWindow
-
statusWindowAction
-
pin
-
notifyClientWindowChange
- Specified by:
notifyClientWindowChangein interfaceInputMethod
-
activate
public void activate()- Specified by:
activatein interfaceInputMethod
-
deactivate
public void deactivate(boolean isTemporary) - Specified by:
deactivatein interfaceInputMethod
-
hideWindows
public void hideWindows()- Specified by:
hideWindowsin interfaceInputMethod
-
setLocale
- Specified by:
setLocalein interfaceInputMethod
-
getLocale
- Specified by:
getLocalein interfaceInputMethod
-
setCharacterSubsets
- Specified by:
setCharacterSubsetsin interfaceInputMethod
-
reconvert
public void reconvert()- Specified by:
reconvertin interfaceInputMethod
-
removeNotify
public void removeNotify()- Specified by:
removeNotifyin interfaceInputMethod
-
endComposition
public void endComposition()- Specified by:
endCompositionin interfaceInputMethod
-
dispose
public void dispose()- Specified by:
disposein interfaceInputMethod
-
getControlObject
- Specified by:
getControlObjectin interfaceInputMethod
-
setCompositionEnabled
public void setCompositionEnabled(boolean enable) - Specified by:
setCompositionEnabledin interfaceInputMethod
-
isCompositionEnabled
public boolean isCompositionEnabled()- Specified by:
isCompositionEnabledin interfaceInputMethod
-
eventInfo
-
dispatchEvent
- Specified by:
dispatchEventin interfaceInputMethod
-
reset
private void reset()Wipe clean -
traceBuffer
-
update
private void update(boolean flush) -
updateCaret
private void updateCaret() -
caretToStart
private void caretToStart() -
caretToLimit
private void caretToLimit() -
caretTowardsStart
private boolean caretTowardsStart() -
caretTowardsLimit
private boolean caretTowardsLimit() -
canBackspace
private boolean canBackspace() -
backspace
private boolean backspace() -
canDelete
private boolean canDelete() -
delete
private boolean delete() -
doDelete
private void doDelete(int start, int limit) -
commitAll
private boolean commitAll() -
clearAll
private void clearAll() -
insert
private boolean insert(char c) -
editing
private boolean editing() -
handleTyped
private boolean handleTyped(char ch) The big problem is that from release to release swing changes how it handles some characters like tab and backspace. Sometimes it handles them as keyTyped events, and sometimes it handles them as keyPressed events. If you want to allow the event to go through so swing handles it, you have to allow one or the other to go through. If you don't want the event to go through so you can handle it, you have to stop the event both places.- Returns:
- whether the character was handled
-
handlePressed
private boolean handlePressed(int code) Handle keyPressed events. -
toString
-