Package org.jitterbit.ui.util

Examples of org.jitterbit.ui.util.KeyBindingInstaller.install()


   
    private KeyBindingInstaller installKeyBindings(JComponent root) {
        KeyBindingInstaller bindings = new KeyBindingInstaller(root, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
        bindings.addBinding(KeyUtils.UNDO, "undo", new UndoAction());
        bindings.addBinding(KeyUtils.REDO, "redo", new RedoAction());
        bindings.install();
        return bindings;
    }
   
   
    private class UndoAction extends AbstractAction {
View Full Code Here


    private void installKeyBindings(KongaTable table) {
        KeyBindingInstaller keyBindings = new KeyBindingInstaller(table);
        keyBindings.addBinding(null, "undo", undoAction);
        keyBindings.addBinding(null, "redo", redoAction);
        keyBindings.install();
        keyBindingsMap.put(table, keyBindings);
    }

    private void updateActionStates() {
        undoAction.updateEnabledState();
View Full Code Here

    }

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

    @Override
    public void setReceiver(Receiver<Function> r) {
        receiver = r;
View Full Code Here

    }

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

    private void listenToTreeSelections() {
        tree.getTree().addTreeSelectionListener(new TreeSelectionListener() {
View Full Code Here

                public void actionPerformed(ActionEvent e) {
                    showVersionBanner();
                }
            });
        }
        bindings.install();
    }

}
View Full Code Here

    }

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

    private void registerRefreshActionKeyBinding(KeyBindingInstaller installer) {
        installer.addBinding(KeyUtils.F5, "refresh", refreshAction);
    }
View Full Code Here

        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();
    }
   
    public void setWidth(int cols) {
        field.setColumns(cols);
    }
View Full Code Here

        for (Action a : actions) {
            if (a.getValue(Action.ACCELERATOR_KEY) != null) {
                keys.addBinding(null, a.getValue(Action.NAME), a);
            }
        }
        keys.install();
    }

    public ScriptDebugModel getModel() {
        return model;
    }
View Full Code Here

    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();
    }

    final int getVisibleRows() {
        return visibleRowRount;
    }
View Full Code Here

        this.wizard = wizard;
        originalActions = Maps.newHashMap();
        KeyBindingInstaller kb = new KeyBindingInstaller(c);
        installMoveNext(kb, c);
        installMovePrevious(kb, c);
        kb.install();
    }

    /**
     * Installs short cuts for navigating the given wizard. The short cuts are active when the given
     * component has focus.
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.