Enum Class UIManager.ActionAttribute

java.lang.Object
java.lang.Enum<UIManager.ActionAttribute>
edu.wisc.ssec.mcidasv.ui.UIManager.ActionAttribute
All Implemented Interfaces:
Serializable, Comparable<UIManager.ActionAttribute>, Constable
Enclosing class:
UIManager

Represents what McIDAS-V "knows" about IDV actions.
  • Enum Constant Details

  • Field Details

    • defaultValue

      private final String defaultValue
      A blank String if this is a required attribute, or a String value to use in case this attribute has not been specified by a given IDV action.
    • idvString

      private final String idvString
      String representation of this attribute as used by the IDV.
      See Also:
    • required

      private final boolean required
      Whether or not this attribute is required.
  • Constructor Details

    • ActionAttribute

      private ActionAttribute(String idvString)
      Creates a constant that represents a required IDV action attribute.
      Parameters:
      idvString - Corresponding IDV attribute String. Cannot be null.
      Throws:
      NullPointerException - if idvString is null.
    • ActionAttribute

      private ActionAttribute(String idvString, String defValue)
      Creates a constant that represents an optional IDV action attribute.
      Parameters:
      idvString - Corresponding IDV attribute String. Cannot be null.
      defValue - Default value for actions that do not have this attribute. Cannot be null or an empty String.
      Throws:
      NullPointerException - if either idvString or defValue is null.
      IllegalArgumentException - if defValue is an empty String.
  • Method Details

    • values

      public static UIManager.ActionAttribute[] 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

      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
    • asIdvString

      public String asIdvString()
      Returns:
      The String representation of this attribute, as is used by the IDV.
      See Also:
      • IdvUIManager.ATTR_ACTION
      • IdvUIManager.ATTR_DESCRIPTION
      • IdvUIManager.ATTR_GROUP
      • IdvUIManager.ATTR_ID
      • IdvUIManager.ATTR_IMAGE
    • defaultValue

      public String defaultValue()
      Returns:
      "Default value" for this attribute. Blank Strings imply that the attribute is required (and thus lacks a true default value).
    • isRequired

      public boolean isRequired()
      Returns:
      Whether or not this attribute is a required attribute for valid UIManager.IdvActions.