|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RD
- - an instance of RenderableDefinition
public interface RenderingModel<RD extends RenderableDefinition>
A RenderingModel is used during rendering, it is analogous to the model part of the MVC pattern. It is associated with
a renderable and is executed before a content node using the renderable is rendered. The renderer instantiates the
RenderingModel and calls its execute method. While rendering the model is available to the template script under the
name model
and the value returned by the execute method is available under the name
actionResult
. It is commonly used to add backing logic to a component.
It can also abort the rendering by returning SKIP_RENDERING
from its execute method.
Field Summary | |
---|---|
static String |
SKIP_RENDERING
A constant used in some special cases where rendering must be skipped, i.e. |
Method Summary | |
---|---|
String |
execute()
Called after all properties were set. |
info.magnolia.jcr.util.ContentMap |
getContent()
Map representation of the content node tied to this model. |
RD |
getDefinition()
The renderable (template, area or component) tied to this model. |
javax.jcr.Node |
getNode()
The content node tied to this model. |
RenderingModel<?> |
getParent()
The model of the parent component or template. |
RenderingModel<?> |
getRoot()
The top root model of the rendering process. |
Field Detail |
---|
static final String SKIP_RENDERING
execute()
method to inform
AbstractRenderer
that it should not render anything in that particular
case.
Method Detail |
---|
RenderingModel<?> getParent()
javax.jcr.Node getNode()
info.magnolia.jcr.util.ContentMap getContent()
RD getDefinition()
String execute()
RenderableDefinition#determineTemplatePath(String, RenderingModel)
RenderingModel<?> getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |