

Public Member Functions | |
| int | getRowCount () |
| int | getColumnCount () |
| String | getColumnName (int col) |
| Class | getColumnClass (int col) |
| boolean | isCellEditable (int row, int col) |
| Object | getValueAt (int row, int col) |
| void | setValueAt (Object value, int row, int col) |
| void | storeVal () |
| void | resetValues () |
Package Functions | |
| CDBTableModel (Object[][]data, String[]colNames) | |
Package Attributes | |
| Object[][] | data |
| String[] | colNames |
| HashMap | resetValue = new HashMap() |
| com::cosylab::cdb::browser::CDBTableModel::CDBTableModel | ( | Objectdata | [][], | |
| String[] | colNames | |||
| ) | [inline, package] |
Constructs a table model.
| data | the data of the table | |
| colNames | names of the table columns |
| Class com::cosylab::cdb::browser::CDBTableModel::getColumnClass | ( | int | col | ) | [inline] |
Returns the most specific superclass for all the cell values in the column.
| col | the index of the column |
References getValueAt().
| int com::cosylab::cdb::browser::CDBTableModel::getColumnCount | ( | ) | [inline] |
Returns the number of columns in the model.
References colNames.
| String com::cosylab::cdb::browser::CDBTableModel::getColumnName | ( | int | col | ) | [inline] |
Returns the name of the column at columnIndex.
| col | the index of the column |
References colNames.
| int com::cosylab::cdb::browser::CDBTableModel::getRowCount | ( | ) | [inline] |
Returns the number of rows in the model.
References data.
Referenced by resetValues(), and com::cosylab::cdb::browser::CDBLogic::saveTable().
| Object com::cosylab::cdb::browser::CDBTableModel::getValueAt | ( | int | row, | |
| int | col | |||
| ) | [inline] |
Returns the value for the cell at columnIndex and rowIndex.
| row | the row whose value is to be queried | |
| col | the column whose value is to be queried |
References data.
Referenced by getColumnClass(), and com::cosylab::cdb::browser::CDBLogic::saveTable().
| boolean com::cosylab::cdb::browser::CDBTableModel::isCellEditable | ( | int | row, | |
| int | col | |||
| ) | [inline] |
Returns true if the cell at rowIndex and columnIndex is editable.
| row | the row whose value to be queried. | |
| col | the column whose value to be queried . |
| void com::cosylab::cdb::browser::CDBTableModel::resetValues | ( | ) | [inline] |
References getRowCount(), resetValue, and setValueAt().
Referenced by com::cosylab::cdb::browser::CDBLogic::resetTable().
| void com::cosylab::cdb::browser::CDBTableModel::setValueAt | ( | Object | value, | |
| int | row, | |||
| int | col | |||
| ) | [inline] |
Sets the value in the cell at columnIndex and rowIndex to aValue.
| value | the new value | |
| row | the row whose value is to be changed | |
| col | the column whose value is to be changed |
References data.
Referenced by resetValues().
| void com::cosylab::cdb::browser::CDBTableModel::storeVal | ( | ) | [inline] |
References data, and resetValue.
String [] com::cosylab::cdb::browser::CDBTableModel::colNames [package] |
Referenced by getColumnCount(), and getColumnName().
Object [][] com::cosylab::cdb::browser::CDBTableModel::data [package] |
Referenced by getRowCount(), getValueAt(), setValueAt(), and storeVal().
HashMap com::cosylab::cdb::browser::CDBTableModel::resetValue = new HashMap() [package] |
Referenced by resetValues(), com::cosylab::cdb::browser::CDBLogic::saveTable(), and storeVal().
1.6.2