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.
|
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)public void addStylesheetLink(org.apache.tapestry5.services.javascript.StylesheetLink sheet)
addStylesheetLink 在接口中 org.apache.tapestry5.internal.services.DocumentLinkerpublic void addCoreLibrary(String libraryURL)
addCoreLibrary 在接口中 org.apache.tapestry5.internal.services.DocumentLinkerpublic void addHtmlLibrary(String libraryURL)
public void addLibrary(String libraryURL)
addLibrary 在接口中 org.apache.tapestry5.internal.services.DocumentLinkerpublic void addScript(org.apache.tapestry5.services.javascript.InitializationPriority priority,
String script)
addScript 在接口中 org.apache.tapestry5.internal.services.DocumentLinkerpublic 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.DocumentLinkerpublic void updateDocument(org.apache.tapestry5.dom.Document document)
document - to be updatedprotected void addScriptsToEndOfHead(org.apache.tapestry5.dom.Element head)
<script> elements for the RequireJS library, then any
statically includes JavaScript libraries (including JavaScript stack
virtual assets), then the initialization script block.body - element to add the dynamic scripting toprotected void addStylesheetsToHead(org.apache.tapestry5.dom.Element root,
List<org.apache.tapestry5.services.javascript.StylesheetLink> stylesheets)
root - element of documentstylesheets - to add to the documentpublic void addModuleConfigurationCallback(org.apache.tapestry5.services.javascript.ModuleConfigurationCallback callback)
addModuleConfigurationCallback 在接口中 org.apache.tapestry5.internal.services.DocumentLinkerCopyright © 2016. All rights reserved.