类 JqDocLinkerImpl

  • 所有已实现的接口:
    org.apache.tapestry5.internal.services.DocumentLinker

    public class JqDocLinkerImpl
    extends Object
    implements org.apache.tapestry5.internal.services.DocumentLinker
    • 构造器概要

      构造器 
      构造器 说明
      JqDocLinkerImpl​(org.apache.tapestry5.services.javascript.ModuleManager moduleManager, boolean omitGeneratorMetaTag, String tapestryVersion, String contextPath, String rjzjhjsclientpath, ISupportedLocales supportedLocales)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addCoreLibrary​(String libraryURL)  
      void addHtmlLibrary​(String libraryURL)  
      void addInitialization​(org.apache.tapestry5.services.javascript.InitializationPriority priority, String moduleName, String functionName, org.apache.tapestry5.json.JSONArray arguments)  
      void addLibrary​(String libraryURL)  
      void addModuleConfigurationCallback​(org.apache.tapestry5.services.javascript.ModuleConfigurationCallback callback)  
      void addScript​(org.apache.tapestry5.services.javascript.InitializationPriority priority, String script)  
      protected void addScriptsToEndOfHead​(org.apache.tapestry5.dom.Element head)
      Adds <script> elements for the RequireJS library, then any statically includes JavaScript libraries (including JavaScript stack virtual assets), then the initialization script block.
      void addStylesheetLink​(org.apache.tapestry5.services.javascript.StylesheetLink sheet)  
      protected void addStylesheetsToHead​(org.apache.tapestry5.dom.Element root, List<org.apache.tapestry5.services.javascript.StylesheetLink> stylesheets)
      Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to it.
      void updateDocument​(org.apache.tapestry5.dom.Document document)
      Updates the supplied Document, possibly adding <head> or <body> elements.
    • 构造器详细资料

      • JqDocLinkerImpl

        public JqDocLinkerImpl​(org.apache.tapestry5.services.javascript.ModuleManager moduleManager,
                               boolean omitGeneratorMetaTag,
                               String tapestryVersion,
                               String contextPath,
                               String rjzjhjsclientpath,
                               ISupportedLocales supportedLocales)
        参数:
        moduleManager - used to identify the root folder for dynamically loaded modules
        omitGeneratorMetaTag - via symbol configuration
        tapestryVersion - version of Tapestry framework (for meta tag)
    • 方法详细资料

      • addStylesheetLink

        public void addStylesheetLink​(org.apache.tapestry5.services.javascript.StylesheetLink sheet)
        指定者:
        addStylesheetLink 在接口中 org.apache.tapestry5.internal.services.DocumentLinker
      • addCoreLibrary

        public void addCoreLibrary​(String libraryURL)
        指定者:
        addCoreLibrary 在接口中 org.apache.tapestry5.internal.services.DocumentLinker
      • addHtmlLibrary

        public void addHtmlLibrary​(String libraryURL)
      • addLibrary

        public void addLibrary​(String libraryURL)
        指定者:
        addLibrary 在接口中 org.apache.tapestry5.internal.services.DocumentLinker
      • addScript

        public void addScript​(org.apache.tapestry5.services.javascript.InitializationPriority priority,
                              String script)
        指定者:
        addScript 在接口中 org.apache.tapestry5.internal.services.DocumentLinker
      • addInitialization

        public void addInitialization​(org.apache.tapestry5.services.javascript.InitializationPriority priority,
                                      String moduleName,
                                      String functionName,
                                      org.apache.tapestry5.json.JSONArray arguments)
        指定者:
        addInitialization 在接口中 org.apache.tapestry5.internal.services.DocumentLinker
      • updateDocument

        public void updateDocument​(org.apache.tapestry5.dom.Document document)
        Updates the supplied Document, possibly adding <head> or <body> elements.
        参数:
        document - to be updated
      • addScriptsToEndOfHead

        protected void addScriptsToEndOfHead​(org.apache.tapestry5.dom.Element head)
        Adds <script> elements for the RequireJS library, then any statically includes JavaScript libraries (including JavaScript stack virtual assets), then the initialization script block.
        参数:
        head - element to add the dynamic scripting to
      • addStylesheetsToHead

        protected void addStylesheetsToHead​(org.apache.tapestry5.dom.Element root,
                                            List<org.apache.tapestry5.services.javascript.StylesheetLink> stylesheets)
        Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to it.
        参数:
        root - element of document
        stylesheets - to add to the document
      • addModuleConfigurationCallback

        public void addModuleConfigurationCallback​(org.apache.tapestry5.services.javascript.ModuleConfigurationCallback callback)
        指定者:
        addModuleConfigurationCallback 在接口中 org.apache.tapestry5.internal.services.DocumentLinker