Package net.sourceforge.marathon.action

Examples of net.sourceforge.marathon.action.KeyStrokeAction


        }
        /* Bailout option if we face problems - by default set to false */
        if (component instanceof MUnknownComponent) {
            if (finder != null)
                finder.markUsed(component);
            recorder.record(new KeyStrokeAction(component.getComponentId(), ks, keyChar, scriptModel, windowMonitor)
                    .enscript(component));
            return;
        }
        /*
         * The final check. See whether anyone in the component heirarchy needs
         * the key. We are handling the TabbedPane using change event - so do
         * not record his keys.
         */
        Component keyForComponent = whoNeedsTheKey(ks, component.getComponent());
        if (keyForComponent == null)
            return;
        MComponent c = finder.getMComponentByComponent(keyForComponent);
        if (c == null || c.recordOtherKeys())
            return;
        keyForComponent = checkInputMap(ks, finder.getTopLevelWindow(component.getComponent()));
        if (keyForComponent == null)
            return;
        if (keyForComponent instanceof JLabel && ((JLabel) keyForComponent).getDisplayedMnemonic() == ks.getKeyCode())
            return;
        focusLost(null);
        if (finder != null)
            finder.markUsed(component);
        recorder.record(new KeyStrokeAction(component.getComponentId(), ks, keyChar, scriptModel, windowMonitor)
                .enscript(component));
    }
View Full Code Here


            failX(failMessage);
        finder.pop();
    }

    public void keystroke(ComponentId id, String keySequence) {
        play(new KeyStrokeAction(id, keySequence, scriptModel, windowMonitor));
    }
View Full Code Here

            return null;
        if (params.size() > 1) {
            return (String) params.remove(0);
        }
        try {
            new KeyStrokeAction(((String) params.get(0)) + "+A", scriptModel, windowMonitor);
            return (String) params.remove(0);
        } catch (Exception e) {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.action.KeyStrokeAction

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.