src/java.desktop/share/classes/java/awt/im/spi/InputMethodContext.java

Print this page

        

@@ -64,10 +64,23 @@
     public void dispatchInputMethodEvent(int id,
                 AttributedCharacterIterator text, int committedCharacterCount,
                 TextHitInfo caret, TextHitInfo visiblePosition);
 
     /**
+     * Creates an input method event from the arguments given
+     * and dispatches it to the client component. For arguments,
+     * see {@link java.awt.event.InputMethodEvent#InputMethodEvent}.
+     */
+    default
+    public void dispatchInputMethodEvent(int id,
+                AttributedCharacterIterator text, int committedCharacterCount,
+                TextHitInfo caret, TextHitInfo visiblePosition,
+                int replaceStart, int replaceEnd) {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
      * Creates a top-level window for use by the input method.
      * The intended behavior of this window is:
      * <ul>
      * <li>it floats above all document windows and dialogs
      * <li>it and all components that it contains do not receive the focus