Enum Class PortConfig.HintType

java.lang.Object
java.lang.Enum<PortConfig.HintType>
org.ka2ddo.yaac.io.PortConfig.HintType
All Implemented Interfaces:
Serializable, Comparable<PortConfig.HintType>, Constable
Enclosing class:
PortConfig

public static enum PortConfig.HintType extends Enum<PortConfig.HintType>
For the ConfigImporter, provide hints of how required but non-transferable config fields should be asked for.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Enum Constant Details

    • TEXT

      public static final PortConfig.HintType TEXT
      Just prompt with a plain text edit field.
    • TEXT_UC

      public static final PortConfig.HintType TEXT_UC
      Just prompt with a plain text edit field, but only accept uppercase.
    • SERIAL_PORTS

      public static final PortConfig.HintType SERIAL_PORTS
      Prompt with a combo box pre-loaded with available serial ports.
    • APRSIS_HOSTS

      public static final PortConfig.HintType APRSIS_HOSTS
      Prompt with a combo box pre-loaded with standard APRS-IS Tier 2 rotator hostnames.
    • LOCALHOST

      public static final PortConfig.HintType LOCALHOST
      Prompt with a combo box pre-loaded with the localhost name.
    • FILE_CHOOSER

      public static final PortConfig.HintType FILE_CHOOSER
      Prompt with a file chooser. PortConfig.RequireHints for this type must be a PortConfig.RequireFile.
    • GENERIC_CALL_FOR_NAMELIST

      public static final PortConfig.HintType GENERIC_CALL_FOR_NAMELIST
      Prompt with a combo box loaded with a String array obtained from a static getDeviceNames() method provided by the PortConnector subclass.
    • CALLSIGN_SSID

      public static final PortConfig.HintType CALLSIGN_SSID
      Just prompt with a plain text edit field, but only accept characters legal in a callsign-SSID.
    • TCP_UDP_PORT

      public static final PortConfig.HintType TCP_UDP_PORT
      Prompt for entering a TCP or UDP port number in the range 1 to 65535.
    • SERIAL_PORT_BAUD_RATE

      public static final PortConfig.HintType SERIAL_PORT_BAUD_RATE
      Prompt for entering a standard serial port baud rate (300, 1200, 9600, 115200, etc.).
  • Method Details

    • values

      public static PortConfig.HintType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PortConfig.HintType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null