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
public class HexTableModel extends AbstractTableModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description HexTableModel(HexEditor editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetByte(int offset)intgetByteCount()intgetBytesPerRow()intgetColumnCount()StringgetColumnName(int col)byte[]getDoc()intgetRowCount()ObjectgetValueAt(int row, int col)booleanredo()voidremoveBytes(int offset, int len)voidreplaceBytes(int offset, int len, byte[] bytes)voidsetBytes(InputStream in)voidsetBytes(String fileName)voidsetValueAt(Object value, int row, int col)booleanundo()-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
-
-
-
-
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 String getColumnName(int col)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
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:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
undo
public boolean undo()
-
getDoc
public byte[] getDoc()
-
-