API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.table. AbstractTableModel View Source
Author(s)
Alan Chung
Philip Milne
Since
Version
1.42 11/17/05
Serial
Hierarchy
 Object
      AbstractTableModel
Implements
 TableModel
 Serializable
Subclasses
Description
publicabstract abstract class AbstractTableModel
  This abstract class provides default implementations for most of the methods in the TableModel interface.
See also:   
Constructors
public AbstractTableModel ()
Methods
Hide/Show inherited methods
public void addTableModelListener (TableModelListener l) [Specified in TableModel]
  Adds a listener to the list that's notified each time a change to the data model occurs.
public int findColumn (String columnName)
  Returns a column given its name.
public void fireTableCellUpdated (int row, int column)
  Notifies all listeners that the value of the cell at [row, column] has been updated.
public void fireTableChanged (TableModelEvent e)
  Forwards the given notification event to all TableModelListeners that registered themselves as listeners for this table model.
public void fireTableDataChanged ()
  Notifies all listeners that all cell values in the table's rows may have changed.
public void fireTableRowsDeleted (int firstRow, int lastRow)
  Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been deleted.
public void fireTableRowsInserted (int firstRow, int lastRow)
  Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been inserted.
public void fireTableRowsUpdated (int firstRow, int lastRow)
  Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been updated.
public void fireTableStructureChanged ()
  Notifies all listeners that the table's structure has changed.
public Class<Object> getColumnClass (int columnIndex) [Specified in TableModel]
  Returns Object.class regardless of columnIndex.
public String getColumnName (int column) [Specified in TableModel]
  Returns a default name for the column using spreadsheet conventions: A, B, C, ...
public T getListeners (Class< T> listenerType)
  Returns an array of all the objects currently registered as FooListeners upon this AbstractTableModel.
public TableModelListener getTableModelListeners ()
  Returns an array of all the table model listeners registered on this model.
public boolean isCellEditable (int rowIndex, int columnIndex) [Specified in TableModel]
  Returns false.
public void removeTableModelListener (TableModelListener l) [Specified in TableModel]
  Removes a listener from the list that's notified each time a change to the data model occurs.
public void setValueAt (Object aValue, int rowIndex, int columnIndex) [Specified in TableModel]
  This empty implementation is provided so users don't have to implement this method if their data model is not editable.
Fields
Hide/Show inherited fields
protected EventListenerList listenerList
List of listeners
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar