Package org.apache.harmony.awt.im

Examples of org.apache.harmony.awt.im.InputMethodContext


     * from the indicator on the system taskbar.
     */
    static void onInputLangChange(long lcid) {
        // remember the new locale as selected in the
        // input context of the focused component
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if (imc == null) {
            return;
        }
        InputMethod im = imc.getInputMethod();
        if (im instanceof NativeIM) {
            im.setLocale(hkl2Locale(lcid));
        }

    }
View Full Code Here


        }

    }
   
    private static boolean isActiveClient() {
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if ((imc == null) || (imc.getClient() == null)) {
            return false;
        }
        return (imc.getClient().getInputMethodRequests() != null);
    }
View Full Code Here

public class InputContext {
    protected InputContext() {
    }

    public static InputContext getInstance() {
        return new InputMethodContext();
    }
View Full Code Here

     * from the indicator on the system taskbar.
     */
    static void onInputLangChange(long lcid) {
        // remember the new locale as selected in the
        // input context of the focused component
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if (imc == null) {
            return;
        }
        InputMethod im = imc.getInputMethod();
        if (im instanceof NativeIM) {
            im.setLocale(hkl2Locale(lcid));
        }

    }
View Full Code Here

        }

    }
   
    private static boolean isActiveClient() {
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if ((imc == null) || (imc.getClient() == null)) {
            return false;
        }
        return (imc.getClient().getInputMethodRequests() != null);
    }
View Full Code Here

     * from the indicator on the system taskbar.
     */
    static void onInputLangChange(long lcid) {
        // remember the new locale as selected in the
        // input context of the focused component
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if (imc == null) {
            return;
        }
        InputMethod im = imc.getInputMethod();
        if (im instanceof NativeIM) {
            im.setLocale(hkl2Locale(lcid));
        }

    }
View Full Code Here

        }

    }
   
    private static boolean isActiveClient() {
        InputMethodContext imc = IMManager.getLastActiveIMC();
        if ((imc == null) || (imc.getClient() == null)) {
            return false;
        }
        return (imc.getClient().getInputMethodRequests() != null);
    }
View Full Code Here

public class InputContext {
    protected InputContext() {
    }

    public static InputContext getInstance() {
        return new InputMethodContext();
    }
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.im.InputMethodContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.