Package java.awt

Examples of java.awt.KeyboardFocusManager.removePropertyChangeListener()


        PropertyChangeListener[] listeners = manager
                .getPropertyChangeListeners("permanentFocusOwner");
        for (int i = listeners.length - 1; i >= 0; i--) {
            if (listeners[i].getClass().getName().startsWith(
                    "javax.swing.JTable")) {
                manager.removePropertyChangeListener("permanentFocusOwner",
                        listeners[i]);
                break;
            }
        }
        if (editorRemover == null) {
View Full Code Here


        private void setKeyboardFocusManager(KeyboardFocusManager current) {
            if (focusManager == current)
                return;
            KeyboardFocusManager old = focusManager;
            if (old != null) {
                old.removePropertyChangeListener("permanentFocusOwner", this);
            }
            focusManager = current;
            if (focusManager != null) {
                focusManager.addPropertyChangeListener("permanentFocusOwner",
                        this);
View Full Code Here

    /**
     * Removes the focus change listener that is installed by this editor.
     */
    private void removeFocusListener() {
        KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
        focusManager.removePropertyChangeListener("permanentFocusOwner", focusChangeListener);
    }

    /**
     * @see org.openquark.gems.client.valueentry.ValueEditor#setEditable(boolean)
     */
 
View Full Code Here

     * Removes the focus listener installed by the editor panel. This must be called
     * when the editor panel is disposed off, otherwise it will leak a focus listener.
     */
    private void removeFocusListener() {
        KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
        focusManager.removePropertyChangeListener("focusOwner", focusListener);       
    }

    /**
     * Sets focus on the component of the editor panel that should have initial focus.
     */   
View Full Code Here

    public void dispose() {
//pns   logger.debug("ChartMediator dispose");
//      logger.info("ChartMediator: dispose");
        KeyboardFocusManager focusManager =
                KeyboardFocusManager.getCurrentKeyboardFocusManager();
        focusManager.removePropertyChangeListener(fpcl);
//        ActionMap actions = getActions();
//        Object[] keys = actions.keys();
//        for ( Object o : keys) {
//            Action a = actions.get(o);
//            if (a instanceof ReflectAction) {
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.