diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-06-29 11:49:30 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-06-29 11:49:30 +0300 |
commit | fefbf1d45537c042207ec2795db4a7213ff73a8b (patch) | |
tree | f3e09fe73831832b7332dd5eb3a50b6a2256fd89 /src/com/vaadin/ui/Root.java | |
parent | 6cb8da571a80104793e7dccde06b2cb2601a4678 (diff) | |
download | vaadin-framework-fefbf1d45537c042207ec2795db4a7213ff73a8b.tar.gz vaadin-framework-fefbf1d45537c042207ec2795db4a7213ff73a8b.zip |
Change Notification default to no allow HTML (#9066)
Diffstat (limited to 'src/com/vaadin/ui/Root.java')
-rw-r--r-- | src/com/vaadin/ui/Root.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java index 7ae687be79..2ca2da05ac 100644 --- a/src/com/vaadin/ui/Root.java +++ b/src/com/vaadin/ui/Root.java @@ -1075,7 +1075,9 @@ public abstract class Root extends AbstractComponentContainer implements */ @Deprecated public void showNotification(String caption) { - getPage().showNotification(new Notification(caption)); + Notification notification = new Notification(caption); + notification.setHtmlContentAllowed(true);// Backwards compatibility + getPage().showNotification(notification); } /** @@ -1098,7 +1100,9 @@ public abstract class Root extends AbstractComponentContainer implements */ @Deprecated public void showNotification(String caption, int type) { - getPage().showNotification(new Notification(caption, type)); + Notification notification = new Notification(caption, type); + notification.setHtmlContentAllowed(true);// Backwards compatibility + getPage().showNotification(notification); } /** @@ -1121,7 +1125,9 @@ public abstract class Root extends AbstractComponentContainer implements */ @Deprecated public void showNotification(String caption, String description) { - getPage().showNotification(new Notification(caption, description)); + Notification notification = new Notification(caption, description); + notification.setHtmlContentAllowed(true);// Backwards compatibility + getPage().showNotification(notification); } /** @@ -1147,8 +1153,9 @@ public abstract class Root extends AbstractComponentContainer implements */ @Deprecated public void showNotification(String caption, String description, int type) { - getPage() - .showNotification(new Notification(caption, description, type)); + Notification notification = new Notification(caption, description, type); + notification.setHtmlContentAllowed(true);// Backwards compatibility + getPage().showNotification(notification); } /** |