public class ChromeRenderer extends AbstractRenderer
| Constructor and Description |
|---|
ChromeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
body(RequestContext context,
ModelObject object)
This method must be implemented by concrete subclasses to render the body focus for artifact
being handled by the renderer.
|
void |
render(RequestContext context,
ModelObject object,
RenderFocus focus)
Overrides the method provided by
AbstractRenderer to set a RENDER_TYPE entry into the
RequestContext where the value indicates whether Component or Region chrome is being rendered. |
all, getRenderService, header, print, print, setRenderServicepublic void render(RequestContext context, ModelObject object, RenderFocus focus) throws RendererExecutionException
Overrides the method provided by AbstractRenderer to set a RENDER_TYPE entry into the
RequestContext where the value indicates whether Component or Region chrome is being rendered. This is
done so that the chrome implementation can use EITHER the <componentInclude> or <regionInclude> tag
without error (previously using the wrong type of include in the chrome would result in either an infinite loop
or an OutOfMemoryException).
After setting the RENDER_TYPE the AbstractRenderer implementation of the method is called
to direct the rendering request appropriately.
render in interface Rendererrender in class AbstractRenderercontext - The current context (to which the RENDER_TYPE will be added)focus - The current focus to renderobject - The current object to be rendered.RendererExecutionException - if the CURRENT_RENDERER key has not been set. This key should have
been set somewhere in the context ancestry (typically when a RegionRenderer or ComponentRenderer
is invoked.public void body(RequestContext context, ModelObject object) throws RendererExecutionException
AbstractRendererThis method must be implemented by concrete subclasses to render the body focus for artifact being handled by the renderer.
body in interface Rendererbody in class AbstractRenderercontext - The current RequestContext that contains all the information required to perform rendering.object - The current object to be rendered.RendererExecutionException - If rendering cannot be completed without error.Copyright © 2005–2016 Alfresco Software. All rights reserved.