diff options
author | Artur Signell <artur@vaadin.com> | 2015-01-11 16:30:40 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-11 15:53:07 +0000 |
commit | f06cf3237786152af8bd6a6136bdccaf0f58538d (patch) | |
tree | 3b75d0cc7d8626b9e336b0c0f08f700c565005d6 /widgets/src | |
parent | 0c41a0271ad996b9c07a16c59e7c3af0f8f4c324 (diff) | |
download | vaadin-framework-f06cf3237786152af8bd6a6136bdccaf0f58538d.tar.gz vaadin-framework-f06cf3237786152af8bd6a6136bdccaf0f58538d.zip |
Valo GWT module for widgets (#15544)
Change-Id: I3ff005081a982f60e65adb23af0f55dbd6baeaa4
Diffstat (limited to 'widgets/src')
-rw-r--r-- | widgets/src/com/vaadin/themes/Valo.gwt.xml | 9 | ||||
-rw-r--r-- | widgets/src/com/vaadin/themes/valoutil/BodyStyleName.java | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/widgets/src/com/vaadin/themes/Valo.gwt.xml b/widgets/src/com/vaadin/themes/Valo.gwt.xml new file mode 100644 index 0000000000..7c58d61ecf --- /dev/null +++ b/widgets/src/com/vaadin/themes/Valo.gwt.xml @@ -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 index 0000000000..73a01b6fd2 --- /dev/null +++ b/widgets/src/com/vaadin/themes/valoutil/BodyStyleName.java @@ -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"); + } + +} |