| CS 1371 Dept. Presents: |
Class MyApplication
| Method Summary | |
|---|---|
| MyApplication ( data ) Constructor that creates a MyApplication object |
|
The string representation of the MyApplication object which will include the contents of the undoStack in this format: MyApplication: undoStack: <undoStack value> |
|
| display ( )
Command window display of a MyApplication object |
|
| doAction ( )
Takes in an AppAction
object, add it to the undoStack, and executes that action. |
|
| undo ( )
Pops off the top AppAction object from the undoStack, and undo that action. |
|
| Method Detail |
|---|
ma = MyApplication( data )
Creates an AppAction object app
If the constructor is called with no parameters, it will create the undoStack.
If it is called with a paramater, it will assume that the parameter is a MyApplication object and will make a copy of it.