public class DeviceTableModelGeneric
extends javax.swing.table.AbstractTableModel
| Constructor | Description |
|---|---|
DeviceTableModelGeneric(java.lang.Object[][] initData,
java.lang.String[] colNames) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteRow(int row) |
Delete an entire row from the table
|
java.lang.Class |
getColumnClass(int column) |
|
int |
getColumnCount() |
Get the number of columns in the table
|
java.lang.String |
getColumnName(int column) |
|
int |
getRowCount() |
Get the number of rows in the table (including blank rows).
|
java.lang.Object |
getValueAt(int row,
int col) |
Get the value in the given table cell.
|
boolean |
isCellEditable(int row,
int column) |
|
void |
setColumnNames(java.lang.String[] newColumnNames) |
|
void |
setValueAt(java.lang.Object value,
int row,
int col) |
Set the value in the given table cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic DeviceTableModelGeneric(java.lang.Object[][] initData,
java.lang.String[] colNames)
public java.lang.Object getValueAt(int row,
int col)
row - row where cell residescol - column where cell residespublic void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in class javax.swing.table.AbstractTableModelvalue - the value to set in the table cell wrapped as an Objectrow - row where cell to set residescol - column where cell to set residespublic int getRowCount()
public int getColumnCount()
public void deleteRow(int row)
row - row to delete from the table.public boolean isCellEditable(int row,
int column)
isCellEditable in class javax.swing.table.AbstractTableModelpublic java.lang.String getColumnName(int column)
getColumnName in class javax.swing.table.AbstractTableModelpublic void setColumnNames(java.lang.String[] newColumnNames)
public java.lang.Class getColumnClass(int column)
getColumnClass in class javax.swing.table.AbstractTableModel