Class HexTableModel.BytesReplacedUndoableEdit

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.undo.UndoableEdit
    Enclosing class:
    HexTableModel

    private class HexTableModel.BytesReplacedUndoableEdit
    extends javax.swing.undo.AbstractUndoableEdit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] added  
      private int offs  
      private byte[] removed  
      private static long serialVersionUID  
      • Fields inherited from class javax.swing.undo.AbstractUndoableEdit

        RedoName, UndoName
    • Constructor Summary

      Constructors 
      Constructor Description
      BytesReplacedUndoableEdit​(int offs, byte[] removed, byte[] added)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • offs

        private int offs
      • removed

        private byte[] removed
      • added

        private byte[] added
    • Constructor Detail

      • BytesReplacedUndoableEdit

        public BytesReplacedUndoableEdit​(int offs,
                                         byte[] removed,
                                         byte[] added)
    • Method Detail

      • undo

        public void undo()
        Specified by:
        undo in interface javax.swing.undo.UndoableEdit
        Overrides:
        undo in class javax.swing.undo.AbstractUndoableEdit
      • redo

        public void redo()
        Specified by:
        redo in interface javax.swing.undo.UndoableEdit
        Overrides:
        redo in class javax.swing.undo.AbstractUndoableEdit
      • removeAndAdd

        private void removeAndAdd​(byte[] toRemove,
                                  byte[] toAdd)