Enum Notification.Option

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Notification.Option>
    Enclosing class:
    Notification

    public static enum Notification.Option
    extends java.lang.Enum<Notification.Option>
    The options which can be expected as responses for this notification. The option ordinals represent the order in which they should be presented. Some options such as ABORT, STOP, and CANCEL, are fatal, indicating that the user has actively expressed that an action be stopped permanently.
    • Method Detail

      • values

        public static Notification.Option[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Notification.Option c : Notification.Option.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Notification.Option valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isFatal

        public boolean isFatal()
        Returns:
        Whether this option is considered fatal.
      • getLabel

        public java.lang.String getLabel()
        Returns:
        The resource reference for the option label.
      • getGlyph

        public java.net.URI getGlyph()
        Returns:
        The resource reference for the option glyph.