Class DirectInstallLinker

java.lang.Object
com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.linker.AbstractLinker
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
com.google.gwt.core.linker.CrossSiteIframeLinker
com.google.gwt.core.linker.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 Details

    • DirectInstallLinker

      public DirectInstallLinker()
  • Method Details

    • 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