Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.table.AbstractTableModel
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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
EventListenerList | listenerList
List of listeners |
Constructor Summary | |
AbstractTableModel()
|
Method Summary | |
void | addTableModelListener(TableModelListener l)
|
int | findColumn(java.lang.String columnName)
Convenience method for locating columns by name. |
void | fireTableCellUpdated(int row,
int column)
Notify all listeners that the value of the cell at (row, column) has been updated. |
void | fireTableChanged(TableModelEvent e)
Forward the given notification event to all TableModelListeners that registered themselves as listeners for this table model. |
void | fireTableDataChanged()
Notify all listeners that all cell values in the table's rows may have changed. |
void | fireTableRowsDeleted(int firstRow,
int lastRow)
Notify all listeners that rows in the (inclusive) range [firstRow, lastRow] have been deleted. |
void | fireTableRowsInserted(int firstRow,
int lastRow)
Notify all listeners that rows in the (inclusive) range [firstRow, lastRow] have been inserted. |
void | fireTableRowsUpdated(int firstRow,
int lastRow)
Notify all listeners that rows in the (inclusive) range [firstRow, lastRow] have been updated. |
void | fireTableStructureChanged()
Notify all listeners that the table's structure has changed. |
java.lang.Class | getColumnClass(int columnIndex)
Returns Object.class by default |
java.lang.String | getColumnName(int column)
Return a default name for the column using spreadsheet conventions: A, B, C, ... |
boolean | isCellEditable(int rowIndex,
int columnIndex)
This default implementation returns false for all cells |
void | removeTableModelListener(TableModelListener l)
|
void | setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
This empty implementation is provided so users don't have to implement this method if their data model is not editable. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected EventListenerList listenerList
Constructor Detail |
public AbstractTableModel()
Method Detail |
public java.lang.String getColumnName(int column)
public int findColumn(java.lang.String columnName)
public java.lang.Class getColumnClass(int columnIndex)
public boolean isCellEditable(int rowIndex, int columnIndex)
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
public void addTableModelListener(TableModelListener l)
public void removeTableModelListener(TableModelListener l)
protected void fireTableDataChanged()
protected void fireTableStructureChanged()
setModel(TableModel)
on the JTable.protected void fireTableRowsInserted(int firstRow, int lastRow)
protected void fireTableRowsUpdated(int firstRow, int lastRow)
protected void fireTableRowsDeleted(int firstRow, int lastRow)
protected void fireTableCellUpdated(int row, int column)
protected void fireTableChanged(TableModelEvent e)
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |