|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.table.AbstractTableModel
public abstract class AbstractTableModel
An abstract implementation of a TableModel
.
This class provides the following conveniences for TableModel
implementation development:
getColumnClass()
which
returns Object.class
getColumnName()
which
returns "spreadsheet-style" column names, i.e.,
A, B, C...Y, Z, AA, AB, AC....
DefaultTableModel
,
Serialized FormConstructor Summary | |
---|---|
AbstractTableModel()
Default constructor. |
Method Summary | |
---|---|
void |
addTableModelListener(TableModelListener l)
Adds a listener that will be notified of changes/ |
void |
fireTableCellUpdated(int column,
int row)
Notifies TableModelListener s that the contents of the cell
at the specified coordinate were changed. |
void |
fireTableChanged(TableModelEvent e)
Notifies TableModelListener s of the specified event. |
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. |
void |
fireTableRowsDeleted(int firstRow,
int lastRow)
Notifies TableModelListener s that rows from
firstRow to lastRow were deleted. |
void |
fireTableRowsInserted(int firstRow,
int lastRow)
Notifies TableModelListener s that the rows from
firstRow to lastRow were inserted. |
void |
fireTableRowsUpdated(int firstRow,
int lastRow)
Notifies TableModelListener s that the data in the rows
from firstRow to lastRow was updated. |
void |
fireTableStructureChanged()
Notifies TableModelListener that all data in the table may
have changed, including the size and structure of the table. |
java.lang.Class |
getColumnClass(int column)
Returns Object.class |
java.lang.String |
getColumnName(int column)
Returns column names using a "spreadsheet-style" convention, i.e., A, B, C...Y, Z, AA, AB, AC... |
EventListenerList |
getEventListenerList()
Returns the EventListenerList used to register listeners. |
void |
removeTableModelListener(TableModelListener l)
Removes a listener from being notified of changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nextapp.echo.app.table.TableModel |
---|
getColumnCount, getRowCount, getValueAt |
Constructor Detail |
---|
public AbstractTableModel()
Method Detail |
---|
public void addTableModelListener(TableModelListener l)
TableModel
addTableModelListener
in interface TableModel
l
- the listener to addTableModel.addTableModelListener(nextapp.echo.app.event.TableModelListener)
public void fireTableCellUpdated(int column, int row)
TableModelListener
s that the contents of the cell
at the specified coordinate were changed.
column
- the column indexrow
- the row indexpublic void fireTableDataChanged()
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)
TableModelListener
s that rows from
firstRow
to lastRow
were deleted.
firstRow
- the index of the first deleted rowlastRow
- the index of the last deleted rowpublic void fireTableRowsInserted(int firstRow, int lastRow)
TableModelListener
s that the rows from
firstRow
to lastRow
were inserted.
firstRow
- the index of the first inserted rowlastRow
- the index of the last inserted rowpublic void fireTableRowsUpdated(int firstRow, int lastRow)
TableModelListener
s that the data in the rows
from firstRow
to lastRow
was updated.
in the specified rows was updated.
firstRow
- the index of the first inserted rowlastRow
- the index of the last inserted rowpublic void fireTableStructureChanged()
TableModelListener
that all data in the table may
have changed, including the size and structure of the table.
public void fireTableChanged(TableModelEvent e)
TableModelListener
s of the specified event.
e
- the eventpublic java.lang.Class getColumnClass(int column)
Object.class
getColumnClass
in interface TableModel
column
- the column index (0-based)
TableModel.getColumnClass(int)
public java.lang.String getColumnName(int column)
getColumnName
in interface TableModel
column
- the column index (0-based)
TableModel.getColumnName(int)
public EventListenerList getEventListenerList()
EventListenerList
used to register listeners.
EventListenerList
public void removeTableModelListener(TableModelListener l)
TableModel
removeTableModelListener
in interface TableModel
l
- the listener to removeTableModel.removeTableModelListener(nextapp.echo.app.event.TableModelListener)
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |