Package org.fife.ui.hex.swing
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 class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private int
private String[]
private String[]
private ByteBuffer
private char[]
private HexEditor
private static final long
private UndoManager
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
getByte
(int offset) int
int
int
getColumnName
(int col) byte[]
getDoc()
int
getValueAt
(int row, int col) boolean
redo()
void
removeBytes
(int offset, int len) void
replaceBytes
(int offset, int len, byte[] bytes) void
setBytes
(InputStream in) void
void
setValueAt
(Object value, int row, int col) boolean
undo()
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
editor
-
doc
-
bytesPerRow
private int bytesPerRow -
undoManager
-
columnNames
-
bitBuf
private byte[] bitBuf -
dumpColBuf
private char[] dumpColBuf -
byteStringValues
-
-
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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getRowCount
public int getRowCount() -
getValueAt
-
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:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
undo
public boolean undo() -
getDoc
public byte[] getDoc()
-