java.lang.Objectjavax.swing.table.AbstractTableModel
All Implemented Interfaces:
TableModel, Serializable
Direct Known Subclasses:
TickQueryTableModel, ResultSetTableModel, DefaultTableModel, ArchiveTableModel, TransactionTableModel, NeurosTableModel, DatabaseItemTableModel, ChecklistTM, ListTableModel, AbstractSortableTableModel, SpeciesTableModel, SpeciesDataTableModel, TickerTableModel, ClassyTableModel, EntryTableModel, StringTableModel, ColumnTableModel
TableModel interface. It takes care of
the management of listeners and provides some conveniences for generating
TableModelEvents and dispatching them to the listeners.
To create a concrete TableModel as a subclass of
AbstractTableModel you need only provide implementations
for the following three methods:
public int getRowCount(); public int getColumnCount(); public Object getValueAt(int row, int column);
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see java.beans.XMLEncoder .
Alan - ChungPhilip - Milne| Field Summary | ||
|---|---|---|
| protected EventListenerList | listenerList | List of listeners |
| Method from javax.swing.table.AbstractTableModel Summary: |
|---|
| addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.swing.table.AbstractTableModel Detail: |
|---|
|
TableModel interface and is not used by the
JTable. |
[row, column] has been updated. |
TableModelListeners that registered
themselves as listeners for this table model. |
JTable should redraw the
table from scratch. The structure of the table (as in the order of the
columns) is assumed to be the same. |
[firstRow, lastRow], inclusive, have been deleted. |
[firstRow, lastRow], inclusive, have been inserted. |
[firstRow, lastRow], inclusive, have been updated. |
JTable receives this event and its
autoCreateColumnsFromModel
flag is set it discards any table columns that it had and reallocates
default columns in the order they appear in the model. This is the
same as calling setModel(TableModel) on the
JTable. |
Object.class regardless of columnIndex. |
column cannot be found,
returns an empty string. |
FooListeners
upon this AbstractTableModel.
FooListeners are registered using the
addFooListener method.
You can specify the TableModelListener[] tmls = (TableModelListener[])(m.getListeners(TableModelListener.class));If no such listeners exist, this method returns an empty array. |
|
|
|
|