HistoryDocument
interface HistoryDocument
A document with a History, allowing undo
and redo
actions.
Implementing classes must ensure that they only mutate via the History mechanism. If you were to move, delete or add to the document directly then later, undo / redo would break.