public class Alert extends Object implements Serializable
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).
|
String |
message |
Severity |
severity |
Constructor and Description |
---|
Alert(Duration duration,
Severity severity,
String message) |
Alert(Severity severity,
String message)
Alert with default duration of
Duration.SINGLE . |
Alert(String message)
Alert with default duration of
Duration.SINGLE and default severity
of Severity.INFO . |
public final long id
public Alert(String message)
Duration.SINGLE
and default severity
of Severity.INFO
.public Alert(Severity severity, String message)
Duration.SINGLE
.Copyright © 2003-2012 The Apache Software Foundation.