Package org.jitterbit.ui.undo

Examples of org.jitterbit.ui.undo.UndoRedoControllerBase


     * so that they are triggered by standard keyboard shortcuts (<tt>CTRL-Z</tt> and
     * <tt>CTRL-Y</tt>, respectively).
     *
     */
    public ComboBoxUndoRedoController(JComboBox combo) {
        delegate = new UndoRedoControllerBase();
        delegate.addEditSender(new ComboBoxEditSender(combo));
        // Note that we use the WHEN_ANCESTOR_OF_FOCUSED_COMPONENT even though
        // the documentation mentions WHEN_FOCUSED. This is to handle
        // editable comboboxes correctly.
        delegate.installKeyBindings(combo, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
View Full Code Here


     * <tt>CTRL-Y</tt>, respectively).
     *
     */
    public ToggleButtonUndoRedoController(JToggleButton toggle) {
        checkNotNull(toggle, "toggle");
        delegate = new UndoRedoControllerBase();
        delegate.addEditSender(new ToggleButtonEditSender(toggle));
        delegate.installKeyBindings(toggle, JComponent.WHEN_FOCUSED);
    }
View Full Code Here

        init();
        install(textComponents, im, am);
    }

    private void init() {
        delegate = new UndoRedoControllerBase();
        // Make sure any pending edits are sent before an undo or
        // redo request is handled:
        delegate.addUndoRequestFilter(new UndoRequestFilter() {

            @Override
View Full Code Here

TOP

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

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.