Class AnalyzedConfigTable

java.lang.Object
javax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.io.AnalyzedConfigTable
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, TableModel, PortEventListener

public class AnalyzedConfigTable extends AbstractTableModel implements PortEventListener, Closeable
This class displays the current packet relaying capability of the local station.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Details

    • getRowCount

      public int getRowCount()
      Returns the number of rows in the model.
      Specified by:
      getRowCount in interface TableModel
      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 interface TableModel
      Returns:
      the number of columns in the model
      See Also:
    • getColumnName

      public String getColumnName(int column)
      Returns the localized name for the column.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      column - the column being queried
      Returns:
      a string containing the name of column
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Returns the data Class for the specified column.
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
      Parameters:
      columnIndex - the column being queried
      Returns:
      the Class object for the column's data
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
      Returns the value for the cell at columnIndex and rowIndex.
      Specified by:
      getValueAt in interface TableModel
      Parameters:
      rowIndex - the row whose value is to be queried
      columnIndex - the column whose value is to be queried
      Returns:
      the value Object at the specified cell
    • addTableModelListener

      public void addTableModelListener(TableModelListener l)
      Adds a listener to the list that's notified each time a change to the data model occurs.
      Specified by:
      addTableModelListener in interface TableModel
      Overrides:
      addTableModelListener in class AbstractTableModel
      Parameters:
      l - the TableModelListener
    • removeTableModelListener

      public void removeTableModelListener(TableModelListener l)
      Removes a listener from the list that's notified each time a change to the data model occurs.
      Specified by:
      removeTableModelListener in interface TableModel
      Overrides:
      removeTableModelListener in class AbstractTableModel
      Parameters:
      l - the TableModelListener
    • close

      public void close()
      Shut down dynamic listening when the view is closed.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • portTransmitting

      public void portTransmitting(PortConnector port, boolean isTransmitting)
      Reports when the specified port starts or stops transmitting a message.
      Specified by:
      portTransmitting in interface PortEventListener
      Parameters:
      port - PortConnector of relevant port
      isTransmitting - boolean true if transmitting is starting, false if transmitting is ending
    • portReceiving

      public void portReceiving(PortConnector port, boolean isReceiving)
      Reports when the specified port starts or stops receiving a message.
      Specified by:
      portReceiving in interface PortEventListener
      Parameters:
      port - PortConnector of relevant port
      isReceiving - boolean true if receiving is starting, false if receiving is ending
    • portFailed

      public void portFailed(PortConnector port)
      Reports when the port fails for some reason.
      Specified by:
      portFailed in interface PortEventListener
      Parameters:
      port - PortConnector of relevant port
    • showConfig

      public static void showConfig()
      Display the configuration analysis window.