Examples of FlyScanMenu


Examples of fr.soleil.gui.flyscan.gui.custom.menu.FlyScanMenu

        KeyListener searchFieldKeyListener = new KeyAdapter() {
            @Override
            public void keyPressed(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                    FlyScanMenu flyScanMenu = searchFlyScanMenu(e.getComponent());
                    if (flyScanMenu != null) {
                        for (JMenuItem item : flyScanMenu.getItems()) {

                            if (item.isArmed()) {
                                loadAndDisplayConfig(isExpert, item.getText().trim());
                            }

                        }
                        // Close menu
                        flyScanMenu.getPopupMenu().setVisible(false);
                    }
                }
            }
        };

        configurationMenu = new FlyScanMenu(menuItemActionListener, searchFieldKeyListener,
                currentConfigMenuItemActionListener, new FlyScanFilter());
        configurationMenu.setText("Configurations");

        if (useMock) {
            // Mock to load a config file without using the device
View Full Code Here

Examples of fr.soleil.gui.flyscan.gui.custom.menu.FlyScanMenu

    public FlyScanMenu getConfigurationMenu() {
        return configurationMenu;
    }

    protected FlyScanMenu searchFlyScanMenu(Component comp) {
        FlyScanMenu menu;
        if (comp == null) {

            menu = null;
        } else if (comp instanceof FlyScanMenu) {
            menu = (FlyScanMenu) comp;
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.