Class TestUndoableOperation

    • Constructor Summary

      Constructors 
      Constructor Description
      TestUndoableOperation​(java.lang.String oldValue, java.lang.String newValue)  
      TestUndoableOperation​(java.lang.String oldValue, java.lang.String newValue, boolean undoable, boolean redoable)  
    • Constructor Detail

      • TestUndoableOperation

        public TestUndoableOperation​(java.lang.String oldValue,
                                     java.lang.String newValue)
      • TestUndoableOperation

        public TestUndoableOperation​(java.lang.String oldValue,
                                     java.lang.String newValue,
                                     boolean undoable,
                                     boolean redoable)
    • Method Detail

      • getOldValue

        public java.lang.String getOldValue()
      • getNewValue

        public java.lang.String getNewValue()
      • canRedo

        public boolean canRedo()
        Description copied from interface: UndoableOperation
        Returns true is the operation can be redone. May return false if in the meantime the object model is in a state that this operation cannot be made redone. Note that you don't have to keep track if the operation has been undone.
        Specified by:
        canRedo in interface UndoableOperation
        Returns:
        true is the operation can be redone, false otherwise
      • canUndo

        public boolean canUndo()
        Description copied from interface: UndoableOperation
        Returns true if the operation can be undone. May return false if in the meantime the object model is in a state that this operation cannot be made undone anymore.
        Specified by:
        canUndo in interface UndoableOperation
        Returns:
        true is the operation can be undone, false otherwise
      • getRedoPresentationName

        public java.lang.String getRedoPresentationName()
        Description copied from interface: UndoableOperation
        A human readable description of the re-do operation (such as "Re-do edit").
        Specified by:
        getRedoPresentationName in interface UndoableOperation
        Returns:
        human readable description of the re-do operation (such as "Re-do edit")
      • getUndoPresentationName

        public java.lang.String getUndoPresentationName()
        Description copied from interface: UndoableOperation
        A human readable description of the undo operation (such as "Undo edit").
        Specified by:
        getUndoPresentationName in interface UndoableOperation
        Returns:
        human readable description of the undo operation (such as "Undo edit")