Package org.fife.ui.hex.swing
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 int
private byte[]
private static final long
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
redo()
private void
removeAndAdd
(byte[] toRemove, byte[] toAdd) void
undo()
Methods inherited from class javax.swing.undo.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:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
-
removeAndAdd
private void removeAndAdd(byte[] toRemove, byte[] toAdd)
-