Examples of endComposition()


Examples of java.awt.im.InputContext.endComposition()

       
        boolean imported = false;
        if (t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
            InputContext ic = c.getInputContext();
            if (ic != null) {
                ic.endComposition();
            }
           
            try {
                java.util.List list = (List) t.getTransferData(DataFlavor.javaFileListFlavor);
                c.setText(((File) list.get(0)).getPath());
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

        if (! imported) {
            DataFlavor importFlavor = getImportFlavor(t.getTransferDataFlavors(), c);
            if (importFlavor != null) {
                InputContext ic = c.getInputContext();
                if (ic != null) {
                    ic.endComposition();
                }
                try {
                    String text = (String) t.getTransferData(DataFlavor.stringFlavor);
                    Reader r = importFlavor.getReaderForText(t);
                    boolean useRead = false;
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

                DataFlavor flavor = getFlavor(t.getTransferDataFlavors());

                if (flavor != null) {
                    InputContext ic = comp.getInputContext();
                    if (ic != null) {
                        ic.endComposition();
                    }
                    try {
                        String data = (String)t.getTransferData(flavor);

                        ((JTextComponent)comp).replaceSelection(data);
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

                focusLostHandler = new FocusLostHandler();
            }

            // if there is a composed text, process it first
            if ((ic != null) && composedTextExists) {
                ic.endComposition();
                EventQueue.invokeLater(focusLostHandler);
            } else {
                focusLostHandler.run();
            }
        }
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

                            useRead = true;
                        }
                    }
                    InputContext ic = c.getInputContext();
                    if (ic != null) {
                        ic.endComposition();
                    }
                    Reader r = importFlavor.getReaderForText(t);

                    if (modeBetween) {
                        Caret caret = c.getCaret();
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

    focusLostHandler = new FocusLostHandler();
      }
     
      // if there is a composed text, process it first
      if ((ic != null) && composedTextExists) {
    ic.endComposition();
    EventQueue.invokeLater(focusLostHandler);
      } else {
    focusLostHandler.run();
      }
        }
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

                            useRead = true;
                        }
                    }
        InputContext ic = c.getInputContext();
        if (ic != null) {
      ic.endComposition();
        }
                    Reader r = importFlavor.getReaderForText(t);

                    if (modeBetween) {
                        Caret caret = c.getCaret();
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

                DataFlavor flavor = getFlavor(t.getTransferDataFlavors());

                if (flavor != null) {
        InputContext ic = comp.getInputContext();
        if (ic != null) {
      ic.endComposition();
        }
                    try {
                        String data = (String)t.getTransferData(flavor);

                        ((JTextComponent)comp).replaceSelection(data);
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

            eventMask |= AWTEvent.INPUT_METHODS_ENABLED_MASK;
        } else {
            if ((eventMask & AWTEvent.INPUT_METHODS_ENABLED_MASK) != 0) {
                InputContext inputContext = getInputContext();
                if (inputContext != null) {
                    inputContext.endComposition();
                    inputContext.removeNotify(this);
                }
            }
            eventMask &= ~AWTEvent.INPUT_METHODS_ENABLED_MASK;
        }
View Full Code Here

Examples of java.awt.im.InputContext.endComposition()

            eventMask |= AWTEvent.INPUT_METHODS_ENABLED_MASK;
        } else {
            if ((eventMask & AWTEvent.INPUT_METHODS_ENABLED_MASK) != 0) {
                InputContext inputContext = getInputContext();
                if (inputContext != null) {
                    inputContext.endComposition();
                    inputContext.removeNotify(this);
                }
            }
            eventMask &= ~AWTEvent.INPUT_METHODS_ENABLED_MASK;
        }
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.