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, TapestryUtils.getPageRenderSupport(IRequestCycle, IComponent)

Method Summary
 String getPreloadedImageReference(IComponent target, 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.
 String getPreloadedImageReference(String url)
          Deprecated. To be removed in 4.2, use getPreloadedImageReference(IComponent, String) instead.
 
Methods inherited from interface org.apache.tapestry.IScriptProcessor
addBodyScript, addBodyScript, addExternalScript, addExternalScript, addInitializationScript, addInitializationScript, getUniqueString
 

Method Detail

getPreloadedImageReference

String getPreloadedImageReference(String url)
Deprecated. To be removed in 4.2, use getPreloadedImageReference(IComponent, String) instead.

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.


getPreloadedImageReference

String getPreloadedImageReference(IComponent target,
                                  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.

Parameters:
target - The component url being loaded for
url - The asset URL to preload


Copyright © 2006 Apache Software Foundation. All Rights Reserved.