|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentHeadBuilder
Responsible for injecting script and style links into the <head> element of the rendered HTML document.
| Method Summary | |
|---|---|
void |
addScript(String script)
Adds JavaScript code. |
void |
addScriptLink(String scriptURL)
Adds a link to load a script. |
void |
addStylesheetLink(String styleURL,
String media)
Adds a link to load a CSS stylesheet. |
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). |
| Method Detail |
|---|
void addScriptLink(String scriptURL)
void addStylesheetLink(String styleURL,
String media)
styleURL - URL of stylesheet to loadmedia - media value (or null to omit the media attribute)void addScript(String script)
script - statement to add to the block (a newline will be appended as well)void updateDocument(Document document)
document - to be updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||