diff options
author | Marc Englund <marc.englund@itmill.com> | 2009-01-30 06:57:09 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2009-01-30 06:57:09 +0000 |
commit | 86fde400990b7205ab0164a9ed84be0f5680e866 (patch) | |
tree | 1c0f4538a7637125112e65628013f3007ad6d850 /src/com/itmill/toolkit/Application.java | |
parent | a65c7b1d2e592f1473e1889662c0dd70d67d33be (diff) | |
download | vaadin-framework-86fde400990b7205ab0164a9ed84be0f5680e866.tar.gz vaadin-framework-86fde400990b7205ab0164a9ed84be0f5680e866.zip |
Added missing setters for communication error message, fixes #2521. Also fixed a case where an empty notification was shown before forwarding to com-err-url.
svn changeset:6679/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/Application.java')
-rw-r--r-- | src/com/itmill/toolkit/Application.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/Application.java b/src/com/itmill/toolkit/Application.java index 866a9ced51..ad51911ed7 100644 --- a/src/com/itmill/toolkit/Application.java +++ b/src/com/itmill/toolkit/Application.java @@ -1423,6 +1423,52 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener } /** + * Sets the URL to go to when there is a communication error. + * + * @param communicationErrorURL + * the URL to go to, or null to reload current + */ + public void setCommunicationErrorURL(String communicationErrorURL) { + this.communicationErrorURL = communicationErrorURL; + } + + /** + * Enables or disables the notification. If disabled, the set URL (or + * current) is loaded directly. + * + * @param communicationErrorNotificationEnabled + * true = enabled, false = disabled + */ + public void setCommunicationErrorNotificationEnabled( + boolean communicationErrorNotificationEnabled) { + this.communicationErrorNotificationEnabled = communicationErrorNotificationEnabled; + } + + /** + * Sets the caption of the notification. Set to null for no caption. If + * both caption and message is null, the notification is disabled; + * + * @param communicationErrorCaption + * the caption + */ + public void setCommunicationErrorCaption( + String communicationErrorCaption) { + this.communicationErrorCaption = communicationErrorCaption; + } + + /** + * Sets the message of the notification. Set to null for no message. If + * both caption and message is null, the notification is disabled; + * + * @param communicationErrorMessage + * the message + */ + public void setCommunicationErrorMessage( + String communicationErrorMessage) { + this.communicationErrorMessage = communicationErrorMessage; + } + + /** * Sets the URL to go to when an internal error occurs. * * @param internalErrorURL |