Subversion Repository Public Repository

litesoft

Diff Revisions 905 vs 906 for /trunk/mobileGWT/mgwt/src/main/java/com/googlecode/mgwt/ui/client/MGWTStyle.java

Diff revisions: vs.
  @@ -6,23 +6,24 @@
6 6 import com.google.gwt.dom.client.Element;
7 7 import com.google.gwt.dom.client.LinkElement;
8 8 import com.google.gwt.dom.client.NodeList;
9 +
9 10 import com.googlecode.mgwt.ui.client.theme.MGWTTheme;
10 11 import com.googlecode.mgwt.ui.client.theme.MGWTThemeBaseThemeStandardImpl;
11 12
12 13 /**
13 14 * The {@link MGWTStyle} class provides an easy access to the default theme of every gwt app.
14 - *
15 + *
15 16 * If widgets are created without a specific theme they ask MGWTStyle for the default theme.
16 - *
17 + *
17 18 * The default theme can be changed at start up time of an mgwt app <b>once</b>.
18 - *
19 + *
19 20 * After startup the bundle can not be changed. If no bundle is set, MGWTStyle creates the MGWT
20 21 * Default theme.
21 - *
22 + *
22 23 * If you like to create your own theme consult the docs at: <a
23 24 * href="http://code.google.com/p/mgwt/wiki/Styling" >http://code.google.com/p/mgwt/wiki/Styling</a>
24 - *
25 - *
25 + *
26 + *
26 27 * @author Daniel Kurka
27 28 */
28 29 public class MGWTStyle {
  @@ -31,10 +32,9 @@
31 32
32 33 /**
33 34 * get the default bundle of this mgwt app
34 - *
35 + *
35 36 * @return the default bundle
36 37 */
37 - // @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "LI_LAZY_INIT_UPDATE_STATIC", justification = "no multithreading in gwt code")
38 38 public static final MGWTTheme getTheme() {
39 39 if (theme == null) {
40 40 theme = new MGWTThemeBaseThemeStandardImpl();
  @@ -46,12 +46,12 @@
46 46
47 47 /**
48 48 * Set the default bundle of this mgwt app
49 - *
49 + *
50 50 * <p>
51 51 * can only be called once at startup
52 52 * <p>
53 - *
54 - *
53 + *
54 + *
55 55 * @param newTheme the default bundle to use
56 56 */
57 57 public static final void setTheme(MGWTTheme newTheme) {
  @@ -64,7 +64,7 @@
64 64
65 65 /**
66 66 * Inject a given css file at the end of the head
67 - *
67 + *
68 68 * @param url the url of the css file
69 69 */
70 70 public static void injectStyleSheet(String url) {
  @@ -90,7 +90,7 @@
90 90
91 91 /**
92 92 * this routine provides access to match media from java
93 - *
93 + *
94 94 * @param mediaQuery the query to perform
95 95 * @return true if the query matches otherwise false
96 96 */