Package org.opensourcephysics.tools
Class LauncherUndo.NavEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.tools.LauncherUndo.NavEdit
- All Implemented Interfaces:
Serializable
,UndoableEdit
- Enclosing class:
- LauncherUndo
A class to undo/redo a hyperlink or user navigation action.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
NavEdit
Constructor. State arrays are [0] String filename (may be null), [1] String nodepath, [2] Integer pagenumber, [3] URL url (may be null)- Parameters:
oldState
- the prevous state (undo)newState
- the new state (redo)
-
NavEdit
Constructor.- Parameters:
prev
- the prevous node (undo)node
- the new node (redo)
-
-
Method Details
-
undo
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
redo
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
getPresentationName
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-