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)
Deprecated.
|
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,
info.magnolia.i18nsystem.I18nizer i18nizer)
Deprecated.
|
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,
info.magnolia.i18nsystem.I18nizer i18nizer,
info.magnolia.context.WebContext webContext) |
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() |
protected info.magnolia.context.WebContext |
getWebContext() |
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) |
protected void |
setPageEditorAttributes(MarkupHelper helper,
javax.jcr.Node node) |
void |
setRenderEditbar(boolean renderEditbar) |
getActivationStatus, getContent, getNodeIdentifier, getNodePath, getPassedContent, getPath, getWorkspace, i18nize, isMessageKey, legacyTranslate, 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, info.magnolia.i18nsystem.I18nizer i18nizer, info.magnolia.context.WebContext webContext)
@Deprecated 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, info.magnolia.i18nsystem.I18nizer i18nizer)
ComponentElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, info.magnolia.rendering.engine.RenderingEngine, info.magnolia.rendering.template.assignment.TemplateDefinitionAssignment, info.magnolia.i18nsystem.I18nizer, info.magnolia.context.WebContext)
instead.@Deprecated 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)
ComponentElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, info.magnolia.rendering.engine.RenderingEngine, info.magnolia.rendering.template.assignment.TemplateDefinitionAssignment, info.magnolia.i18nsystem.I18nizer, info.magnolia.context.WebContext)
instead.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
protected void setPageEditorAttributes(MarkupHelper helper, javax.jcr.Node node) throws IOException, info.magnolia.rendering.engine.RenderException
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
protected info.magnolia.context.WebContext getWebContext()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.