Package net.sourceforge.marathon.action

Examples of net.sourceforge.marathon.action.UndoOperation


        WindowId id = WindowIdCreator.createWindowId(window, windowMonitor);
        WindowStateAction action = new WindowStateAction(id, windowState, scriptModel, windowMonitor);

        if (lastWindowStateAction != null && lastWindowStateAction.equals(action))
            recorder.record(new UndoOperation(lastWindowStateAction, scriptModel, windowMonitor).enscript(id));
        recorder.record(action.enscript(id));
        lastWindowStateAction = action;
    }
View Full Code Here


                // "doubleclick" command:
                MouseEvent e2 = new MouseEvent((Component) e.getSource(), e.getID(), e.getWhen(), e.getModifiersEx(), e.getX(),
                        e.getY(), e.getClickCount() - 1, e.isPopupTrigger(), e.getButton());
                if (finder != null)
                    finder.markUsed(component);
                recorder.record(new UndoOperation(new ClickAction(component.getComponentId(), e2, record_click, scriptModel,
                        windowMonitor), scriptModel, windowMonitor).enscript(component));
            }
            ClickAction click = new ClickAction(component.getComponentId(), e, record_click, scriptModel, windowMonitor);
            if (finder != null)
                finder.markUsed(component);
View Full Code Here

    protected void mouseReleased(MComponent component, MouseEvent e) {
        Component at = SwingUtilities.getDeepestComponentAt((Component) e.getSource(), e.getPoint().x, e.getPoint().y);
        if (mouseComponent != null && at == null && mouseComponent.equals(component)) {
            if (finder != null)
                finder.markUsed(component);
            recorder.record(new UndoOperation(new ClickAction(component.getComponentId(), e, ClickAction.RECORD_CLICK, scriptModel,
                    windowMonitor), scriptModel, windowMonitor).enscript(component));
        }
        mouseComponent = null;
        // focusGained(component);
    }
View Full Code Here

        } else {
            if (!finder.isRawRecording())
                return;
            if (lastClickRecorded != null && lastClickRecordedTime >= dragStartTime) {
                // undo the click:
                recorder.record(new UndoOperation(lastClickRecorded, scriptModel, windowMonitor).enscript(component));
            }
            if (finder != null)
                finder.markUsed(component);
            recorder.record(new DragAction(component.getComponentId(), e, dragStartPoint, e.getPoint(), scriptModel, windowMonitor)
                    .enscript(component));
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.action.UndoOperation

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.