Class AlertManagerImpl
-
- org.apache.tapestry5.internal.alerts.AlertManagerImpl
-
- All Implemented Interfaces:
AlertManager
public class AlertManagerImpl extends implements AlertManager
-
-
Constructor Summary
Constructors Constructor Description AlertManagerImpl(ApplicationStateManager asm, Request request, AjaxResponseRenderer ajaxResponseRenderer, PerthreadManager perThreadManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alert(Duration duration, Severity severity, message)
Adds an alert with configurable severity and duration.void
alert(Duration duration, Severity severity, message, boolean markup)
Adds an alert with configurable severity and duration.void
message)
Adds anSeverity.ERROR
alert with the default duration,Duration.SINGLE
.void
message)
Adds anSeverity.INFO
alert with the default duration,Duration.SINGLE
.void
message)
Adds anSeverity.SUCCESS
alert with the default duration,Duration.SINGLE
.void
message)
Adds anSeverity.WARN
alert with the default duration,Duration.SINGLE
.
-
-
-
Constructor Detail
-
AlertManagerImpl
public AlertManagerImpl(ApplicationStateManager asm, Request request, AjaxResponseRenderer ajaxResponseRenderer, PerthreadManager perThreadManager)
-
-
Method Detail
-
success
public void message)
Description copied from interface:AlertManager
Adds anSeverity.SUCCESS
alert with the default duration,Duration.SINGLE
.- Specified by:
success
in interfaceAlertManager
- Parameters:
message
- to present to the user
-
info
public void message)
Description copied from interface:AlertManager
Adds anSeverity.INFO
alert with the default duration,Duration.SINGLE
.- Specified by:
info
in interfaceAlertManager
- Parameters:
message
- to present to the user
-
warn
public void message)
Description copied from interface:AlertManager
Adds anSeverity.WARN
alert with the default duration,Duration.SINGLE
.- Specified by:
warn
in interfaceAlertManager
- Parameters:
message
- to present to the user
-
error
public void message)
Description copied from interface:AlertManager
Adds anSeverity.ERROR
alert with the default duration,Duration.SINGLE
.- Specified by:
error
in interfaceAlertManager
- Parameters:
message
- to present to the user
-
alert
public void alert(Duration duration, Severity severity, message)
Description copied from interface:AlertManager
Adds an alert with configurable severity and duration. Message isn't treated as HTML, being HTML-escaped.- Specified by:
alert
in interfaceAlertManager
- Parameters:
duration
- controls how long the alert is presented to the userseverity
- controls how the alert is presented to the usermessage
- to present to the user
-
alert
public void alert(Duration duration, Severity severity, message, boolean markup)
Description copied from interface:AlertManager
Adds an alert with configurable severity and duration.- Specified by:
alert
in interfaceAlertManager
- Parameters:
duration
- controls how long the alert is presented to the userseverity
- controls how the alert is presented to the usermessage
- to present to the usermarkup
- whether to treat the message as raw HTML (true) or escape it (false).
-
-