Enum IconKind

java.lang.Object
java.lang.Enum<IconKind>
net.adoptopenjdk.icedteaweb.jnlp.element.information.IconKind
All Implemented Interfaces:
Serializable, Comparable<IconKind>, java.lang.constant.Constable

public enum IconKind extends Enum<IconKind>
The icon kind attribute defines how an icon should be used.

Only one description element of each kind can be specified.

  • Enum Constant Details

    • DEFAULT

      public static final IconKind DEFAULT
    • SELECTED

      public static final IconKind SELECTED
    • DISABLED

      public static final IconKind DISABLED
    • ROLLOVER

      public static final IconKind ROLLOVER
    • SPLASH

      public static final IconKind SPLASH
    • SHORTCUT

      public static final IconKind SHORTCUT
  • Field Details

    • value

      private final String value
  • Constructor Details

    • IconKind

      private IconKind(String value)
  • Method Details

    • values

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

      public static IconKind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      The attribute value name as used in the JSR-56 specification or the Parser.
      Returns:
      the attribute value name
    • fromString

      public static IconKind fromString(String name) throws IllegalArgumentException
      Creates an enum value from the given string
      Parameters:
      name - the string name
      Returns:
      an enum value for the given string
      Throws:
      IllegalArgumentException - of there is no enum value for the given name