Class ResourceInjectionUtil
java.lang.Object
com.google.gwt.core.ext.linker.impl.ResourceInjectionUtil
Utility class to help linkers do resource injection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringBufferinjectResources(StringBuffer selectionScript, com.google.gwt.core.ext.linker.ArtifactSet artifacts) Installs stylesheets and scripts.static StringBufferinjectStylesheets(StringBuffer selectionScript, com.google.gwt.core.ext.linker.ArtifactSet artifacts) Installs stylesheets using the installOneStylesheet method, which is assumed to be defined on the page.
-
Constructor Details
-
ResourceInjectionUtil
public ResourceInjectionUtil()
-
-
Method Details
-
injectResources
public static StringBuffer injectResources(StringBuffer selectionScript, com.google.gwt.core.ext.linker.ArtifactSet artifacts) Installs stylesheets and scripts. -
injectStylesheets
public static StringBuffer injectStylesheets(StringBuffer selectionScript, com.google.gwt.core.ext.linker.ArtifactSet artifacts) Installs stylesheets using the installOneStylesheet method, which is assumed to be defined on the page. The installOneStylesheet() helper function is invoked as follows:installOneStylesheet(URL);
-