Class AbstractCommand

java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.command.AbstractCommand
Direct Known Subclasses:
AddElementCommand, MoveTopicCommand, RemoveElementCommand

public abstract class AbstractCommand
extends Object
Command interface for the command pattern.
  • Constructor Details

    • AbstractCommand

      public AbstractCommand()
  • Method Details

    • isCommitted

      public boolean isCommitted()
    • setCommitted

      public void setCommitted​(boolean committed)
    • doCommand

      public abstract void doCommand()
      Executes the encapsulated command.
    • redoCommand

      public abstract void redoCommand()
      Executes the encapsulated command from previously calculated results.
    • undoCommand

      public abstract void undoCommand()
      Reverses the encapsulated command.