|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.cke.browser.UndoHandler
This class handles all things undo-related in Creek. It creates and manages the undo manager object. It also has the undo and redo actions and registers them with the MainWindow class.
Field Summary | |
protected RedoAction |
redoAction
Our global redo action. |
protected CreekUndoManager |
undo
Global undo manager for performing undo/redo events. |
protected UndoAction |
undoAction
Our global undo action. |
Constructor Summary | |
UndoHandler()
Creates a new UndoHandler object, to handle undoable edit events. |
Method Summary | |
void |
reattachEdits(CreekDocument oldDoc,
CreekDocument newDoc)
Tell the edits associated with the old document that they should reattach themselves to the new document. |
void |
removeEdits(CreekDocument doc)
Trim the edits associated with the given document. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Called when a document has performed an edit. |
void |
update()
Causes the undo and redo actions to update themselves. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CreekUndoManager undo
protected UndoAction undoAction
protected RedoAction redoAction
Constructor Detail |
public UndoHandler()
Method Detail |
public void reattachEdits(CreekDocument oldDoc, CreekDocument newDoc)
oldDoc
- previous documentnewDoc
- new documentpublic void removeEdits(CreekDocument doc)
doc
- document being closedpublic void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
e
- undoable edit eventpublic void update()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |