| org.apache.tapestry.internal.services.DocumentScriptBuilder
All known Subclasses: org.apache.tapestry.internal.services.DocumentScriptBuilderImpl,
DocumentScriptBuilder | public interface DocumentScriptBuilder (Code) | | Responsible for building script links and script blocks into a document.
|
Method Summary | |
void | addScript(String script) Adds JavaScript code. | void | addScriptLink(String scriptURL) Adds a link to load a script. | void | updateDocument(Document document) Updates the supplied Document, locating the html/body element and adding script links (to the
top) and a script block (to the end). |
addScript | void addScript(String script)(Code) | | Adds JavaScript code. The code is collected into a single block that is injected just before
the close body tag of the page.
Parameters: script - statement to add to the block (a newline will be appended as well) |
addScriptLink | void addScriptLink(String scriptURL)(Code) | | Adds a link to load a script. Scripts will be loaded only once.
|
updateDocument | void updateDocument(Document document)(Code) | | Updates the supplied Document, locating the html/body element and adding script links (to the
top) and a script block (to the end).
Parameters: document - to be updated |
|
|