public static class HealthMonitorGui.TMIGate extends javax.swing.table.AbstractTableModel implements MonitoredStationListener, HealthMonitorGui.MonitoredStationGettingModel
Modifier and Type | Field and Description |
---|---|
static javax.swing.RowFilter<javax.swing.table.TableModel,java.lang.Integer> |
FILTER |
Constructor and Description |
---|
TMIGate()
Create an Igate/digipeater status table model.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shut down the asynchronous update listeners in this table model.
|
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 |
getRowCount()
Get the number of rows in the table model (effectively, the number of monitored stations).
|
MonitoredStation |
getStation(int rowIndex)
Get the station associated with the specified row.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Get the display value for the specified table cell.
|
void |
stationAdded(int index,
MonitoredStation station)
Tell the listener that a new station has been added to the MonitoredStationList.
|
void |
stationRemoved(int index,
MonitoredStation station)
Tell the listener that a station is no longer being monitored.
|
void |
stationUpdated(int index,
MonitoredStation station)
Tell the listener that data about a MonitoredStation has changed.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final javax.swing.RowFilter<javax.swing.table.TableModel,java.lang.Integer> FILTER
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
getRowCount()
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 MonitoredStation getStation(int rowIndex)
getStation
in interface HealthMonitorGui.MonitoredStationGettingModel
rowIndex
- the zero-based row index for the desired stationpublic void stationAdded(int index, MonitoredStation station)
stationAdded
in interface MonitoredStationListener
index
- int zero-based position in the list where the station has been addedstation
- MonitoredStation object to addpublic void stationUpdated(int index, MonitoredStation station)
stationUpdated
in interface MonitoredStationListener
index
- zero-based index of the station in the MonitoredStationListstation
- MonitoredStation whose data has been updatedpublic void stationRemoved(int index, MonitoredStation station)
stationRemoved
in interface MonitoredStationListener
index
- int zero-based position in the MonitoredStationList where the station used to bestation
- MonitoredStation being removedpublic int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
rowIndex
- zero-based row numbercolumnIndex
- zero-based column numberpublic void close()