Class ConfigBeacon

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ConfigBeacon extends AbstractWizardCard
This card finishes up the configuration of YAAC, by asking the user how they want to beacon (now that all the parameters for the beacon are available). The parameters are:
  • whether or not beacons should be enabled
  • whether GPS position should be used (only if a GPS is being used)
  • whether weather data should be reported (only if a weather station is configured)
  • what comment should be added to the beacon message
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • ConfigBeacon

      public ConfigBeacon()
  • Method Details

    • canCardBeRemoved

      public boolean canCardBeRemoved(boolean byNext, boolean byFinish)
      Called by WizardPanel before removing a card, either to switch to another card, or to complete the wizard. By default, returns true, but can be overridden to return false if the card finds some error condition that should not permit the card to be removed.
      Overrides:
      canCardBeRemoved in class AbstractWizardCard
      Parameters:
      byNext - boolean true if because Next button was pushed, false if Back or Finish
      byFinish - boolean true if because Finish button was pushed, false if Back or Next
      Returns:
      boolean true if removal should be allowed
    • isBeaconTextAcceptable

      public static boolean isBeaconTextAcceptable(String comment)
      Validate a free-text beacon comment to ensure that if the operator uses the reserved word EMERGENCY, they really mean to report a real emergency at their station.
      Parameters:
      comment - String free text comment to validate
      Returns:
      boolean true if comment is acceptable
    • 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:
    • 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:
    • 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:
    • 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
    • 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:
      AbstractWizardCard subclass to display
      See Also:
    • 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: