|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentLinker
Responsible for injecting script and style links into the <head> and <body> element of the rendered HTML document.
Method Summary | |
---|---|
void |
addScript(InitializationPriority priority,
String script)
Adds JavaScript code. |
void |
addScriptLink(String scriptURL)
Adds a link to load a JavaScript library. |
void |
addStylesheetLink(StylesheetLink stylesheet)
Adds a link to load a CSS stylesheet. |
void |
setInitialization(InitializationPriority priority,
JSONObject initialization)
Adds a call to the Tapestry.init() function. |
Method Detail |
---|
void addScriptLink(String scriptURL)
void addStylesheetLink(StylesheetLink stylesheet)
void addScript(InitializationPriority priority, String script)
This method may be called multiple times for the same priority and the script will be accumulated.
priority
- when to execute the provided scriptscript
- statement to add to the block (a newline will be appended as well)void setInitialization(InitializationPriority priority, JSONObject initialization)
This method should only be invoked at most once per priority.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |