Class ConfigPortList

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TableModel

public class ConfigPortList extends AbstractWizardCard implements TableModel
This defines a card in the configuration wizard for listing current APRS ports and requesting adding more.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • ConfigPortList

      public ConfigPortList()
      Create a wizard card for managing the non-GPS ports in YAAC.
  • Method Details

    • cardAdded

      public void cardAdded(boolean byNext)
      Called by WizardPanel when this card is first displayed in the wizard, so any additional context-specific initialization can be done that requires the card to be installed into a valid Window-rooted AWT hierarchy.
      Overrides:
      cardAdded in class AbstractWizardCard
      Parameters:
      byNext - boolean true if this method was called because the Next button was pressed, false otherwise
    • allowsNext

      public boolean allowsNext()
      Specify whether this card should allow the Next button to work in the wizard.
      Specified by:
      allowsNext in class AbstractWizardCard
      Returns:
      boolean true if the Next button should be enabled
      See Also:
    • allowsBack

      public boolean allowsBack()
      Specify whether this card should allow the Back button to work in the wizard.
      Specified by:
      allowsBack in class AbstractWizardCard
      Returns:
      boolean true if the Back button should be enabled
      See Also:
    • allowsFinish

      public boolean allowsFinish()
      Specify whether this card should allow the Finish button to work in the wizard.
      Specified by:
      allowsFinish in class AbstractWizardCard
      Returns:
      boolean true if the Finish button should be enabled
      See Also:
    • getPreviousCard

      public AbstractWizardCard getPreviousCard()
      Get the AbstractWizardCard instance that should be displayed when the user clicks the Back button. Will only be called if allowsBack() returns true.
      Overrides:
      getPreviousCard in class AbstractWizardCard
      Returns:
      ConfigStationLocation card to display
      See Also:
    • getNextCard

      public AbstractWizardCard getNextCard()
      Get the AbstractWizardCard instance that should be displayed when the user clicks the Next button. Will only be called if allowsNext() returns true.
      Overrides:
      getNextCard in class AbstractWizardCard
      Returns:
      ConfigBeacon card to display
      See Also:
    • getHelpTag

      public String getHelpTag()
      Return the tag into the YAACHelpMap.jhm file for displaying help for this card if the Help button is clicked. If this returns null, a Help button will not be displayed.
      Overrides:
      getHelpTag in class AbstractWizardCard
      Returns:
      String tag into the Help.jhm file, or null for no help tag
    • getTitleTag

      public String getTitleTag()
      Returns the tag into the localized ResourceBundles for the text to be displayed as the dialog title for this wizard card.
      Overrides:
      getTitleTag in class AbstractWizardCard
      Returns:
      String tag into the ResourceBundles
      See Also:
    • 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 columnIndex)
      Returns the localized name for the column.
      Specified by:
      getColumnName in interface TableModel
      Parameters:
      columnIndex - 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
      Parameters:
      columnIndex - the column being queried
      Returns:
      the Class object for the column's data
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Returns true if the cell at rowIndex and columnIndex is editable. Otherwise, setValueAt on the cell will not change the value of that cell.
      Specified by:
      isCellEditable in interface TableModel
      Parameters:
      rowIndex - the row whose value to be queried
      columnIndex - the column whose value to be queried
      Returns:
      true if the cell is editable
      See Also:
    • 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
    • setValueAt

      public void setValueAt(Object aValue, int rowIndex, int columnIndex)
      Sets the value in the cell at columnIndex and rowIndex to aValue.
      Specified by:
      setValueAt in interface TableModel
      Parameters:
      aValue - the new value
      rowIndex - the row whose value is to be changed
      columnIndex - the column whose value is to be changed
      See Also:
    • addTableModelListener

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

      public void removeTableModelListener(TableModelListener l)
      Removes a listener from the list that is notified each time a change to the data model occurs.
      Specified by:
      removeTableModelListener in interface TableModel
      Parameters:
      l - the TableModelListener