|
|||||||||
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 TableModel
getColumnClass
in class AbstractTableModel
aColumn
- The column number whose class is to be returned.
TableModel
public int getColumnCount()
TableModel
getColumnCount
in interface TableModel
TableModel
public java.lang.String getColumnName(int aColumn)
AbstractTableModel
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
aColumn
- The column of the value to return.
TableModel
public TableModel getModel()
TableModel
public int getRowCount()
TableModel
getRowCount
in interface TableModel
TableModel
public java.lang.Object getValueAt(int col, int row)
TableModel
getValueAt
in interface TableModel
col
- 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)
TableModel
public void tableChanged(TableModelEvent e)
TableModelListener
tableChanged
in interface TableModelListener
e
- The event describing the action.TableModel
public boolean isRowEditable(int row)
TableModel
When a table model supports editing of data, this method will be called to query if a row is currently editable.
isRowEditable
in interface TableModel
isRowEditable
in class AbstractTableModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |