|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.javascript.SimpleAjaxShellDelegate
public class SimpleAjaxShellDelegate
Outputs the main js packages and the tapestry js
that are defined by the JavascriptManager
service.
Constructor Summary | |
---|---|
SimpleAjaxShellDelegate(JavascriptManager javascriptManager)
|
Method Summary | |
---|---|
protected void |
appendAssetAsJavascript(StringBuffer str,
IRequestCycle cycle,
IAsset asset)
Appends a script tag to include the given asset. |
protected void |
processPath(StringBuffer str,
IRequestCycle cycle,
IAsset path)
Called before including any javascript. |
protected void |
processTapestryPath(StringBuffer str,
IRequestCycle cycle,
IAsset path)
Called before including tapestry's base javascript. |
void |
render(IMarkupWriter writer,
IRequestCycle cycle)
The principal rendering/rewinding method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAjaxShellDelegate(JavascriptManager javascriptManager)
Method Detail |
---|
public void render(IMarkupWriter writer, IRequestCycle cycle)
Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).
render
in interface IRender
protected void processPath(StringBuffer str, IRequestCycle cycle, IAsset path)
cycle
- str
- path
- The base path to the javascript files. May be null.protected void processTapestryPath(StringBuffer str, IRequestCycle cycle, IAsset path)
cycle
- str
- path
- The base path to the tapestry javascript file. May be null.protected void appendAssetAsJavascript(StringBuffer str, IRequestCycle cycle, IAsset asset)
str
- cycle
- asset
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |