Class HexTableModel.BytesReplacedUndoableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.fife.ui.hex.swing.HexTableModel.BytesReplacedUndoableEdit
- All Implemented Interfaces:
Serializable, UndoableEdit
- Enclosing class:
HexTableModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private intprivate byte[]private static final longFields inherited from class AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidredo()private voidremoveAndAdd(byte[] toRemove, byte[] toAdd) voidundo()Methods inherited from class AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
offs
private int offs -
removed
private byte[] removed -
added
private byte[] added
-
-
Constructor Details
-
BytesReplacedUndoableEdit
BytesReplacedUndoableEdit(int offs, byte[] removed, byte[] added)
-
-
Method Details
-
undo
public void undo()- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit
-
removeAndAdd
private void removeAndAdd(byte[] toRemove, byte[] toAdd)
-