All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.awt.HexTableModel
java.lang.Object
   |
   +----javax.swing.table.AbstractTableModel
           |
           +----kh.awt.HexTableModel

  Summary

public abstract class  HexTableModel
     extends javax.swing.table.AbstractTableModel
{
          // Constructors 1
     public HexTableModel();

          // Methods 12
     public abstract int getByAddress(int) throws Exception;
     public int getBytesPerRow();
     public Class getColumnClass(int);
     public int getColumnCount();
     public String getColumnName(int);
     public abstract int getEndAddress();
     public int getRowCount();
     public abstract int getStartAddress();
     public Object getValueAt(int, int);
     public boolean isCellEditable(int, int);
     protected void setByAddress(int, int) throws Exception;
     public void setValueAt(Object, int, int);
}




  Constructors

· HexTableModel

Summary  |  Top

   public HexTableModel() 

Default constructor



  Methods

· getByAddress

Summary  |  Top
   public abstract int getByAddress(int address)  throws Exception


· getBytesPerRow

Summary  |  Top
   public int getBytesPerRow() 

Subclasses can override this method, but I default to 16 bytes per row



· getColumnClass

Summary  |  Top
   public Class getColumnClass(int columnIndex) 

Returns Integer.class by default

Overrides:
getColumnClass in class AbstractTableModel
Implements:
getColumnClass in interface TableModel


· getColumnCount

Summary  |  Top
   public int getColumnCount() 
Overrides:
getColumnCount in class AbstractTableModel
Implements:
getColumnCount in interface TableModel


· getColumnName

Summary  |  Top
   public String getColumnName(int col) 
Overrides:
getColumnName in class AbstractTableModel
Implements:
getColumnName in interface TableModel


· getEndAddress

Summary  |  Top
   public abstract int getEndAddress() 

Returns:
the last address with data PLUS ONE.


· getRowCount

Summary  |  Top
   public int getRowCount() 
Overrides:
getRowCount in class AbstractTableModel
Implements:
getRowCount in interface TableModel


· getStartAddress

Summary  |  Top
   public abstract int getStartAddress() 

Subclasses must provide the following methods.



· getValueAt

Summary  |  Top
   public Object getValueAt(int row, 
                            int col) 
Overrides:
getValueAt in class AbstractTableModel
Implements:
getValueAt in interface TableModel


· isCellEditable

Summary  |  Top
   public boolean isCellEditable(int rowIndex, 
                                 int columnIndex) 

We let the user edit data values

Overrides:
isCellEditable in class AbstractTableModel
Implements:
isCellEditable in interface TableModel


· setByAddress

Summary  |  Top
   protected void setByAddress(int address, 
                               int value)  throws Exception

Subclasses can override - default is to ignore



· setValueAt

Summary  |  Top
   public void setValueAt(Object aValue, 
                          int row, 
                          int col) 

We let the user change memory values

Overrides:
setValueAt in class AbstractTableModel
Implements:
setValueAt in interface TableModel


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7