Class ConfigStationLocation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ConfigStationLocation extends AbstractWizardCard
This is the third card in the config wizard, specifying the station location.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • ConfigStationLocation

      public ConfigStationLocation()
      Create the station location source configuration panel.
  • 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:
      ConfigPort or ConfigPortList card to display, depending on whether a GPS is going to be configured
      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:
      ConfigStationType 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
    • 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:
    • 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
    • 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. This card checkpoints any updates to the beacon lat/lon.
      Overrides:
      cardRemoved in class AbstractWizardCard
      Parameters:
      byNext - boolean true if this method was called because the Next button was pressed, false otherwise