Inherits javax::swing::table::AbstractTableModel.
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 | |||
| ) | [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 | ) |
Returns the most specific superclass for all the cell values in the column.
| col | the index of the column |
References com.cosylab.cdb.browser.CDBTableModel.getValueAt().
| int com.cosylab.cdb.browser.CDBTableModel.getColumnCount | ( | ) |
Returns the number of columns in the model.
References com.cosylab.cdb.browser.CDBTableModel.colNames.
| String com.cosylab.cdb.browser.CDBTableModel.getColumnName | ( | int | col | ) |
Returns the name of the column at columnIndex.
| col | the index of the column |
References com.cosylab.cdb.browser.CDBTableModel.colNames.
| int com.cosylab.cdb.browser.CDBTableModel.getRowCount | ( | ) |
Returns the number of rows in the model.
References com.cosylab.cdb.browser.CDBTableModel.data.
Referenced by com.cosylab.cdb.browser.CDBTableModel.resetValues(), and com.cosylab.cdb.browser.CDBLogic.saveTable().
| Object com.cosylab.cdb.browser.CDBTableModel.getValueAt | ( | int | row, | |
| int | col | |||
| ) |
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 com.cosylab.cdb.browser.CDBTableModel.data.
Referenced by com.cosylab.cdb.browser.CDBTableModel.getColumnClass(), and com.cosylab.cdb.browser.CDBLogic.saveTable().
| boolean com.cosylab.cdb.browser.CDBTableModel.isCellEditable | ( | int | row, | |
| int | col | |||
| ) |
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 | ( | ) |
| void com.cosylab.cdb.browser.CDBTableModel.setValueAt | ( | Object | value, | |
| int | row, | |||
| int | col | |||
| ) |
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 com.cosylab.cdb.browser.CDBTableModel.data.
Referenced by com.cosylab.cdb.browser.CDBTableModel.resetValues().
| void com.cosylab.cdb.browser.CDBTableModel.storeVal | ( | ) |
String [] com.cosylab.cdb.browser.CDBTableModel.colNames [package] |
Object [][] com.cosylab.cdb.browser.CDBTableModel.data [package] |
HashMap com.cosylab.cdb.browser.CDBTableModel.resetValue = new HashMap() [package] |
1.7.0