psdi.webclient.applet.wfcanvas.editor

Class WorkflowEditorUndo

  • java.lang.Object
    • psdi.webclient.applet.wfcanvas.editor.WorkflowEditorUndo
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected WorkflowEditorUndo(WorkflowEditor editor)
      Constructs an undo stack assocaiated with an editor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void clear()
      Clears the undo stack
      protected int getTopTimestamp()
      Returns the time stamp of the entry on the top of the stack or zero if no entries.
      protected boolean isEmpty()
      Returns the state of the undo stack
      boolean restoreFrame()
      Restores one frame on the undo stack
      void workflowChanged(WorkflowEditEvent e)
      Called when the editor state changes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • undoStack

        protected java.util.Stack undoStack
      • inRestore

        protected boolean inRestore
    • Constructor Detail

      • WorkflowEditorUndo

        protected WorkflowEditorUndo(WorkflowEditor editor)
        Constructs an undo stack assocaiated with an editor
        Parameters:
        editor - The editor
    • Method Detail

      • clear

        protected void clear()
        Clears the undo stack
      • isEmpty

        protected boolean isEmpty()
        Returns the state of the undo stack
        Returns:
        Return true if the stack is empty
      • getTopTimestamp

        protected int getTopTimestamp()
        Returns the time stamp of the entry on the top of the stack or zero if no entries.
        Returns:
        Time stamp of top item
      • restoreFrame

        public boolean restoreFrame()
        Restores one frame on the undo stack
        Returns:
        Return true if undo done and false otherwise