public class ResetCollectionCommand<T> extends Command
| Constructor and Description |
|---|
ResetCollectionCommand(Workbook workbook,
UndoableCollection<T> collection)
Initializes a new instance of the
ResetCollectionCommand class. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
execute()
Carries out an action that changes the workbook in some way.
|
protected void |
redo()
Repeats an action that has been undone.
|
protected void |
undo()
Undoes an action, restoring the workbook to the state it was in before carrying out the action.
|
getHasEffect, getWorkbookpublic ResetCollectionCommand(Workbook workbook, UndoableCollection<T> collection)
ResetCollectionCommand class.workbook - The Workbook modified by this command.collection - The collection which is cleared.