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 Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
Modifier and Type Method Description abstract void
doCommand()
Executes the encapsulated command.boolean
isCommitted()
abstract void
redoCommand()
Executes the encapsulated command from previously calculated results.void
setCommitted(boolean committed)
abstract void
undoCommand()
Reverses the encapsulated command.
-
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.
-