Package org.apache.tapestry5.alerts
Class Alert
- java.lang.Object
- 
- org.apache.tapestry5.alerts.Alert
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class Alert extends Object implements 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 themarkupfield istrue, the message is treated as HTML and used without any escaping.- Since:
- 5.3
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description DurationdurationlongidA unique id (unique within this JVM and execution), used to identify an alert (used primarily when individually dismissing an alert).booleanmarkupDefines whether the message will be treated as HTML or not.StringmessageSeverityseverity
 - 
Constructor SummaryConstructors Constructor Description Alert(String message)Alert with default duration ofDuration.SINGLEand default severity ofSeverity.INFO.Alert(Duration duration, Severity severity, String message)Alert(Duration duration, Severity severity, String message, boolean markup)Alert(Severity severity, String message)Alert with default duration ofDuration.SINGLE.
 
- 
- 
- 
Constructor Detail- 
Alertpublic Alert(String message) Alert with default duration ofDuration.SINGLEand default severity ofSeverity.INFO.
 - 
Alertpublic Alert(Severity severity, String message) Alert with default duration ofDuration.SINGLE.
 
- 
 
-