public class ComponentElement extends AbstractContentTemplatingElement
Constructor and Description |
---|
ComponentElement(info.magnolia.cms.beans.config.ServerConfiguration server,
info.magnolia.rendering.context.RenderingContext renderingContext,
info.magnolia.rendering.engine.RenderingEngine renderingEngine,
info.magnolia.rendering.template.assignment.TemplateDefinitionAssignment templateDefinitionAssignment) |
Modifier and Type | Method and Description |
---|---|
void |
begin(Appendable out) |
void |
end(Appendable out)
Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.
|
Map<String,Object> |
getContextAttributes() |
Boolean |
getEditable() |
boolean |
isRenderEditbar() |
protected boolean |
renderComments()
Override to set conditions for rendering of cms:comments.
|
void |
setContextAttributes(Map<String,Object> contextAttributes) |
void |
setDialog(String dialog) |
void |
setEditable(Boolean editable) |
void |
setRenderEditbar(boolean renderEditbar) |
getContent, getNodeIdentifier, getNodePath, getPassedContent, getPath, getWorkspace, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setNodeIdentifier, setPath, setWorkspace
currentContent, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
@Inject public ComponentElement(info.magnolia.cms.beans.config.ServerConfiguration server, info.magnolia.rendering.context.RenderingContext renderingContext, info.magnolia.rendering.engine.RenderingEngine renderingEngine, info.magnolia.rendering.template.assignment.TemplateDefinitionAssignment templateDefinitionAssignment)
public void begin(Appendable out) throws IOException, info.magnolia.rendering.engine.RenderException
begin
in interface TemplatingElement
begin
in class AbstractTemplatingElement
IOException
info.magnolia.rendering.engine.RenderException
public void end(Appendable out) throws IOException, info.magnolia.rendering.engine.RenderException
AbstractTemplatingElement
end
in interface TemplatingElement
end
in class AbstractTemplatingElement
IOException
info.magnolia.rendering.engine.RenderException
public void setDialog(String dialog)
public void setEditable(Boolean editable)
public Boolean getEditable()
public boolean isRenderEditbar()
public void setRenderEditbar(boolean renderEditbar)
protected boolean renderComments()
AbstractContentTemplatingElement
renderComments
in class AbstractContentTemplatingElement
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.