undo
Class Undo
java.lang.Object
undo.Undo
- Direct Known Subclasses:
- CyUndo
public class Undo
- extends Object
Rudimentary support for undo. To post an edit to the manager, call
Undo.getUndoableEditSupport().postEdit(yourEdit). To handle the edits,
you should extend this class and write actions, etc. that use the
UndoManager.
Constructor Summary |
Undo()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Undo
public Undo()
getUndoManager
protected static UndoManager getUndoManager()
- Returns the UndoManager. To preserve encapsulation and to prevent
the wrong hands for mucking with your edit stack, don't make this
public! Rather, extend the class and use this method with the
class and package to set up actions, etc..
- Returns:
- the UndoManager used for managing the edits.
getUndoableEditSupport
public static UndoableEditSupport getUndoableEditSupport()
- Use this method to get the UndoableEditSupport which you should use
to post edits: Undo.getUndoableEditSupport().postEdit(yourEdit).
- Returns:
- the UndoableEditSupport used for posting edits.
Copyright 2010 Cytoscape Consortium. All rights reserved.