Jadex 0.96-beta1

jadex.util.jtable
Class AbstractIndexTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jadex.util.jtable.DelegateTableModel
          extended by jadex.util.jtable.AbstractIndexTableModel
All Implemented Interfaces:
Serializable, EventListener, TableModelListener, TableModel
Direct Known Subclasses:
SorterFilterTableModel

public abstract class AbstractIndexTableModel
extends DelegateTableModel

See Also:
Serialized Form

Constructor Summary
AbstractIndexTableModel(TableModel delegate)
           
 
Method Summary
 int getRowCount()
          Get the number of rows in the table.
 Object getValueAt(int rowIndex, int columnIndex)
           
 int mapRow(int rowIndex)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 void tableChanged(TableModelEvent evt)
          Signal that the table has changed in some way.
abstract  void tableRowsDeleted(int column, int firstRow, int lastRow)
           
abstract  void tableRowsInserted(int column, int firstRow, int lastRow)
          Filter the model.
abstract  void tableRowsUpdated(int column, int firstRow, int lastRow)
           
 
Methods inherited from class jadex.util.jtable.DelegateTableModel
getColumnClass, getColumnCount, getColumnName, getDelegate, isCellEditable
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIndexTableModel

public AbstractIndexTableModel(TableModel delegate)
Method Detail

tableRowsInserted

public abstract void tableRowsInserted(int column,
                                       int firstRow,
                                       int lastRow)
Filter the model. Subclasses should implement this methods to provide the filter logic.


tableRowsDeleted

public abstract void tableRowsDeleted(int column,
                                      int firstRow,
                                      int lastRow)

tableRowsUpdated

public abstract void tableRowsUpdated(int column,
                                      int firstRow,
                                      int lastRow)

getRowCount

public int getRowCount()
Get the number of rows in the table.

Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class DelegateTableModel
Returns:
The row count

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Specified by:
getValueAt in interface TableModel
Overrides:
getValueAt in class DelegateTableModel

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class DelegateTableModel

tableChanged

public void tableChanged(TableModelEvent evt)
Signal that the table has changed in some way.

Specified by:
tableChanged in interface TableModelListener
Overrides:
tableChanged in class DelegateTableModel
Parameters:
evt - The TableModelEvent

mapRow

public int mapRow(int rowIndex)

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.