API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.table. TableModel View Source
Author(s)
Philip Milne
Since
Version
1.27 11/17/05
Serial
Hierarchy
 TableModel
Subinterfaces
Description
public interface TableModel
  The TableModel interface specifies the methods the JTable will use to interrogate a tabular data model.
See also:    JTable
Methods
Hide/Show inherited methods
public void addTableModelListener (TableModelListener l)
  Adds a listener to the list that is notified each time a change to the data model occurs.
public Class<Object> getColumnClass (int columnIndex)
  Returns the most specific superclass for all the cell values in the column.
public int getColumnCount ()
  Returns the number of columns in the model.
public String getColumnName (int columnIndex)
  Returns the name of the column at columnIndex.
public int getRowCount ()
  Returns the number of rows in the model.
public Object getValueAt (int rowIndex, int columnIndex)
  Returns the value for the cell at columnIndex and rowIndex.
public boolean isCellEditable (int rowIndex, int columnIndex)
  Returns true if the cell at rowIndex and columnIndex is editable.
public void removeTableModelListener (TableModelListener l)
  Removes a listener from the list that is notified each time a change to the data model occurs.
public void setValueAt (Object aValue, int rowIndex, int columnIndex)
  Sets the value in the cell at columnIndex and rowIndex to aValue.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar