Enum Class NotificationKind

java.lang.Object
java.lang.Enum<NotificationKind>
at.bestsolution.uia.NotificationKind
All Implemented Interfaces:
INativeEnum, Serializable, Comparable<NotificationKind>, Constable

public enum NotificationKind extends Enum<NotificationKind> implements INativeEnum
Defines values that indicate the type of a notification event, and a hint to the listener about the processing of the event. For example, if multiple notifications are received, they should all be read, or only the last one should be read, and so on.
  • Enum Constant Details

    • ItemAdded

      public static final NotificationKind ItemAdded
      The current element and/or the container has had something added to it that should be presented to the user.
    • ItemRemoved

      public static final NotificationKind ItemRemoved
      The current element has had something removed from inside of it that should be presented to the user.
    • ActionCompleted

      public static final NotificationKind ActionCompleted
      The current element has a notification that an action was completed.
    • ActionAborted

      public static final NotificationKind ActionAborted
      The current element has a notification that an action was aborted.
    • Other

      public static final NotificationKind Other
      The current element has a notification not an add, remove, completed, or aborted action.
  • Method Details

    • values

      public static NotificationKind[] 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 NotificationKind 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
    • getNativeValue

      public int getNativeValue()
      Specified by:
      getNativeValue in interface INativeEnum
    • getConstantName

      public String getConstantName()
      Specified by:
      getConstantName in interface INativeEnum
    • fromNativeValue

      public static Optional<NotificationKind> fromNativeValue(int nativeValue)