Class DirectInstallLinker


  • public class DirectInstallLinker
    extends CrossSiteIframeLinker
    A linker that adds a script tag directly to the iframe rather than downloading the JavaScript code as a list of strings and then installing it into the iframe.

    (This linker is exactly like CrossSiteIframeLinker except that it defaults to installCode=false.)

    • Constructor Detail

      • DirectInstallLinker

        public DirectInstallLinker()
    • Method Detail

      • shouldInstallCode

        protected boolean shouldInstallCode​(LinkerContext context)
        Description copied from class: CrossSiteIframeLinker
        Determines the strategy for installing JavaScript code into the iframe. If set to false, a <script> tag pointing to the js file is added directly to the iframe. Otherwise, GWT downloads the JavaScript code as a list of strings and then adds it to the iframe.
        Overrides:
        shouldInstallCode in class CrossSiteIframeLinker