public class ChangeItemCommand extends Command
The ChangeItemCommand
constructor records the state of an item, and its
undo()
and redo()
methods restore the item to either its old or new state.
Constructor and Description |
---|
ChangeItemCommand(Schedule schedule,
Item item)
Initializes a new instance of the
ChangeItemCommand class. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
execute()
Command.execute() override. |
protected void |
redo()
Command.redo() override. |
protected void |
undo()
Command.undo() override. |
getSchedule
public ChangeItemCommand(Schedule schedule, Item item)
ChangeItemCommand
class.protected boolean execute()
Command.execute()
override.protected void undo()
Command.undo()
override.protected void redo()
Command.redo()
override.