Class UndoMgr
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- javax.swing.undo.CompoundEdit
-
- javax.swing.undo.UndoManager
-
- org.apache.uima.tools.cvd.control.UndoMgr
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.util.EventListener,javax.swing.event.UndoableEditListener,javax.swing.undo.UndoableEdit
public class UndoMgr extends javax.swing.undo.UndoManager implements java.awt.event.ActionListenerUndo manager for text area.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MainFramemainThe main.private static longserialVersionUIDThe Constant serialVersionUID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent arg0)booleanaddEdit(javax.swing.undo.UndoableEdit arg0)voiddiscardAllEdits()-
Methods inherited from class javax.swing.undo.UndoManager
canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo, undoTo
-
-
-
-
Field Detail
-
main
private final MainFrame main
The main.
-
serialVersionUID
private static final long serialVersionUID
The Constant serialVersionUID.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UndoMgr
public UndoMgr(MainFrame frame)
Instantiates a new undo mgr.- Parameters:
frame- the frame
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit arg0)
- Specified by:
addEditin interfacejavax.swing.undo.UndoableEdit- Overrides:
addEditin classjavax.swing.undo.UndoManager
-
discardAllEdits
public void discardAllEdits()
- Overrides:
discardAllEditsin classjavax.swing.undo.UndoManager
-
-