summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/terminal/Page.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-13 19:13:24 +0300
committerArtur Signell <artur@vaadin.com>2012-08-13 19:18:50 +0300
commitacf099b41fe1f983d416e598b5b49eaea9f35c66 (patch)
treeda664e675e639a074b6d8abde3af4d7a7b52055a /server/src/com/vaadin/terminal/Page.java
parente85d933b25cc3c5cc85eb7eb4b13b950fd8e1569 (diff)
downloadvaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.tar.gz
vaadin-framework-acf099b41fe1f983d416e598b5b49eaea9f35c66.zip
Eliminated dependencies from server to client (#9279)
Diffstat (limited to 'server/src/com/vaadin/terminal/Page.java')
-rw-r--r--server/src/com/vaadin/terminal/Page.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/src/com/vaadin/terminal/Page.java b/server/src/com/vaadin/terminal/Page.java
index a068e7573e..5ae8f7b775 100644
--- a/server/src/com/vaadin/terminal/Page.java
+++ b/server/src/com/vaadin/terminal/Page.java
@@ -13,9 +13,8 @@ import java.util.List;
import com.vaadin.event.EventRouter;
import com.vaadin.shared.ui.root.PageClientRpc;
+import com.vaadin.shared.ui.root.RootConstants;
import com.vaadin.terminal.WrappedRequest.BrowserDetails;
-import com.vaadin.terminal.gwt.client.ui.notification.VNotification;
-import com.vaadin.terminal.gwt.client.ui.root.VRoot;
import com.vaadin.terminal.gwt.server.WebApplicationContext;
import com.vaadin.terminal.gwt.server.WebBrowser;
import com.vaadin.tools.ReflectTools;
@@ -467,31 +466,32 @@ public class Page implements Serializable {
target.startTag("notification");
if (n.getCaption() != null) {
target.addAttribute(
- VNotification.ATTRIBUTE_NOTIFICATION_CAPTION,
+ RootConstants.ATTRIBUTE_NOTIFICATION_CAPTION,
n.getCaption());
}
if (n.getDescription() != null) {
target.addAttribute(
- VNotification.ATTRIBUTE_NOTIFICATION_MESSAGE,
+ RootConstants.ATTRIBUTE_NOTIFICATION_MESSAGE,
n.getDescription());
}
if (n.getIcon() != null) {
target.addAttribute(
- VNotification.ATTRIBUTE_NOTIFICATION_ICON,
+ RootConstants.ATTRIBUTE_NOTIFICATION_ICON,
n.getIcon());
}
if (!n.isHtmlContentAllowed()) {
target.addAttribute(
- VRoot.NOTIFICATION_HTML_CONTENT_NOT_ALLOWED, true);
+ RootConstants.NOTIFICATION_HTML_CONTENT_NOT_ALLOWED,
+ true);
}
target.addAttribute(
- VNotification.ATTRIBUTE_NOTIFICATION_POSITION,
+ RootConstants.ATTRIBUTE_NOTIFICATION_POSITION,
n.getPosition());
- target.addAttribute(VNotification.ATTRIBUTE_NOTIFICATION_DELAY,
+ target.addAttribute(RootConstants.ATTRIBUTE_NOTIFICATION_DELAY,
n.getDelayMsec());
if (n.getStyleName() != null) {
target.addAttribute(
- VNotification.ATTRIBUTE_NOTIFICATION_STYLE,
+ RootConstants.ATTRIBUTE_NOTIFICATION_STYLE,
n.getStyleName());
}
target.endTag("notification");
@@ -501,7 +501,7 @@ public class Page implements Serializable {
}
if (fragment != null) {
- target.addAttribute(VRoot.FRAGMENT_VARIABLE, fragment);
+ target.addAttribute(RootConstants.FRAGMENT_VARIABLE, fragment);
}
}