org.apache.tapestry
Interface PageRenderSupport

All Superinterfaces:
IScriptProcessor
All Known Implementing Classes:
Body, PageRenderSupportImpl

public interface PageRenderSupport
extends IScriptProcessor

Extends IScriptProcessor with a handful of additional methods needed when rendering a page response.

Since:
4.0
Author:
Howard M. Lewis Ship
See Also:
Body, org.apache.tapestry.TapestryUtils#getPageRenderSupport(IRequestCycle, Object)

Method Summary
 java.lang.String getPreloadedImageReference(java.lang.String url)
          Sets up the given URL to preload, and returns a reference to the loaded image, in the form of a snippet of JavaScript expression that can be inserted into some larger block of JavaScript as a function parameter, or as a property assignment.
 
Methods inherited from interface org.apache.tapestry.IScriptProcessor
addBodyScript, addExternalScript, addInitializationScript, getUniqueString
 

Method Detail

getPreloadedImageReference

public java.lang.String getPreloadedImageReference(java.lang.String url)
Sets up the given URL to preload, and returns a reference to the loaded image, in the form of a snippet of JavaScript expression that can be inserted into some larger block of JavaScript as a function parameter, or as a property assignment. A typical return value might be tapestry_preload[7].src.