MementoCommand

controller.base.command.MementoCommand
trait MementoCommand(val controller: BaseController) extends Command

Implements a util.Command that uses the memento pattern by getting and setting the status using controller.Controller.status.

Attributes

Graph
Supertypes
trait Command
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def execute(): Unit

Executes the command, containing business logic.

Executes the command, containing business logic.

Attributes

Concrete methods

override def doStep(): Unit

Executes the command.

Executes the command.

Attributes

Definition Classes
override def redoStep(): Unit

Redoes the command.

Redoes the command.

Attributes

Definition Classes
override def undoStep(): Unit

Undoes the command.

Undoes the command.

Attributes

Definition Classes

Concrete fields

The current status used for undo and redo. Not private to allow for easier testing.

The current status used for undo and redo. Not private to allow for easier testing.

Attributes