Class TransliteratorInputMethod

java.lang.Object
com.ibm.icu.dev.tool.ime.translit.TransliteratorInputMethod
All Implemented Interfaces:
InputMethod

public class TransliteratorInputMethod extends Object implements InputMethod
  • Field Details

    • attachedStatusWindow

      private static final boolean attachedStatusWindow
    • statusWindow

      private static Window statusWindow
    • statusWindowOwner

      private static TransliteratorInputMethod statusWindowOwner
    • attachedLimits

      private static Rectangle attachedLimits
    • choices

      private static JComboBox choices
    • attachedLocation

      private Point attachedLocation
    • gid

      private static int gid
    • id

      private int id
    • imc

    • enabled

      private boolean enabled
    • selectedIndex

      private int selectedIndex
    • transliterator

      private Transliterator transliterator
    • desiredContext

      private int desiredContext
    • buffer

      private StringBuffer buffer
    • replaceableText

      private ReplaceableString replaceableText
    • index

      private Transliterator.Position 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

      public void dumpStatus(String msg)
    • setInputMethodContext

      public void setInputMethodContext(InputMethodContext context)
      Specified by:
      setInputMethodContext in interface InputMethod
    • initStatusWindow

      private static void initStatusWindow(InputMethodContext context)
    • statusWindowAction

      private void statusWindowAction(ActionEvent e)
    • pin

      private static void pin(Point p, Rectangle r)
    • notifyClientWindowChange

      public void notifyClientWindowChange(Rectangle location)
      Specified by:
      notifyClientWindowChange in interface InputMethod
    • activate

      public void activate()
      Specified by:
      activate in interface InputMethod
    • deactivate

      public void deactivate(boolean isTemporary)
      Specified by:
      deactivate in interface InputMethod
    • hideWindows

      public void hideWindows()
      Specified by:
      hideWindows in interface InputMethod
    • setLocale

      public boolean setLocale(Locale locale)
      Specified by:
      setLocale in interface InputMethod
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface InputMethod
    • setCharacterSubsets

      public void setCharacterSubsets(Character.Subset[] subsets)
      Specified by:
      setCharacterSubsets in interface InputMethod
    • reconvert

      public void reconvert()
      Specified by:
      reconvert in interface InputMethod
    • removeNotify

      public void removeNotify()
      Specified by:
      removeNotify in interface InputMethod
    • endComposition

      public void endComposition()
      Specified by:
      endComposition in interface InputMethod
    • dispose

      public void dispose()
      Specified by:
      dispose in interface InputMethod
    • getControlObject

      public Object getControlObject()
      Specified by:
      getControlObject in interface InputMethod
    • setCompositionEnabled

      public void setCompositionEnabled(boolean enable)
      Specified by:
      setCompositionEnabled in interface InputMethod
    • isCompositionEnabled

      public boolean isCompositionEnabled()
      Specified by:
      isCompositionEnabled in interface InputMethod
    • eventInfo

      private String eventInfo(AWTEvent event)
    • dispatchEvent

      public void dispatchEvent(AWTEvent event)
      Specified by:
      dispatchEvent in interface InputMethod
    • reset

      private void reset()
      Wipe clean
    • traceBuffer

      private void traceBuffer(String msg, int cc, int off)
    • 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

      public String toString()
      Overrides:
      toString in class Object