com.google.gwt.widgetideas.styleinjector.client
Class StyleInjector

java.lang.Object
  extended by com.google.gwt.widgetideas.styleinjector.client.StyleInjector

public class StyleInjector
extends java.lang.Object

Used to add stylesheets to the document.


Method Summary
static void injectStylesheet(java.lang.String contents)
          Add a stylesheet to the document.
static void injectStylesheet(java.lang.String contents, ImmutableResourceBundle references)
          Add a stylesheet to the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

injectStylesheet

public static void injectStylesheet(java.lang.String contents)
Add a stylesheet to the document.

Parameters:
contents - the CSS contents of the stylesheet

injectStylesheet

public static void injectStylesheet(java.lang.String contents,
                                    ImmutableResourceBundle references)
Add a stylesheet to the document. Any occurrence of %resourceName% in the stylesheet's contents will be replaced by the URL of the named DataResource contained in references.

Parameters:
contents - the CSS contents of the stylesheet
references - the resources to substitute into the stylesheet.