Package org.jitterbit.ui.undo

Examples of org.jitterbit.ui.undo.UndoRedoController


     *
     * @throws NullPointerException
     *             if <tt>combo</tt> is null.
     */
    public UndoRedoController newController(JComboBox combo) {
        UndoRedoController ctrl = new ComboBoxUndoRedoController(combo);
        customizeController(ctrl);
        return ctrl;
    }
View Full Code Here


        }
        dialog.setVisible(b);
    }

    private UndoRedoController installUndoRedo() {
        UndoRedoController ctrl = dialog.enableUndoRedoForTextComponents(UndoRedoControllers.textFactory());
        undoButton.setAction(ctrl.getUndoAction());
        undoButton.setText("");
        redoButton.setAction(ctrl.getRedoAction());
        redoButton.setText("");
        return ctrl;
    }
View Full Code Here

    public static UndoRedoController enableUndoRedoForTextComponents(JDialog dlg, TextUndoRedoControllerFactory factory) {
        Container cp = dlg.getContentPane();
        if (!(cp instanceof JComponent)) {
            throw new IllegalArgumentException("The dialog's content pane must be a JComponent");
        }
        final UndoRedoController ctrl = factory.newController((JComponent) cp);
        dlg.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosed(WindowEvent e) {
                ctrl.dispose();
            }
        });
        return ctrl;
    }
View Full Code Here

     *
     * @throws NullPointerException
     *             if <tt>toggle</tt> is null.
     */
    public UndoRedoController newController(JToggleButton toggle) {
        UndoRedoController ctrl = new ToggleButtonUndoRedoController(toggle);
        customizeController(ctrl);
        return ctrl;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.undo.UndoRedoController

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.