Examples of InputMethodRequests


Examples of java.awt.im.InputMethodRequests

                // If the client component is an active client with the below-the-spot
                // input style, then make the composition window undecorated without a title bar.
                InputMethodContext inputContext = ((InputMethodContext)this);
                if (!inputContext.isCompositionAreaVisible()) {
                      InputMethodRequests req = source.getInputMethodRequests();
                      if (req != null && inputContext.useBelowTheSpotInput()) {
                          inputContext.setCompositionAreaUndecorated(true);
                      } else {
                          inputContext.setCompositionAreaUndecorated(false);
                      }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

     * @return input method requests of composition window if
     * client is passive,
     * otherwise input method requests of client
     */
    private InputMethodRequests getIMRequests() {
        InputMethodRequests imRequests = null;
   
        if (client != null) {
            imRequests = client.getInputMethodRequests();
            if (imRequests == null) {               
                imRequests = getCompositionWindow().getInputMethodRequests();
View Full Code Here

Examples of java.awt.im.InputMethodRequests

    public int getInsertPositionOffset() {
        return getIMRequests().getInsertPositionOffset();
    }

    public TextHitInfo getLocationOffset(int x, int y) {
        InputMethodRequests imr = getStyleIMRequests();
        if (imr != null) {
            return imr.getLocationOffset(x, y);
        }
        return null;
    }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

                    // and send it to passive client or just
                    // redirect this event to active client
                    if (client == null) {
                        return;
                    }
                    InputMethodRequests imr = client.getInputMethodRequests();
                    if (imr != null) {
                        if (IMManager.belowTheSpot()) {
                            // position window below the spot:
                            TextHitInfo offset = TextHitInfo.leading(0);
                            Rectangle textLoc = imr.getTextLocation(offset);
                            setLocationBelow(textLoc);                          
                        } else {
                            client.dispatchEvent(ime);
                            return;
                        }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

     * @return input method requests of composition window if
     * client is passive,
     * otherwise input method requests of client
     */
    private InputMethodRequests getIMRequests() {
        InputMethodRequests imRequests = null;
   
        if (client != null) {
            imRequests = client.getInputMethodRequests();
            if (imRequests == null) {               
                imRequests = getCompositionWindow().getInputMethodRequests();
View Full Code Here

Examples of java.awt.im.InputMethodRequests

    public int getInsertPositionOffset() {
        return getIMRequests().getInsertPositionOffset();
    }

    public TextHitInfo getLocationOffset(int x, int y) {
        InputMethodRequests imr = getStyleIMRequests();
        if (imr != null) {
            return imr.getLocationOffset(x, y);
        }
        return null;
    }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

     * @return input method requests of composition window if
     * client is passive,
     * otherwise input method requests of client
     */
    private InputMethodRequests getIMRequests() {
        InputMethodRequests imRequests = null;
   
        if (client != null) {
            imRequests = client.getInputMethodRequests();
            if (imRequests == null) {               
                imRequests = getCompositionWindow().getInputMethodRequests();
View Full Code Here

Examples of java.awt.im.InputMethodRequests

    public int getInsertPositionOffset() {
        return getIMRequests().getInsertPositionOffset();
    }

    public TextHitInfo getLocationOffset(int x, int y) {
        InputMethodRequests imr = getStyleIMRequests();
        if (imr != null) {
            return imr.getLocationOffset(x, y);
        }
        return null;
    }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

                    // and send it to passive client or just
                    // redirect this event to active client
                    if (client == null) {
                        return;
                    }
                    InputMethodRequests imr = client.getInputMethodRequests();
                    if (imr != null) {
                        if (IMManager.belowTheSpot()) {
                            // position window below the spot:
                            TextHitInfo offset = TextHitInfo.leading(0);
                            Rectangle textLoc = imr.getTextLocation(offset);
                            setLocationBelow(textLoc);                          
                        } else {
                            client.dispatchEvent(ime);
                            return;
                        }
View Full Code Here

Examples of java.awt.im.InputMethodRequests

            return;
        }
        long time = System.currentTimeMillis();
        dispatchingCommittedText = true;
        try {
            InputMethodRequests req = client.getInputMethodRequests();
            if (req != null) {
                // active client -> send text as InputMethodEvent
                int beginIndex = text.getBeginIndex();
                AttributedCharacterIterator toBeCommitted =
                    (new AttributedString(text, beginIndex, beginIndex + committedCharacterCount)).getIterator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.