|
||||||||||
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. |
javax.jcr.Node |
getContent()
The content node tied to this model. |
info.magnolia.jcr.util.ContentMap |
getContentMap()
The content node tied to this model exposed as a ContentMap . |
RD |
getDefinition()
The renderable (paragraph/template) tied to this model. |
RenderingModel<?> |
getParent()
The model of the parent paragraph 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 getContent()
info.magnolia.jcr.util.ContentMap getContentMap()
ContentMap
.
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 |