diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-18 21:22:09 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-06-18 21:41:57 +0300 |
commit | 3affc37a8ed778d47204c81a428ea56e6c2ac49c (patch) | |
tree | a848c8e882a24fe5d7028e2883d606e77ab273cb /server | |
parent | b637ab5945ef0340ce33dda7703e67181c879e4c (diff) | |
download | vaadin-framework-3affc37a8ed778d47204c81a428ea56e6c2ac49c.tar.gz vaadin-framework-3affc37a8ed778d47204c81a428ea56e6c2ac49c.zip |
Enable using @Stylesheet with vaadin:// (#9934)
Change-Id: I895fad31ef5b31a395cea95e64d6b183d718056f
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/annotations/StyleSheet.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/com/vaadin/annotations/StyleSheet.java b/server/src/com/vaadin/annotations/StyleSheet.java index e06140fcd5..2e15d9481c 100644 --- a/server/src/com/vaadin/annotations/StyleSheet.java +++ b/server/src/com/vaadin/annotations/StyleSheet.java @@ -32,6 +32,11 @@ import com.vaadin.server.ClientConnector; * Relative urls are mapped to APP/PUBLISHED/[url] which are by default served * from the classpath relative to the class where the annotation is defined. * <p> + * Special Vaadin urls are also supported. The most useful is vaadin:// which + * maps to the location of the automatically published VAADIN folder. Using the + * VAADIN folder and vaadin:// you can publish stylesheets which use images or + * other files with relative paths. + * <p> * Example: {@code @StyleSheet( "http://host.com/file1.css", "file2.css"})} on * the class com.example.MyConnector would load the file * http://host.com/file1.css as is and file2.css from /com/example/file2.css on |