Package org.ka2ddo.yaac.gui.io
Class AnalyzedConfigTable
java.lang.Object
javax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.io.AnalyzedConfigTable
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,TableModel
,PortEventListener
This class displays the current packet relaying capability of the
local station.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener to the list that's notified each time a change to the data model occurs.void
close()
Shut down dynamic listening when the view is closed.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
Returns the number of rows in the model.getValueAt
(int rowIndex, int columnIndex) Returns the value for the cell atcolumnIndex
androwIndex
.void
portFailed
(PortConnector port) Reports when the port fails for some reason.void
portReceiving
(PortConnector port, boolean isReceiving) Reports when the specified port starts or stops receiving a message.void
portTransmitting
(PortConnector port, boolean isTransmitting) Reports when the specified port starts or stops transmitting a message.void
Removes a listener from the list that's notified each time a change to the data model occurs.static void
Display the configuration analysis window.Methods inherited from class javax.swing.table.AbstractTableModel
findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, setValueAt
-
Method Details
-
getRowCount
public int getRowCount()Returns the number of rows in the model.- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- the number of rows in the model
- See Also:
-
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:
-
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
-
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
-
getValueAt
Returns the value for the cell atcolumnIndex
androwIndex
.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
addTableModelListener
Adds a listener to the list that's notified each time a change to the data model occurs.- Specified by:
addTableModelListener
in interfaceTableModel
- Overrides:
addTableModelListener
in classAbstractTableModel
- Parameters:
l
- the TableModelListener
-
removeTableModelListener
Removes a listener from the list that's notified each time a change to the data model occurs.- Specified by:
removeTableModelListener
in interfaceTableModel
- Overrides:
removeTableModelListener
in classAbstractTableModel
- Parameters:
l
- the TableModelListener
-
close
public void close()Shut down dynamic listening when the view is closed.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
portTransmitting
Reports when the specified port starts or stops transmitting a message.- Specified by:
portTransmitting
in interfacePortEventListener
- Parameters:
port
- PortConnector of relevant portisTransmitting
- boolean true if transmitting is starting, false if transmitting is ending
-
portReceiving
Reports when the specified port starts or stops receiving a message.- Specified by:
portReceiving
in interfacePortEventListener
- Parameters:
port
- PortConnector of relevant portisReceiving
- boolean true if receiving is starting, false if receiving is ending
-
portFailed
Reports when the port fails for some reason.- Specified by:
portFailed
in interfacePortEventListener
- Parameters:
port
- PortConnector of relevant port
-
showConfig
public static void showConfig()Display the configuration analysis window.
-