summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Root.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-23 10:41:24 +0300
committerArtur Signell <artur@vaadin.com>2012-08-23 18:14:33 +0300
commit52986fdf881260994e5465012af2afd80447b8b6 (patch)
tree59c19ffa0e31b5147c0f95974c6c6febca3f64a3 /server/src/com/vaadin/ui/Root.java
parentf4f3a563942a9264fada9275991b5fd9dce73868 (diff)
downloadvaadin-framework-52986fdf881260994e5465012af2afd80447b8b6.tar.gz
vaadin-framework-52986fdf881260994e5465012af2afd80447b8b6.zip
Changed Notification type and position to enum (#9072)
Diffstat (limited to 'server/src/com/vaadin/ui/Root.java')
-rw-r--r--server/src/com/vaadin/ui/Root.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/com/vaadin/ui/Root.java b/server/src/com/vaadin/ui/Root.java
index 35517044c0..67f2e04a65 100644
--- a/server/src/com/vaadin/ui/Root.java
+++ b/server/src/com/vaadin/ui/Root.java
@@ -1124,7 +1124,7 @@ public abstract class Root extends AbstractComponentContainer implements
* Notification.show does not allow HTML.
*/
@Deprecated
- public void showNotification(String caption, int type) {
+ public void showNotification(String caption, Notification.Type type) {
Notification notification = new Notification(caption, type);
notification.setHtmlContentAllowed(true);// Backwards compatibility
getPage().showNotification(notification);
@@ -1179,7 +1179,8 @@ public abstract class Root extends AbstractComponentContainer implements
* be aware that HTML by default not allowed.
*/
@Deprecated
- public void showNotification(String caption, String description, int type) {
+ public void showNotification(String caption, String description,
+ Notification.Type type) {
Notification notification = new Notification(caption, description, type);
notification.setHtmlContentAllowed(true);// Backwards compatibility
getPage().showNotification(notification);
@@ -1210,8 +1211,8 @@ public abstract class Root extends AbstractComponentContainer implements
* @deprecated As of 7.0, use new Notification(...).show(Page).
*/
@Deprecated
- public void showNotification(String caption, String description, int type,
- boolean htmlContentAllowed) {
+ public void showNotification(String caption, String description,
+ Notification.Type type, boolean htmlContentAllowed) {
getPage()
.showNotification(
new Notification(caption, description, type,