FileDocCategorySizeDatePackage
TableMap.javaAPI DocExample2818Sat Sep 12 03:01:00 BST 1998None

TableMap

public class TableMap extends AbstractTableModel implements com.sun.java.swing.event.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 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(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(com.sun.java.swing.event.TableModelEvent e)

        fireTableChanged(e);