| java.lang.Object nextapp.echo2.app.table.AbstractTableModel
All known Subclasses: nextapp.echo2.app.table.DefaultTableModel,
AbstractTableModel | abstract public class AbstractTableModel implements Serializable,TableModel(Code) | | An abstract implementation of a TableModel .
This class provides the following conveniences for TableModel
implementation development:
- event listener management and notification
- a generic implementation of
getColumnClass() which
returns Object.class
- a generic implementation of
getColumnName() which
returns "spreadsheet-style" column names, i.e.,
A, B, C...Y, Z, AA, AB, AC....
See Also: DefaultTableModel |
Method Summary | |
public void | addTableModelListener(TableModelListener l) | public void | fireTableCellUpdated(int column, int row) Notifies TableModelListener s that the contents of the cell
at the specified coordinate were changed. | public void | fireTableChanged(TableModelEvent e) Notifies TableModelListener s of the specified event. | public void | fireTableDataChanged() Notifies TableModelListener s that the content of the table
(possibly including the number of rows) was changed, but that the table's
structure has remained intact. | public void | fireTableRowsDeleted(int firstRow, int lastRow) Notifies TableModelListener s that rows from
firstRow to lastRow were deleted. | public void | fireTableRowsInserted(int firstRow, int lastRow) Notifies TableModelListener s that the rows from
firstRow to lastRow were inserted. | public void | fireTableRowsUpdated(int firstRow, int lastRow) Notifies TableModelListener s that the data in the rows
from firstRow to lastRow was updated. | public void | fireTableStructureChanged() Notifies TableModelListener that all data in the table may
have changed, including the size and structure of the table. | public Class | getColumnClass(int column) | public String | getColumnName(int column) Returns column names using a "spreadsheet-style" convention, i.e.,
A, B, C...Y, Z, AA, AB, AC... | public EventListenerList | getEventListenerList() Returns the EventListenerList used to register listeners. | public void | removeTableModelListener(TableModelListener l) |
AbstractTableModel | public AbstractTableModel()(Code) | | Default constructor.
|
fireTableCellUpdated | public void fireTableCellUpdated(int column, int row)(Code) | | Notifies TableModelListener s that the contents of the cell
at the specified coordinate were changed.
Parameters: column - the column index Parameters: row - the row index |
fireTableChanged | public void fireTableChanged(TableModelEvent e)(Code) | | Notifies TableModelListener s of the specified event.
Parameters: e - the event |
fireTableDataChanged | public void fireTableDataChanged()(Code) | | Notifies TableModelListener s that the content of the table
(possibly including the number of rows) was changed, but that the table's
structure has remained intact.
|
fireTableRowsDeleted | public void fireTableRowsDeleted(int firstRow, int lastRow)(Code) | | Notifies TableModelListener s that rows from
firstRow to lastRow were deleted.
Parameters: firstRow - the index of the first deleted row Parameters: lastRow - the index of the last deleted row |
fireTableRowsInserted | public void fireTableRowsInserted(int firstRow, int lastRow)(Code) | | Notifies TableModelListener s that the rows from
firstRow to lastRow were inserted.
Parameters: firstRow - the index of the first inserted row Parameters: lastRow - the index of the last inserted row |
fireTableRowsUpdated | public void fireTableRowsUpdated(int firstRow, int lastRow)(Code) | | Notifies TableModelListener s that the data in the rows
from firstRow to lastRow was updated.
in the specified rows was updated.
Parameters: firstRow - the index of the first inserted row Parameters: lastRow - the index of the last inserted row |
fireTableStructureChanged | public void fireTableStructureChanged()(Code) | | Notifies TableModelListener that all data in the table may
have changed, including the size and structure of the table.
|
getEventListenerList | public EventListenerList getEventListenerList()(Code) | | Returns the EventListenerList used to register listeners.
the EventListenerList |
|
|