Class AjaxResponseRendererImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.ajax.AjaxResponseRendererImpl
-
- All Implemented Interfaces:
AjaxResponseRenderer
public class AjaxResponseRendererImpl extends java.lang.Object implements AjaxResponseRenderer
-
-
Constructor Summary
Constructors Constructor Description AjaxResponseRendererImpl(PageRenderQueue queue, AjaxFormUpdateController ajaxFormUpdateController, TypeCoercer typeCoercer, JavaScriptSupport javaScriptSupport, RequestPageCache requestPageCache, Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AjaxResponseRendereraddCallback(java.lang.Runnable callback)Queues a callback to execute during the partial markup render.AjaxResponseRendereraddCallback(JavaScriptCallback callback)Queues a callback to execute during the partial markup render.AjaxResponseRendereraddCallback(JSONCallback callback)Queues a callback to execute during the partial markup render.AjaxResponseRendereraddFilter(PartialMarkupRendererFilter filter)Adds a rendering filter.AjaxResponseRendereraddRender(java.lang.String clientId, java.lang.Object renderer)Queues the renderer to render markup for the client-side element with the provided id.AjaxResponseRendereraddRender(ClientBodyElement zone)Queues an update to the zone, using the zone's body as the new content.voidsetupPartial(java.lang.String pageName)Initializes partial response rendering by identifying the page "responsible" for the response.
-
-
-
Constructor Detail
-
AjaxResponseRendererImpl
public AjaxResponseRendererImpl(PageRenderQueue queue, AjaxFormUpdateController ajaxFormUpdateController, TypeCoercer typeCoercer, JavaScriptSupport javaScriptSupport, RequestPageCache requestPageCache, Request request)
-
-
Method Detail
-
addRender
public AjaxResponseRenderer addRender(java.lang.String clientId, java.lang.Object renderer)
Description copied from interface:AjaxResponseRendererQueues the renderer to render markup for the client-side element with the provided id.- Specified by:
addRenderin interfaceAjaxResponseRenderer- Parameters:
clientId- client id of zone to update with the content from the rendererrenderer- aBlock,Componentor other object that can be coerced toRenderCommand.- Returns:
- the renderer, for a fluid interface
-
addRender
public AjaxResponseRenderer addRender(ClientBodyElement zone)
Description copied from interface:AjaxResponseRendererQueues an update to the zone, using the zone's body as the new content.- Specified by:
addRenderin interfaceAjaxResponseRenderer- Parameters:
zone- the element that contains both a client id and a body (this is primarily used to represent aZonecomponent).- Returns:
- this renderer, for a fluid interface
-
addCallback
public AjaxResponseRenderer addCallback(JavaScriptCallback callback)
Description copied from interface:AjaxResponseRendererQueues a callback to execute during the partial markup render. The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.- Specified by:
addCallbackin interfaceAjaxResponseRenderer- Parameters:
callback- object to be invoked- Returns:
- this renderer, for a fluid interface
-
addCallback
public AjaxResponseRenderer addCallback(java.lang.Runnable callback)
Description copied from interface:AjaxResponseRendererQueues a callback to execute during the partial markup render. . The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.- Specified by:
addCallbackin interfaceAjaxResponseRenderer- Parameters:
callback- object to be invoked- Returns:
- this renderer, for a fluid interface
-
addFilter
public AjaxResponseRenderer addFilter(PartialMarkupRendererFilter filter)
Description copied from interface:AjaxResponseRendererAdds a rendering filter. Dynamically added filters are only in place during the handling of the current request, and come after any filters contributed to thePartialMarkupRendererservice.- Specified by:
addFilterin interfaceAjaxResponseRenderer- Returns:
- this renderer, for a fluid interface
-
addCallback
public AjaxResponseRenderer addCallback(JSONCallback callback)
Description copied from interface:AjaxResponseRendererQueues a callback to execute during the partial markup render. The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.- Specified by:
addCallbackin interfaceAjaxResponseRenderer- Parameters:
callback- object o be invoked- Returns:
- this renderer, for a fluid interface
-
setupPartial
public void setupPartial(java.lang.String pageName)
Description copied from interface:AjaxResponseRendererInitializes partial response rendering by identifying the page "responsible" for the response. This is mostly used for selecting the character set for the response.- Specified by:
setupPartialin interfaceAjaxResponseRenderer- Parameters:
pageName- identifies page to render
-
-