Class PageTView.TextEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.cabrillo.tracker.PageTView.TextEdit
- All Implemented Interfaces:
Serializable,UndoableEdit
- Enclosing class:
- PageTView
A class to undo/redo a text edit.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
ConstructorsConstructorDescriptionTextEdit(PageTView.TabView tab, String newText, String prevText) Constructor. -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
TextEdit
Constructor.- Parameters:
tab- the TabView being editednewText- the new textprevText- the previous text
-
-
Method Details
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-