CMSC 498B: Developing User Interfaces - Spring 2005Undo/Redo and Command Design Pattern | |
Undo / RedoMotivate class of problems that require undo / redo (most UI operations) Brainstorm about how to solve generically Introduce Command design pattern Draw picture of Undo and Redo stack Walk through Undo Example code Discuss granularity (selection, dragging, individual character entry) Discuss irreversible commands (save, load, mail). Do they have to be
irreversible?
Some limited support for Undo built into some controls (i.e., TextBox) |