|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.table.AbstractTableModel
echopoint.table.TableModelAdapter
public abstract class TableModelAdapter
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.
| Field Summary | |
|---|---|
protected TableModel |
model
|
| Fields inherited from class nextapp.echo.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TableModelAdapter()
|
|
| Method Summary | |
|---|---|
void |
deleteRow(int row)
Deletes the specified row. |
java.lang.Class |
getColumnClass(int aColumn)
Returns Object.class. |
int |
getColumnCount()
Returns the number of columns in the table. |
java.lang.String |
getColumnName(int aColumn)
Returns the value found at the given coordinate within the table. |
TableModel |
getModel()
|
int |
getRowCount()
Returns the number of rows in the table. |
java.lang.Object |
getValueAt(int col,
int row)
Returns the value found at the given coordinate within the table. |
void |
insertRow(int row,
java.lang.Object[] rowData)
Inserts a row with the provided data. |
boolean |
isRowEditable(int row)
When a table model supports editing of data, this method will be called to query if a row is currently editable. |
void |
setModel(TableModel model)
|
void |
tableChanged(TableModelEvent e)
Invoked when a table is changed. |
| 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 |
| Field Detail |
|---|
protected TableModel model
| Constructor Detail |
|---|
public TableModelAdapter()
| Method Detail |
|---|
public void deleteRow(int row)
row - The row to delete.public java.lang.Class getColumnClass(int aColumn)
AbstractTableModel
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelaColumn - The column number whose class is to be returned.
TableModelpublic int getColumnCount()
TableModel
getColumnCount in interface TableModelTableModelpublic java.lang.String getColumnName(int aColumn)
AbstractTableModel
getColumnName in interface TableModelgetColumnName in class AbstractTableModelaColumn - The column of the value to return.
TableModelpublic TableModel getModel()
TableModelpublic int getRowCount()
TableModel
getRowCount in interface TableModelTableModel
public java.lang.Object getValueAt(int col,
int row)
TableModel
getValueAt in interface TableModelcol - The column of the value to return.row - The row of the value to return.TableModel
public void insertRow(int row,
java.lang.Object[] rowData)
row - The index of the inserted row.rowData - The data for the new.public void setModel(TableModel model)
TableModelpublic void tableChanged(TableModelEvent e)
TableModelListener
tableChanged in interface TableModelListenere - The event describing the action.TableModelpublic boolean isRowEditable(int row)
TableModelWhen a table model supports editing of data, this method will be called to query if a row is currently editable.
isRowEditable in interface TableModelisRowEditable in class AbstractTableModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||