|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.SystemMessages
com.vaadin.server.CustomizedSystemMessages
public class CustomizedSystemMessages
Contains the system messages used to notify the user about various critical situations that can occur.
Vaadin gets the SystemMessages from your application by calling a static getSystemMessages() method. By default the Application.getSystemMessages() is used. You can customize this by defining a static MyApplication.getSystemMessages() and returning CustomizedSystemMessages. Note that getSystemMessages() is static - changing the system messages will by default change the message for all users of the application.
The default behavior is to show a notification, and restart the application
the the user clicks the message.
Instead of restarting the application, you can set a specific URL that the
user is taken to.
Setting both caption and message to null will restart the application (or go
to the specified URL) without displaying a notification.
set*NotificationEnabled(false) will achieve the same thing.
The situations are:
Field Summary |
---|
Constructor Summary | |
---|---|
CustomizedSystemMessages()
|
Method Summary | |
---|---|
void |
setAuthenticationErrorCaption(java.lang.String authenticationErrorCaption)
Sets the caption of the notification. |
void |
setAuthenticationErrorMessage(java.lang.String authenticationErrorMessage)
Sets the message of the notification. |
void |
setAuthenticationErrorNotificationEnabled(boolean authenticationErrorNotificationEnabled)
Enables or disables the notification. |
void |
setAuthenticationErrorURL(java.lang.String authenticationErrorURL)
Sets the URL to go to when there is a authentication error. |
void |
setCommunicationErrorCaption(java.lang.String communicationErrorCaption)
Sets the caption of the notification. |
void |
setCommunicationErrorMessage(java.lang.String communicationErrorMessage)
Sets the message of the notification. |
void |
setCommunicationErrorNotificationEnabled(boolean communicationErrorNotificationEnabled)
Enables or disables the notification. |
void |
setCommunicationErrorURL(java.lang.String communicationErrorURL)
Sets the URL to go to when there is a communication error. |
void |
setCookiesDisabledCaption(java.lang.String cookiesDisabledCaption)
Sets the caption of the "cookies disabled" notification. |
void |
setCookiesDisabledMessage(java.lang.String cookiesDisabledMessage)
Sets the message of the "cookies disabled" notification. |
void |
setCookiesDisabledNotificationEnabled(boolean cookiesDisabledNotificationEnabled)
Enables or disables the notification for "cookies disabled" messages. |
void |
setCookiesDisabledURL(java.lang.String cookiesDisabledURL)
Sets the URL to redirect to when the browser has cookies disabled. |
void |
setInternalErrorCaption(java.lang.String internalErrorCaption)
Sets the caption of the notification. |
void |
setInternalErrorMessage(java.lang.String internalErrorMessage)
Sets the message of the notification. |
void |
setInternalErrorNotificationEnabled(boolean internalErrorNotificationEnabled)
Enables or disables the notification. |
void |
setInternalErrorURL(java.lang.String internalErrorURL)
Sets the URL to go to when an internal error occurs. |
void |
setOutOfSyncCaption(java.lang.String outOfSyncCaption)
Sets the caption of the notification. |
void |
setOutOfSyncMessage(java.lang.String outOfSyncMessage)
Sets the message of the notification. |
void |
setOutOfSyncNotificationEnabled(boolean outOfSyncNotificationEnabled)
Enables or disables the notification. |
void |
setOutOfSyncURL(java.lang.String outOfSyncURL)
Sets the URL to go to when the client is out-of-sync. |
void |
setSessionExpiredCaption(java.lang.String sessionExpiredCaption)
Sets the caption of the notification. |
void |
setSessionExpiredMessage(java.lang.String sessionExpiredMessage)
Sets the message of the notification. |
void |
setSessionExpiredNotificationEnabled(boolean sessionExpiredNotificationEnabled)
Enables or disables the notification. |
void |
setSessionExpiredURL(java.lang.String sessionExpiredURL)
Sets the URL to go to when the session has expired. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomizedSystemMessages()
Method Detail |
---|
public void setSessionExpiredURL(java.lang.String sessionExpiredURL)
sessionExpiredURL
- the URL to go to, or null to reload currentpublic void setSessionExpiredNotificationEnabled(boolean sessionExpiredNotificationEnabled)
sessionExpiredNotificationEnabled
- true = enabled, false = disabledpublic void setSessionExpiredCaption(java.lang.String sessionExpiredCaption)
sessionExpiredCaption
- the captionpublic void setSessionExpiredMessage(java.lang.String sessionExpiredMessage)
sessionExpiredMessage
- the messagepublic void setAuthenticationErrorURL(java.lang.String authenticationErrorURL)
authenticationErrorURL
- the URL to go to, or null to reload currentpublic void setAuthenticationErrorNotificationEnabled(boolean authenticationErrorNotificationEnabled)
authenticationErrorNotificationEnabled
- true = enabled, false = disabledpublic void setAuthenticationErrorCaption(java.lang.String authenticationErrorCaption)
authenticationErrorCaption
- the captionpublic void setAuthenticationErrorMessage(java.lang.String authenticationErrorMessage)
authenticationErrorMessage
- the messagepublic void setCommunicationErrorURL(java.lang.String communicationErrorURL)
communicationErrorURL
- the URL to go to, or null to reload currentpublic void setCommunicationErrorNotificationEnabled(boolean communicationErrorNotificationEnabled)
communicationErrorNotificationEnabled
- true = enabled, false = disabledpublic void setCommunicationErrorCaption(java.lang.String communicationErrorCaption)
communicationErrorCaption
- the captionpublic void setCommunicationErrorMessage(java.lang.String communicationErrorMessage)
communicationErrorMessage
- the messagepublic void setInternalErrorURL(java.lang.String internalErrorURL)
internalErrorURL
- the URL to go to, or null to reload currentpublic void setInternalErrorNotificationEnabled(boolean internalErrorNotificationEnabled)
internalErrorNotificationEnabled
- true = enabled, false = disabledpublic void setInternalErrorCaption(java.lang.String internalErrorCaption)
internalErrorCaption
- the captionpublic void setInternalErrorMessage(java.lang.String internalErrorMessage)
internalErrorMessage
- the messagepublic void setOutOfSyncURL(java.lang.String outOfSyncURL)
outOfSyncURL
- the URL to go to, or null to reload currentpublic void setOutOfSyncNotificationEnabled(boolean outOfSyncNotificationEnabled)
outOfSyncNotificationEnabled
- true = enabled, false = disabledpublic void setOutOfSyncCaption(java.lang.String outOfSyncCaption)
outOfSyncCaption
- the captionpublic void setOutOfSyncMessage(java.lang.String outOfSyncMessage)
outOfSyncMessage
- the messagepublic void setCookiesDisabledURL(java.lang.String cookiesDisabledURL)
cookiesDisabledURL
- the URL to redirect to, or null to reload the current URLpublic void setCookiesDisabledNotificationEnabled(boolean cookiesDisabledNotificationEnabled)
SystemMessages.getCookiesDisabledURL()
is loaded
directly.
cookiesDisabledNotificationEnabled
- true to enable "cookies disabled" messages, false otherwisepublic void setCookiesDisabledCaption(java.lang.String cookiesDisabledCaption)
cookiesDisabledCaption
- the caption for the "cookies disabled" notificationpublic void setCookiesDisabledMessage(java.lang.String cookiesDisabledMessage)
cookiesDisabledMessage
- the message for the "cookies disabled" notification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |