public class AddItemCommand extends Command
| Constructor and Description |
|---|
AddItemCommand(Schedule schedule,
Item item,
int index)
Initializes a new instance of the
AddItemCommand 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. |
getSchedulepublic AddItemCommand(Schedule schedule, Item item, int index)
AddItemCommand class.protected boolean execute()
Command.execute() override.protected void undo()
Command.undo() override.protected void redo()
Command.redo() override.