FileDocCategorySizeDatePackage
TableMap.javaAPI DocExample2031Tue Dec 12 18:59:16 GMT 2000None

TableMap

public class TableMap extends AbstractTableModel implements TableModelListener
In a chain of data manipulators some behaviour is common. TableMap provides most of this behavour and can be subclassed by filters that only need to override a handful of specific methods. TableMap implements TableModel by routing all requests to its model, and TableModelListener by routing all events to its listeners. Inserting a TableMap which has not been subclassed into a chain of table filters should have no effect.
version
1.4 12/17/97
author
Philip Milne

Fields Summary
protected TableModel
model
Constructors Summary
Methods Summary
public java.lang.ClassgetColumnClass(int aColumn)

        return model.getColumnClass(aColumn); 
    
public intgetColumnCount()

        return (model == null) ? 0 : model.getColumnCount(); 
    
public java.lang.StringgetColumnName(int aColumn)

        return model.getColumnName(aColumn); 
    
public javax.swing.table.TableModelgetModel()

        return model;
    
public intgetRowCount()

        return (model == null) ? 0 : model.getRowCount(); 
    
public java.lang.ObjectgetValueAt(int aRow, int aColumn)

        return model.getValueAt(aRow, aColumn); 
    
public booleanisCellEditable(int row, int column)

 
         return model.isCellEditable(row, column); 
    
public voidsetModel(javax.swing.table.TableModel model)

        this.model = model; 
        model.addTableModelListener(this); 
    
public voidsetValueAt(java.lang.Object aValue, int aRow, int aColumn)

        model.setValueAt(aValue, aRow, aColumn); 
    
public voidtableChanged(javax.swing.event.TableModelEvent e)

        fireTableChanged(e);