public class TXIGatedStationsTableModel extends javax.swing.table.AbstractTableModel implements Digipeater.TXIGatedStationStatusListener, ColumnSizingTableModel, java.io.Closeable
Constructor and Description |
---|
TXIGatedStationsTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this table model and releases any system resources associated
with it.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
int |
getColumnWidth(int columnIndex)
Specifies the default initial width of a column from this model.
|
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 |
isSizeToFit(int columnIndex)
Specifies whether setWidthToFit() should be enabled on this column
|
void |
txIGatedStationAdded(int index)
Inform listener that a station has been added to the list of I-gated stations.
|
void |
txIGatedStationDeleted(int index)
Inform listener that a station is no longer being I-gated by this station (timed out).
|
void |
txIGatedStationUpdated(int index)
Inform listener that a station has been forwarded again.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedpublic 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 int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
getRowCount()
public int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.getRowCount
in interface javax.swing.table.TableModel
getColumnCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and
rowIndex
.getValueAt
in interface javax.swing.table.TableModel
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic int getColumnWidth(int columnIndex)
getColumnWidth
in interface ColumnSizingTableModel
columnIndex
- int index of the model's column whose width should be obtainedpublic boolean isSizeToFit(int columnIndex)
isSizeToFit
in interface ColumnSizingTableModel
columnIndex
- int index of the model's column whose width should be obtainedpublic void txIGatedStationAdded(int index)
txIGatedStationAdded
in interface Digipeater.TXIGatedStationStatusListener
index
- position in list of I-gated stationspublic void txIGatedStationUpdated(int index)
txIGatedStationUpdated
in interface Digipeater.TXIGatedStationStatusListener
index
- position in list of I-gated stationspublic void txIGatedStationDeleted(int index)
txIGatedStationDeleted
in interface Digipeater.TXIGatedStationStatusListener
index
- position in list of I-gated stationspublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable