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 TypeMethodDescriptionvoidAdds an alert with configurable severity and duration.voidAdds an alert with configurable severity and duration.voidAdds anSeverity.ERRORalert with the default duration,Duration.SINGLE.voidAdds anSeverity.INFOalert with the default duration,Duration.SINGLE.voidAdds anSeverity.SUCCESSalert with the default duration,Duration.SINGLE.voidAdds anSeverity.WARNalert 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:AlertManagerAdds anSeverity.SUCCESSalert with the default duration,Duration.SINGLE.- Specified by:
successin interfaceAlertManager- Parameters:
message- to present to the user
-
info
Description copied from interface:AlertManagerAdds anSeverity.INFOalert with the default duration,Duration.SINGLE.- Specified by:
infoin interfaceAlertManager- Parameters:
message- to present to the user
-
warn
Description copied from interface:AlertManagerAdds anSeverity.WARNalert with the default duration,Duration.SINGLE.- Specified by:
warnin interfaceAlertManager- Parameters:
message- to present to the user
-
error
Description copied from interface:AlertManagerAdds anSeverity.ERRORalert with the default duration,Duration.SINGLE.- Specified by:
errorin interfaceAlertManager- Parameters:
message- to present to the user
-
alert
Description copied from interface:AlertManagerAdds an alert with configurable severity and duration. Message isn't treated as HTML, being HTML-escaped.- Specified by:
alertin 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:AlertManagerAdds an alert with configurable severity and duration.- Specified by:
alertin 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).
-