]> source.dussan.org Git - vaadin-framework.git/commitdiff
Valo GWT module for widgets (#15544)
authorArtur Signell <artur@vaadin.com>
Sun, 11 Jan 2015 14:30:40 +0000 (16:30 +0200)
committerVaadin Code Review <review@vaadin.com>
Sun, 11 Jan 2015 15:53:07 +0000 (15:53 +0000)
Change-Id: I3ff005081a982f60e65adb23af0f55dbd6baeaa4

widgets/src/com/vaadin/themes/Valo.gwt.xml [new file with mode: 0644]
widgets/src/com/vaadin/themes/valoutil/BodyStyleName.java [new file with mode: 0644]

diff --git a/widgets/src/com/vaadin/themes/Valo.gwt.xml b/widgets/src/com/vaadin/themes/Valo.gwt.xml
new file mode 100644 (file)
index 0000000..7c58d61
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
+  "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
+<module>
+    <entry-point class='com.vaadin.themes.valoutil.BodyStyleName' />
+    <source path='valoutil' />
+    <public path="valo" />
+    <stylesheet src="styles.css" />
+</module>
diff --git a/widgets/src/com/vaadin/themes/valoutil/BodyStyleName.java b/widgets/src/com/vaadin/themes/valoutil/BodyStyleName.java
new file mode 100644 (file)
index 0000000..73a01b6
--- /dev/null
@@ -0,0 +1,13 @@
+package com.vaadin.themes.valoutil;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.dom.client.Document;
+
+public class BodyStyleName implements EntryPoint {
+
+    @Override
+    public void onModuleLoad() {
+        Document.get().getBody().addClassName("valo");
+    }
+
+}