echopoint.table
Class TableModelAdapter
java.lang.Object
nextapp.echo.table.AbstractTableModel
echopoint.table.TableModelAdapter
- All Implemented Interfaces:
- java.util.EventListener, java.io.Serializable, nextapp.echo.table.TableModel, nextapp.echo.event.TableModelListener
- Direct Known Subclasses:
- DefaultPagedTableModel, SortableTableModel
- public abstract class TableModelAdapter
- extends nextapp.echo.table.AbstractTableModel
- implements nextapp.echo.event.TableModelListener
TableModelAdapter provides most of the common table behavour and can
be subclassed by filters that only need to override a handful of
specific methods. TableModelAdapter implements TableModel by routing
all requests to its model, and TableModelListener by routing
all events to its listeners.
- See Also:
- Serialized Form
Field Summary |
protected nextapp.echo.table.TableModel |
model
|
Fields inherited from class nextapp.echo.table.AbstractTableModel |
listenerList |
Methods inherited from class nextapp.echo.table.AbstractTableModel |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
protected nextapp.echo.table.TableModel model
TableModelAdapter
public TableModelAdapter()
deleteRow
public void deleteRow(int row)
- Deletes the specified row. NOTE : this will only work if the
underlying TableModel does in fact have an insertRow method, like
DefaultTableModel does.
- Parameters:
row
- The row to delete.
getColumnClass
public java.lang.Class getColumnClass(int aColumn)
- Specified by:
getColumnClass
in interface nextapp.echo.table.TableModel
- See Also:
TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface nextapp.echo.table.TableModel
- See Also:
TableModel
getColumnName
public java.lang.String getColumnName(int aColumn)
- Specified by:
getColumnName
in interface nextapp.echo.table.TableModel
- See Also:
TableModel
getModel
public nextapp.echo.table.TableModel getModel()
- See Also:
TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface nextapp.echo.table.TableModel
- See Also:
TableModel
getValueAt
public java.lang.Object getValueAt(int col,
int row)
- Specified by:
getValueAt
in interface nextapp.echo.table.TableModel
- See Also:
TableModel
insertRow
public void insertRow(int row,
java.lang.Object[] rowData)
- Inserts a row with the provided data. NOTE : this will only work if the
underlying TableModel does in fact have an insertRow method, like
DefaultTableModel does.
- Parameters:
row
- The index of the inserted row.rowData
- The data for the new.
setModel
public void setModel(nextapp.echo.table.TableModel model)
- See Also:
TableModel
tableChanged
public void tableChanged(nextapp.echo.event.TableModelEvent e)
- Specified by:
tableChanged
in interface nextapp.echo.event.TableModelListener
- See Also:
TableModel