Class ResourceInjectionUtil


  • public class ResourceInjectionUtil
    extends Object
    Utility class to help linkers do resource injection.
    • Constructor Detail

      • ResourceInjectionUtil

        public ResourceInjectionUtil()
    • Method Detail

      • 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);