Class Alert

  • All Implemented Interfaces:
    java.io.Serializable

    public class Alert
    extends java.lang.Object
    implements java.io.Serializable
    An Alert that may be presented to the user. The Alert has a message, but also includes a severity (that controls how it is presented to the user), and a duration (that controls how long it is presented to the user). If the markup field is true, the message is treated as HTML and used without any escaping.
    Since:
    5.3
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Duration duration  
      long id
      A unique id (unique within this JVM and execution), used to identify an alert (used primarily when individually dismissing an alert).
      boolean markup
      Defines whether the message will be treated as HTML or not.
      java.lang.String message  
      Severity severity  
    • Field Detail

      • id

        public final long id
        A unique id (unique within this JVM and execution), used to identify an alert (used primarily when individually dismissing an alert).
      • message

        public final java.lang.String message
      • markup

        public final boolean markup
        Defines whether the message will be treated as HTML or not.
        Since:
        5.4
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object