Class HexTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class HexTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Detail

      • bytesPerRow

        private int bytesPerRow
      • undoManager

        private javax.swing.undo.UndoManager undoManager
      • columnNames

        private java.lang.String[] columnNames
      • bitBuf

        private byte[] bitBuf
      • dumpColBuf

        private char[] dumpColBuf
      • byteStrVals

        private java.lang.String[] byteStrVals
    • Constructor Detail

      • HexTableModel

        public HexTableModel​(HexEditor editor)
    • Method Detail

      • getByte

        public byte getByte​(int offset)
      • getByteCount

        public int getByteCount()
      • getBytesPerRow

        public int getBytesPerRow()
      • getColumnCount

        public int getColumnCount()
      • getColumnName

        public java.lang.String getColumnName​(int col)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getRowCount

        public int getRowCount()
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)
      • redo

        public boolean redo()
      • removeBytes

        public void removeBytes​(int offset,
                                int len)
      • replaceBytes

        public void replaceBytes​(int offset,
                                 int len,
                                 byte[] bytes)
      • setBytes

        public void setBytes​(java.lang.String fileName)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • setBytes

        public void setBytes​(java.io.InputStream in)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • setValueAt

        public void setValueAt​(java.lang.Object value,
                               int row,
                               int col)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • undo

        public boolean undo()
      • getDoc

        public byte[] getDoc()