public class RemoveItemCommand extends Command
| Constructor and Description |
|---|
RemoveItemCommand(Schedule schedule,
Item item,
int index)
Initializes a new instance of the
RemoveItemCommand class. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
execute()
Carries out an action that changes the schedule in some way.
|
protected void |
redo()
Repeats an action that has been undone.
|
protected void |
undo()
Undoes an action, restoring the schedule to the state it was in before carrying out the action.
|
getSchedulepublic RemoveItemCommand(Schedule schedule, Item item, int index)
RemoveItemCommand class.protected boolean execute()
Commands, which return false are never recorded in the command history.
protected void undo()