Package org.opensourcephysics.tools
Class DataToolTable.TableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.tools.DataToolTable.TableEdit
- All Implemented Interfaces:
Serializable
,UndoableEdit
- Enclosing class:
- DataToolTable
A class to undo/redo datatable edits.
- 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
-
TableEdit
Contructor.- Parameters:
type
- may be RENAME_COLUMN_EDIT, DELETE_COLUMN_EDIT, ADD_CELLS_EDIT, DELETE_CELLS_EDIT, ADD_ROWS_EDIT, DELETE_ROWS_EDIT, VALUE_EDIT, DELIMITED_TEXT_EDITcolName
- the column nametarget
- the target rows or column, or previous delimited datavalue
- the value
-
-
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
-