Class HexTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.fife.ui.hex.swing.HexTableModel
All Implemented Interfaces:
Serializable, TableModel

public class HexTableModel extends AbstractTableModel
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • editor

      private HexEditor editor
    • doc

      private ByteBuffer doc
    • bytesPerRow

      private int bytesPerRow
    • undoManager

      private UndoManager undoManager
    • columnNames

      private String[] columnNames
    • bitBuf

      private byte[] bitBuf
    • dumpColBuf

      private char[] dumpColBuf
    • byteStringValues

      private String[] byteStringValues
  • Constructor Details

    • HexTableModel

      public HexTableModel(HexEditor editor)
  • Method Details

    • getByte

      public byte getByte(int offset)
    • getByteCount

      public int getByteCount()
    • getBytesPerRow

      public int getBytesPerRow()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int col)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getRowCount

      public int getRowCount()
    • getValueAt

      public 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(String fileName) throws IOException
      Throws:
      IOException
    • setBytes

      public void setBytes(InputStream in) throws IOException
      Throws:
      IOException
    • setValueAt

      public void setValueAt(Object value, int row, int col)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • undo

      public boolean undo()
    • getDoc

      public byte[] getDoc()