Class Command


  • public class Command
    extends Object
    A command object. Consists of a do and an undo action.
    Author:
    Herbert Prähofer
    • Field Detail

      • doAction

        public final Runnable doAction
        The do action
      • undoAction

        public final Runnable undoAction
        The undo action
    • Constructor Detail

      • Command

        public Command​(Runnable doCmd,
                       Runnable undoCmd)
        Constructor initializing the do and the undo action.
        Parameters:
        doCmd - the do action
        undoCmd - the undo action