Home » openjdk-7 » sun » awt » im » [javadoc | source]
sun.awt.im
public class: InputMethodContext [javadoc | source]
java.lang.Object
   java.awt.im.InputContext
      sun.awt.im.InputContext
         sun.awt.im.InputMethodContext

All Implemented Interfaces:
    InputMethodContext, ComponentListener, WindowListener

The InputMethodContext class provides methods that input methods can use to communicate with their client components. It is a subclass of InputContext, which provides methods for use by components.
Constructor:
 public InputMethodContext() 
Method from sun.awt.im.InputMethodContext Summary:
cancelLatestCommittedText,   createInputMethodJFrame,   createInputMethodWindow,   createInputMethodWindow,   dispatchCommittedText,   dispatchEvent,   dispatchInputMethodEvent,   enableClientWindowNotification,   getCommittedText,   getCommittedTextLength,   getInsertPositionOffset,   getLocationOffset,   getSelectedText,   getTextLocation,   grabCompositionArea,   isCompositionAreaVisible,   releaseCompositionArea,   setCompositionAreaUndecorated,   setCompositionAreaVisible,   setInputMethodSupportsBelowTheSpot,   useBelowTheSpotInput
Methods from sun.awt.im.InputContext:
changeInputMethod,   componentHidden,   componentMoved,   componentResized,   componentShown,   disableNativeIM,   dispatchEvent,   dispose,   enableClientWindowNotification,   endComposition,   getClientComponent,   getComponentWindow,   getInputMethodControlObject,   getInputMethodInfo,   getInputMethodLocator,   getLocale,   isCompositionEnabled,   reconvert,   removeNotify,   selectInputMethod,   setCharacterSubsets,   setCompositionEnabled,   windowActivated,   windowClosed,   windowClosing,   windowDeactivated,   windowDeiconified,   windowIconified,   windowOpened
Methods from java.awt.im.InputContext:
dispatchEvent,   dispose,   endComposition,   getInputMethodControlObject,   getInstance,   getLocale,   isCompositionEnabled,   reconvert,   removeNotify,   selectInputMethod,   setCharacterSubsets,   setCompositionEnabled
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.im.InputMethodContext Detail:
 public AttributedCharacterIterator cancelLatestCommittedText(Attribute[] attributes) 
    Calls the current client component's implementation of cancelLatestCommittedText.
 public JFrame createInputMethodJFrame(String title,
    boolean attachToInputContext) 
 public Window createInputMethodWindow(String title,
    boolean attachToInputContext) 
 static Window createInputMethodWindow(String title,
    InputContext context,
    boolean isSwing) 
 synchronized  void dispatchCommittedText(Component client,
    AttributedCharacterIterator text,
    int committedCharacterCount) 
    Dispatches committed text to a client component. Called by composition window.
 public  void dispatchEvent(AWTEvent event) 
 public  void dispatchInputMethodEvent(int id,
    AttributedCharacterIterator text,
    int committedCharacterCount,
    TextHitInfo caret,
    TextHitInfo visiblePosition) 
 public  void enableClientWindowNotification(InputMethod inputMethod,
    boolean enable) 
 public AttributedCharacterIterator getCommittedText(int beginIndex,
    int endIndex,
    Attribute[] attributes) 
    Calls the current client component's implementation of getCommittedText.
 public int getCommittedTextLength() 
    Calls the current client component's implementation of getCommittedTextLength.
 public int getInsertPositionOffset() 
    Calls the current client component's implementation of getInsertPositionOffset.
 public TextHitInfo getLocationOffset(int x,
    int y) 
    Calls the current client component's implementation of getLocationOffset.
 public AttributedCharacterIterator getSelectedText(Attribute[] attributes) 
    Calls the current client component's implementation of getSelectedText.
 public Rectangle getTextLocation(TextHitInfo offset) 
    Calls the current client component's implementation of getTextLocation.
  void grabCompositionArea(boolean doUpdate) 
    Grabs the composition area for use by this context. If doUpdate is true, updates the composition area with previously sent composed text.
 boolean isCompositionAreaVisible() 
    Calls CompositionAreaHandler.isCompositionAreaVisible() to see whether the composition area is visible or not. Notice that this method is always called on the AWT event dispatch thread.
  void releaseCompositionArea() 
    Releases and closes the composition area if it is currently owned by this context's composition area handler.
  void setCompositionAreaUndecorated(boolean undecorated) 
    Disables or enables decorations for the composition window.
  void setCompositionAreaVisible(boolean visible) 
    Calls CompositionAreaHandler.setCompositionAreaVisible to show or hide the composition area. As isCompositionAreaVisible method, it is always called on AWT event dispatch thread.
  void setInputMethodSupportsBelowTheSpot(boolean supported) 
 boolean useBelowTheSpotInput()