类 JqDocLinkerImpl
- java.lang.Object
-
- net.wicp.tams.component.services.impl.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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddCoreLibrary(String libraryURL)voidaddHtmlLibrary(String libraryURL)voidaddInitialization(org.apache.tapestry5.services.javascript.InitializationPriority priority, String moduleName, String functionName, org.apache.tapestry5.json.JSONArray arguments)voidaddLibrary(String libraryURL)voidaddModuleConfigurationCallback(org.apache.tapestry5.services.javascript.ModuleConfigurationCallback callback)voidaddScript(org.apache.tapestry5.services.javascript.InitializationPriority priority, String script)protected voidaddScriptsToEndOfHead(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.voidaddStylesheetLink(org.apache.tapestry5.services.javascript.StylesheetLink sheet)protected voidaddStylesheetsToHead(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.voidupdateDocument(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 modulesomitGeneratorMetaTag- via symbol configurationtapestryVersion- 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 documentstylesheets- to add to the document
-
addModuleConfigurationCallback
public void addModuleConfigurationCallback(org.apache.tapestry5.services.javascript.ModuleConfigurationCallback callback)
- 指定者:
addModuleConfigurationCallback在接口中org.apache.tapestry5.internal.services.DocumentLinker
-
-