public class BeaconSelectTableModel
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
BeaconSelectTableModel(PortConfig config)
Create the table model for backing a JTable for selecting the beacons to be transmitted
through an associated PortConnector
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the Class for the column's value.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Report whether the specified table cell may be edited by the user.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Specify the new value to be stored in a cell of the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic BeaconSelectTableModel(PortConfig config)
config - PortConfig to be displayed and edited by this modelpublic int getColumnCount()
getRowCount()public int getRowCount()
getColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedcolumnIndexpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - zero-based row index of the cellcolumnIndex - zero-based column index of the cellpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelaValue - Object of the new valuerowIndex - zero-based row index of the cellcolumnIndex - zero-based column index of the cell