|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.services.DocumentLinkerImpl
public class DocumentLinkerImpl
| Constructor Summary | |
|---|---|
DocumentLinkerImpl(boolean productionMode,
boolean omitGeneratorMetaTag,
String tapestryVersion,
boolean combineScripts,
String contextPath,
ClientDataEncoder clientDataEncoder)
|
|
| Method Summary | |
|---|---|
protected void |
addDynamicScriptBlock(Element body)
Adds the dynamic script block, which is, ultimately, a call to the client-side Tapestry.onDOMLoaded() function. |
void |
addScript(String script)
Adds JavaScript code. |
void |
addScriptLink(String scriptURL)
Adds a link to load a script. |
protected void |
addScriptLinksForIncludedScripts(Element container,
List<String> scripts)
Adds a script link for each included script to the bottom of the container (the <head>). |
void |
addStylesheetLink(String styleURL,
String media)
Adds a link to load a CSS stylesheet. |
protected void |
addStylesheetsToHead(Element root,
List<org.apache.tapestry5.internal.services.IncludedStylesheet> stylesheets)
Locates the head element under the root ("html") element, creating it if necessary, and adds the stylesheets to it. |
void |
updateDocument(Document document)
Updates the supplied Document, possibly adding <head> or <body> elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentLinkerImpl(boolean productionMode,
boolean omitGeneratorMetaTag,
String tapestryVersion,
boolean combineScripts,
String contextPath,
ClientDataEncoder clientDataEncoder)
productionMode - via symbol configurationomitGeneratorMetaTag - via symbol configurationtapestryVersion - version of Tapestry framework (for meta tag)combineScripts - if true, individual JavaScript assets will be combined into a single virtual assetcontextPath - Request.getContextPath()clientDataEncoder - used to encode data for the combined virtual asset| Method Detail |
|---|
public void addStylesheetLink(String styleURL,
String media)
DocumentLinker
addStylesheetLink in interface DocumentLinkerstyleURL - URL of stylesheet to loadmedia - media value (or null to omit the media attribute)public void addScriptLink(String scriptURL)
DocumentLinker
addScriptLink in interface DocumentLinkerpublic void addScript(String script)
DocumentLinker
addScript in interface DocumentLinkerscript - statement to add to the block (a newline will be appended as well)public void updateDocument(Document document)
document - to be updatedprotected void addDynamicScriptBlock(Element body)
body - element to add the dynamic scripting to
protected void addScriptLinksForIncludedScripts(Element container,
List<String> scripts)
container - element to add the script links toscripts - scripts to add
protected void addStylesheetsToHead(Element root,
List<org.apache.tapestry5.internal.services.IncludedStylesheet> stylesheets)
root - element of documentstylesheets - to add to the document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||