Class HexTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.fife.ui.hex.swing.HexTableModel
- All Implemented Interfaces:
Serializable, TableModel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private static final String[]private intprivate String[]private ByteBufferprivate char[]private HexEditorprivate static final longprivate UndoManagerFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic charbyteToAsci(byte b) static StringbyteToHexString(byte b) bytegetByte(int offset) intintintgetColumnName(int col) byte[]getDoc()intgetValueAt(int row, int col) booleanredo()voidremoveBytes(int offset, int len) voidreplaceBytes(int offset, int len, byte[] bytes) voidsetBytes(InputStream in, boolean reset) voidvoidsetValueAt(Object value, int row, int col) booleanundo()Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
-
Field Details
-
BYTE_STRING_VALUES
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
editor
-
doc
-
bytesPerRow
private int bytesPerRow -
undoManager
-
columnNames
-
bitBuf
private byte[] bitBuf -
dumpColBuf
private char[] dumpColBuf
-
-
Constructor Details
-
HexTableModel
-
-
Method Details
-
getByte
public byte getByte(int offset) -
getByteCount
public int getByteCount() -
getBytesPerRow
public int getBytesPerRow() -
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowCount
public int getRowCount() -
getValueAt
-
byteToHexString
-
byteToAsci
public static char byteToAsci(byte b) -
redo
public boolean redo() -
removeBytes
public void removeBytes(int offset, int len) -
replaceBytes
public void replaceBytes(int offset, int len, byte[] bytes) -
setBytes
- Throws:
IOException
-
setBytes
- Throws:
IOException
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
undo
public boolean undo() -
getDoc
public byte[] getDoc()
-