public class ComponentElement extends AbstractContentTemplatingElement
Constructor and Description |
---|
ComponentElement(ServerConfiguration server,
RenderingContext renderingContext,
RenderingEngine renderingEngine,
TemplateDefinitionAssignment templateDefinitionAssignment)
Deprecated.
|
ComponentElement(ServerConfiguration server,
RenderingContext renderingContext,
RenderingEngine renderingEngine,
TemplateDefinitionAssignment templateDefinitionAssignment,
I18nizer i18nizer)
Deprecated.
|
ComponentElement(ServerConfiguration server,
RenderingContext renderingContext,
RenderingEngine renderingEngine,
TemplateDefinitionAssignment templateDefinitionAssignment,
I18nizer i18nizer,
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 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(ServerConfiguration server, RenderingContext renderingContext, RenderingEngine renderingEngine, TemplateDefinitionAssignment templateDefinitionAssignment, I18nizer i18nizer, WebContext webContext)
@Deprecated public ComponentElement(ServerConfiguration server, RenderingContext renderingContext, RenderingEngine renderingEngine, TemplateDefinitionAssignment templateDefinitionAssignment, 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(ServerConfiguration server, RenderingContext renderingContext, RenderingEngine renderingEngine, 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, RenderException
begin
in interface TemplatingElement
begin
in class AbstractTemplatingElement
IOException
RenderException
protected void setPageEditorAttributes(MarkupHelper helper, javax.jcr.Node node) throws IOException, RenderException
IOException
RenderException
public void end(Appendable out) throws IOException, RenderException
AbstractTemplatingElement
end
in interface TemplatingElement
end
in class AbstractTemplatingElement
IOException
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 WebContext getWebContext()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.