public class Alert extends java.lang.Object implements java.io.Serializable
markup
field is true
,
the message is treated as HTML and used without any escaping.Modifier and Type | Field and 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 |
Constructor and Description |
---|
Alert(Duration duration,
Severity severity,
java.lang.String message) |
Alert(Duration duration,
Severity severity,
java.lang.String message,
boolean markup) |
Alert(Severity severity,
java.lang.String message)
Alert with default duration of
Duration.SINGLE . |
Alert(java.lang.String message)
Alert with default duration of
Duration.SINGLE and default severity
of Severity.INFO . |
Modifier and Type | Method and Description |
---|---|
JSONObject |
toJSON() |
java.lang.String |
toString() |
public final long id
public final java.lang.String message
public final boolean markup
public Alert(java.lang.String message)
Duration.SINGLE
and default severity
of Severity.INFO
.public Alert(Severity severity, java.lang.String message)
Duration.SINGLE
.public java.lang.String toString()
toString
in class java.lang.Object
public JSONObject toJSON()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.