Package org.ka2ddo.yaac.gui
Class HealthMonitorGui.TMIGate
java.lang.Object
javax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.HealthMonitorGui.TMIGate
- All Implemented Interfaces:
Serializable
,TableModel
,HealthMonitorGui.MonitoredStationGettingModel
,MonitoredStationListener
- Enclosing class:
- HealthMonitorGui
public static class HealthMonitorGui.TMIGate
extends AbstractTableModel
implements MonitoredStationListener, HealthMonitorGui.MonitoredStationGettingModel
TableModel reporting the most recent time an I-gate or digipeater has apparently performed
its duty as an I-gate or digipeater.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Shut down the asynchronous update listeners in this table model.Class<?>
getColumnClass
(int columnIndex) Returns the data Class for the specified column.int
Returns the number of columns in the model.getColumnName
(int column) Returns the localized name for the column.int
Get the number of rows in the table model (effectively, the number of monitored stations).getStation
(int rowIndex) Get the station associated with the specified row.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.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
FILTER
-
-
Constructor Details
-
TMIGate
public TMIGate()Create an Igate/digipeater status table model.
-
-
Method Details
-
getColumnCount
public int getColumnCount()Returns the number of columns in the model.- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- the number of columns in the model
- See Also:
-
getColumnClass
Returns the data Class for the specified column.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
columnIndex
- the column being queried- Returns:
- the Class object for the column's data
-
getColumnName
Returns the localized name for the column.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column being queried- Returns:
- a string containing the name of
column
-
getStation
Get the station associated with the specified row.- Specified by:
getStation
in interfaceHealthMonitorGui.MonitoredStationGettingModel
- Parameters:
rowIndex
- the zero-based row index for the desired station- Returns:
- MonitoredStation at the specified row
-
stationAdded
Tell the listener that a new station has been added to the MonitoredStationList.- Specified by:
stationAdded
in interfaceMonitoredStationListener
- Parameters:
index
- int zero-based position in the list where the station has been addedstation
- MonitoredStation object to add
-
stationUpdated
Tell the listener that data about a MonitoredStation has changed.- Specified by:
stationUpdated
in interfaceMonitoredStationListener
- Parameters:
index
- zero-based index of the station in the MonitoredStationListstation
- MonitoredStation whose data has been updated
-
stationRemoved
Tell the listener that a station is no longer being monitored.- Specified by:
stationRemoved
in interfaceMonitoredStationListener
- Parameters:
index
- int zero-based position in the MonitoredStationList where the station used to bestation
- MonitoredStation being removed
-
getRowCount
public int getRowCount()Get the number of rows in the table model (effectively, the number of monitored stations).- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- number of monitored stations
-
getValueAt
Get the display value for the specified table cell.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
rowIndex
- zero-based row numbercolumnIndex
- zero-based column number- Returns:
- value to display
-
close
public void close()Shut down the asynchronous update listeners in this table model.
-