|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.PartialMarkupDocumentLinker
public class PartialMarkupDocumentLinker
Constructor Summary | |
---|---|
PartialMarkupDocumentLinker()
|
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 |
commit(JSONObject reply)
Commits changes, adding one or more keys to the reply. |
void |
setInitialization(InitializationPriority priority,
JSONObject initialization)
Adds a call to the Tapestry.init() function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartialMarkupDocumentLinker()
Method Detail |
---|
public void addScriptLink(String scriptURL)
DocumentLinker
addScriptLink
in interface DocumentLinker
public void addStylesheetLink(StylesheetLink stylesheet)
DocumentLinker
addStylesheetLink
in interface DocumentLinker
public void addScript(InitializationPriority priority, String script)
DocumentLinker
This method may be called multiple times for the same priority and the script will be accumulated.
addScript
in interface DocumentLinker
priority
- when to execute the provided scriptscript
- statement to add to the block (a newline will be appended as well)public void setInitialization(InitializationPriority priority, JSONObject initialization)
DocumentLinker
This method should only be invoked at most once per priority.
setInitialization
in interface DocumentLinker
public void commit(JSONObject reply)
reply
- JSON Object to be sent to client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |