Package org.jitterbit.ui.util

Examples of org.jitterbit.ui.util.KeyBindingInstaller$Entry


        }, Icons.HELP_ICON, Strings.get("FunctionTree.Help.Tooltip"), false);
        return help;
    }

    private void installHelpActionShortCut() {
        KeyBindingInstaller keys = new KeyBindingInstaller(tree.getTree());
        keys.addBinding(KeyUtils.HELP, "help", helpAction);
        keys.install();
    }
View Full Code Here


            }
        }, icon, Strings.get("ProjectItemTree.Transfer.Tooltip"), true);
    }

    private void installHelpActionShortCut() {
        KeyBindingInstaller keys = new KeyBindingInstaller(tree.getTree());
        keys.addBinding(KeyUtils.HELP, "help", helpAction);
        keys.install();
    }
View Full Code Here

        return link;
    }


    private void installKeyBindings(final JComponent ui) {
        KeyBindingInstaller bindings = new KeyBindingInstaller(ui, JComponent.WHEN_IN_FOCUSED_WINDOW);
        bindings.addBinding(KeyStroke.getKeyStroke('a'), "author", new AbstractAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                MainAuthorDialog.display();
            }
        });
        if (versionBanner != null) {
            bindings.addBinding(KeyStroke.getKeyStroke('v'), "version", new AbstractAction() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    showVersionBanner();
                }
            });
        }
        bindings.install();
    }
View Full Code Here

        layout.south(south);
        return layout;
    }

    private void registerKeyBindings(JComponent root) {
        KeyBindingInstaller installer = new KeyBindingInstaller(root, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
        registerRefreshActionKeyBinding(installer);
        installer.install();
    }
View Full Code Here

        }
        return guard;
    }
   
    private void installKeyBindings() {
        KeyBindingInstaller keys = new KeyBindingInstaller(field);
        keys.addBinding(KeyUtils.UP, "up", new HistoryAction(-1));
        keys.addBinding(KeyUtils.DOWN, "down", new HistoryAction(1));
        keys.addBinding(KeyUtils.ESCAPE, "clear", new ClearTextAction());
        keys.addBinding(KeyUtils.TAB, "complete", new CompletionAction());
        keys.install();
    }
View Full Code Here

            }
        }
    }

    private void bindActionShortCuts(JComponent root, Action[] actions) {
        KeyBindingInstaller keys = new KeyBindingInstaller(root, JComponent.WHEN_IN_FOCUSED_WINDOW);
        for (Action a : actions) {
            if (a.getValue(Action.ACCELERATOR_KEY) != null) {
                keys.addBinding(null, a.getValue(Action.NAME), a);
            }
        }
        keys.install();
    }
View Full Code Here

    public final Action getAddNewAction() {
        return addNewAction;
    }

    final void registerKeyBindings(DocDefTableUi table) {
        KeyBindingInstaller installer = new KeyBindingInstaller(table);
        installer.addBinding(KeyUtils.getCtrlDown(KeyEvent.VK_N), "add", addNewAction);
        installer.addBinding(KeyUtils.getCtrlDown(KeyEvent.VK_U), "up", moveUpAction);
        installer.addBinding(KeyUtils.getCtrlDown(KeyEvent.VK_D), "down", moveDownAction);
        installer.install();
    }
View Full Code Here

    private final Map<KeyStroke, Action> originalActions;
   
    private WizardNavigationKeyBindings(Wizard wizard, JComponent c) {
        this.wizard = wizard;
        originalActions = Maps.newHashMap();
        KeyBindingInstaller kb = new KeyBindingInstaller(c);
        installMoveNext(kb, c);
        installMovePrevious(kb, c);
        kb.install();
    }
View Full Code Here

        ui.add(label);
    }

    public void activate(JComponent detector) {
        this.detector = detector;
        keyBindings = new KeyBindingInstaller(detector, JComponent.WHEN_IN_FOCUSED_WINDOW);
        keyBindings.addBinding(KeyStroke.getKeyStroke(KeyEvent.VK_CAPS_LOCK, 0), "caps_lock", new CapsLockAction()); //$NON-NLS-1$
        keyBindings.install();
    }
View Full Code Here

            showFormulaBuilder(node, result);
        }
    }

    private void installFocusKeyBindings() {
        KeyBindingInstaller bindings = new KeyBindingInstaller(this, WHEN_IN_FOCUSED_WINDOW);
        bindings.addBinding(KeyUtils.getAltDown(KeyEvent.VK_S), "focus-source", new FocusTreeComponentAction(m_sourceTreeComponent));
        bindings.install();
        // We do not install ALT-T for the target tree, since that conflicts with the
        // mnemonic for the top-level Transformation menu. To quickly go to the target
        // tree: ALT-S to focus the source tree, then TAB to move to the target tree.
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.util.KeyBindingInstaller$Entry

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.