Class ConfigPort

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ConfigPort extends AbstractWizardCard
This defines a card in the configuration wizard for configuring an interface port.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • ConfigPort

      public ConfigPort(PortConfig cfg, boolean isNewPort)
      Create a wizard card for editing a particular type or instance of a YAAC I/O port.
      Parameters:
      cfg - PortConfig identifying the type of port to create or the parameters of an existing port to modify
      isNewPort - boolean true if this is to create a new port, false if modifying an existing port
  • Method Details

    • 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 (never for this card)
      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:
      ConfigPortList card to display
      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:
      either ConfigStationLocation or ConfigPortList card to display, depending on whether this card was editing a GPS configuration
      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, the Help button will be disabled.
      Overrides:
      getHelpTag in class AbstractWizardCard
      Returns:
      String tag into the Help.jhm file
    • getTitleTag

      public String getTitleTag()
      Returns the tag into the localized ResourceBundles for the text to be displayed as the border title for this wizard card.
      Overrides:
      getTitleTag in class AbstractWizardCard
      Returns:
      String tag into the ResourceBundles
      See Also:
    • cardRemoved

      public void cardRemoved(boolean byNext)
      Called by WizardPanel when this card is taken down from this wizard, so any cleanup and closure for this panel can be done.
      Overrides:
      cardRemoved in class AbstractWizardCard
      Parameters:
      byNext - boolean true if this method was called because the Next button was pressed, false otherwise