Enum Class NotificationType

java.lang.Object
java.lang.Enum<NotificationType>
com.jbstrap.ui.components.enums.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>, Constable

public enum NotificationType extends Enum<NotificationType>

The types of notifications in the JBStrap framework

Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • SUCCESS

      public static final NotificationType SUCCESS

      The notification type for informing the user about a Success.

      These messages appear in the top right corner, with the SUCCESS template colors.

    • INFO

      public static final NotificationType INFO

      The notification type for informing the user about something.

      These messages appear in the top right corner, with the INFO template colors.

    • WARNING

      public static final NotificationType WARNING

      The notification type for giving the user a warning.

      These messages appear in the top right corner, with the DANGER template colors.

    • ERROR

      public static final NotificationType ERROR

      The error notification type

      These messages appear in the top right corner, with the ERROR template colors.

  • Method Details

    • values

      public static NotificationType[] 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 NotificationType 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
    • getType

      public String getType()
      Returns:
      The notification type name