public abstract class Edit
extends java.lang.Object
Constructor and Description |
---|
Edit() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
copy()
Copies the selected item.
|
(package private) abstract void |
cut()
Cuts the selected item.
|
(package private) abstract void |
paste()
Pastes the most recently copied/cut item.
|
(package private) abstract void |
redo()
Redoes the most recently undone change to the gradebook.
|
(package private) abstract void |
undo()
Undoes the most recent change to the gradebook.
|
abstract void undo()
pre: // // A change to the gradebook must have been made during this session. // WorkSpace.prevGradebook != null; post: // // The current workspace gradebook is reverted to the previous gradebook, // and the futureGradebook is set to the old current gradebook. // WorkSpace.gradebook'.equals(WorkSpace.prevGradebook) && WorkSpace.prevGradebook' == null && WorkSpace.futureGradebook.equals(WorkSpace.gradebook);
abstract void redo()
pre: // // A call to undo must have been made during this session. // The futureGradebook must not be null. // WorkSpace.futureGradebook != null; post: // // The current workspace gradebook is set to the future gradebook, // and the prevGradebook is set to the old current gradebook. // WorkSpace.gradebook'.equals(WorkSpace.futureGradebook) && WorkSpace.futureGradebook' == null && WorkSpace.prevGradebook.equals(WorkSpace.gradebook);
abstract void cut()
post: // // The clipboard must contain the contents of the selected context. // The selectedContext must also be cleared. // WorkSpace.clipboard.equals(WorkSpace.selectedContext) && WorkSpace.selectedContext'.empty();
abstract void copy()
post: // // The clipboard must contain the contents of the selected context. // WorkSpace.clipboard.equals(WorkSpace.selectedContext);
abstract void paste()
pre: // // The clipboard must not be empty. // !WorkSpace.clipboard.empty(); post: // // The current selected context must contain the contents of the // clipboard. // WorkSpace.selectedContext.equals(WorkSpace.clipboard);