protected class SBaseTable.MyTableModel extends DefaultTableModel
columnIdentifiers, dataVector
listenerList
Constructor and Description |
---|
MyTableModel(int rowCount,
int columnCount)
Instantiates a new my table model with row count and column count.
|
MyTableModel(Object[][] data,
String[] header)
Instantiates a new my table model with data and header.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCellEditable(int row,
int column)
Returns false regardless of parameter values.
|
void |
updateRow(int row,
Vector<Object> vector)
Update row.
|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public MyTableModel(Object[][] data, String[] header)
data
- the 2D array of Objectheader
- the array of string for headerpublic MyTableModel(int rowCount, int columnCount)
rowCount
- the number of rows the table holdscolumnCount
- the number of columns the table holdspublic boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class DefaultTableModel
row
- the row whose value is to be queriedcolumn
- the column whose value is to be queriedCopyright © 2017–2019 Funahashi Lab.. All rights reserved.