Enum Notification.Option

java.lang.Object
java.lang.Enum<Notification.Option>
io.guise.framework.model.Notification.Option
All Implemented Interfaces:
Serializable, Comparable<Notification.Option>
Enclosing class:
Notification

public static enum Notification.Option extends 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.
  • Enum Constant Details

  • Method Details

    • values

      public static Notification.Option[] 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 Notification.Option 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
    • isFatal

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

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

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