< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java

Print this page

        

*** 99,109 **** * <p> * This method is called once immediately after instantiating this input * method. * * @param context the input method context for this input method ! * @exception NullPointerException if <code>context</code> is null */ public void setInputMethodContext(InputMethodContext context) { fIMContext = context; } --- 99,109 ---- * <p> * This method is called once immediately after instantiating this input * method. * * @param context the input method context for this input method ! * @exception NullPointerException if {@code context} is null */ public void setInputMethodContext(InputMethodContext context) { fIMContext = context; }
*** 122,132 **** * returns a non-null value. * </ul> * * @param lang locale to input * @return whether the specified locale is supported ! * @exception NullPointerException if <code>locale</code> is null */ public boolean setLocale(Locale lang) { return setLocale(lang, false); } --- 122,132 ---- * returns a non-null value. * </ul> * * @param lang locale to input * @return whether the specified locale is supported ! * @exception NullPointerException if {@code locale} is null */ public boolean setLocale(Locale lang) { return setLocale(lang, false); }
*** 203,224 **** * Dispatches the event to the input method. If input method support is * enabled for the focussed component, incoming events of certain types * are dispatched to the current input method for this component before * they are dispatched to the component's methods or event listeners. * The input method decides whether it needs to handle the event. If it ! * does, it also calls the event's <code>consume</code> method; this * causes the event to not get dispatched to the component's event * processing methods or event listeners. * <p> * Events are dispatched if they are instances of InputEvent or its * subclasses. * This includes instances of the AWT classes KeyEvent and MouseEvent. * <p> * This method is called by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent}. * * @param event the event being dispatched to the input method ! * @exception NullPointerException if <code>event</code> is null */ public void dispatchEvent(final AWTEvent event) { // No-op for Mac OS X. } --- 203,224 ---- * Dispatches the event to the input method. If input method support is * enabled for the focussed component, incoming events of certain types * are dispatched to the current input method for this component before * they are dispatched to the component's methods or event listeners. * The input method decides whether it needs to handle the event. If it ! * does, it also calls the event's {@code consume} method; this * causes the event to not get dispatched to the component's event * processing methods or event listeners. * <p> * Events are dispatched if they are instances of InputEvent or its * subclasses. * This includes instances of the AWT classes KeyEvent and MouseEvent. * <p> * This method is called by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent}. * * @param event the event being dispatched to the input method ! * @exception NullPointerException if {@code event} is null */ public void dispatchEvent(final AWTEvent event) { // No-op for Mac OS X. }
< prev index next >