Class AlertManagerImpl
java.lang.Object
org.apache.tapestry5.internal.alerts.AlertManagerImpl
- All Implemented Interfaces:
AlertManager
-
Constructor Summary
ConstructorsConstructorDescriptionAlertManagerImpl
(ApplicationStateManager asm, Request request, AjaxResponseRenderer ajaxResponseRenderer, PerthreadManager perThreadManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an alert with configurable severity and duration.void
Adds an alert with configurable severity and duration.void
Adds anSeverity.ERROR
alert with the default duration,Duration.SINGLE
.void
Adds anSeverity.INFO
alert with the default duration,Duration.SINGLE
.void
Adds anSeverity.SUCCESS
alert with the default duration,Duration.SINGLE
.void
Adds anSeverity.WARN
alert with the default duration,Duration.SINGLE
.
-
Constructor Details
-
AlertManagerImpl
public AlertManagerImpl(ApplicationStateManager asm, Request request, AjaxResponseRenderer ajaxResponseRenderer, PerthreadManager perThreadManager)
-
-
Method Details
-
success
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
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
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
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
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
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).
-