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, removeTableModelListener
public 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.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedcolumnIndex
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queriedcolumn
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- 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.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- Object of the new valuerowIndex
- zero-based row index of the cellcolumnIndex
- zero-based column index of the cell