Class AlertManagerImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.alerts.AlertManagerImpl
-
- All Implemented Interfaces:
AlertManager
public class AlertManagerImpl extends java.lang.Object 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 voidalert(Duration duration, Severity severity, java.lang.String message)Adds an alert with configurable severity and duration.voidalert(Duration duration, Severity severity, java.lang.String message, boolean markup)Adds an alert with configurable severity and duration.voiderror(java.lang.String message)Adds anSeverity.ERRORalert with the default duration,Duration.SINGLE.voidinfo(java.lang.String message)Adds anSeverity.INFOalert with the default duration,Duration.SINGLE.voidsuccess(java.lang.String message)Adds anSeverity.SUCCESSalert with the default duration,Duration.SINGLE.voidwarn(java.lang.String message)Adds anSeverity.WARNalert with the default duration,Duration.SINGLE.
-
-
-
Constructor Detail
-
AlertManagerImpl
public AlertManagerImpl(ApplicationStateManager asm, Request request, AjaxResponseRenderer ajaxResponseRenderer, PerthreadManager perThreadManager)
-
-
Method Detail
-
success
public void success(java.lang.String message)
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
public void info(java.lang.String message)
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
public void warn(java.lang.String message)
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
public void error(java.lang.String message)
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
public void alert(Duration duration, Severity severity, java.lang.String message)
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
public void alert(Duration duration, Severity severity, java.lang.String message, boolean markup)
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).
-
-