Class TransliteratorInputMethod
java.lang.Object
com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethod
- All Implemented Interfaces:
InputMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Rectangle
private Point
private static final boolean
private StringBuffer
private static JComboBox
private int
private boolean
private static int
private int
(package private) InputMethodContext
private Transliterator.Position
private ReplaceableString
private int
private static Window
private static TransliteratorInputMethod
private static boolean
private static boolean
private static boolean
private Transliterator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
private boolean
private boolean
private boolean
private void
private void
private boolean
private boolean
private void
clearAll()
private boolean
void
deactivate
(boolean isTemporary) private boolean
delete()
void
dispatchEvent
(AWTEvent event) void
dispose()
private void
doDelete
(int start, int limit) void
dumpStatus
(String msg) private boolean
editing()
void
private String
private boolean
handlePressed
(int code) Handle keyPressed events.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.void
private static void
initStatusWindow
(InputMethodContext context) private boolean
insert
(char c) boolean
void
notifyClientWindowChange
(Rectangle location) private static void
void
void
private void
reset()
Wipe cleanvoid
setCharacterSubsets
(Character.Subset[] subsets) void
setCompositionEnabled
(boolean enable) void
setInputMethodContext
(InputMethodContext context) boolean
private void
toString()
private void
traceBuffer
(String msg, int cc, int off) private void
update
(boolean flush) private void
private 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:
setInputMethodContext
in interfaceInputMethod
-
initStatusWindow
-
statusWindowAction
-
pin
-
notifyClientWindowChange
- Specified by:
notifyClientWindowChange
in interfaceInputMethod
-
activate
public void activate()- Specified by:
activate
in interfaceInputMethod
-
deactivate
public void deactivate(boolean isTemporary) - Specified by:
deactivate
in interfaceInputMethod
-
hideWindows
public void hideWindows()- Specified by:
hideWindows
in interfaceInputMethod
-
setLocale
- Specified by:
setLocale
in interfaceInputMethod
-
getLocale
- Specified by:
getLocale
in interfaceInputMethod
-
setCharacterSubsets
- Specified by:
setCharacterSubsets
in interfaceInputMethod
-
reconvert
public void reconvert()- Specified by:
reconvert
in interfaceInputMethod
-
removeNotify
public void removeNotify()- Specified by:
removeNotify
in interfaceInputMethod
-
endComposition
public void endComposition()- Specified by:
endComposition
in interfaceInputMethod
-
dispose
public void dispose()- Specified by:
dispose
in interfaceInputMethod
-
getControlObject
- Specified by:
getControlObject
in interfaceInputMethod
-
setCompositionEnabled
public void setCompositionEnabled(boolean enable) - Specified by:
setCompositionEnabled
in interfaceInputMethod
-
isCompositionEnabled
public boolean isCompositionEnabled()- Specified by:
isCompositionEnabled
in interfaceInputMethod
-
eventInfo
-
dispatchEvent
- Specified by:
dispatchEvent
in 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
-