Class UndoActionTest

  • All Implemented Interfaces:
    UndoAction

    public class UndoActionTest
    extends java.lang.Object
    implements UndoAction
    Test of UndoActin, an interface represents an undo or redo action that is maintained on an undo/redo stack, such as that maintained by UndoStackAttribute.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Christopher Brooks
    See Also:
    UndoStackAttribute
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Summary

      Constructors 
      Constructor Description
      UndoActionTest​(java.lang.String name)
      Create a UndoActionTest.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Execute the undo or redo action by printing the name on stdout.
      java.lang.String toString()
      Return a string representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UndoActionTest

        public UndoActionTest​(java.lang.String name)
        Create a UndoActionTest.
        Parameters:
        name - The name of this UndoAction.
    • Method Detail

      • execute

        public void execute()
                     throws java.lang.Exception
        Execute the undo or redo action by printing the name on stdout.
        Specified by:
        execute in interface UndoAction
        Throws:
        java.lang.Exception - If something goes wrong.
      • toString

        public java.lang.String toString()
        Return a string representation of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The name of the class and the name of this object