public class AreaElement extends AbstractContentTemplatingElement
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_COMPONENT |
static String |
ATTRIBUTE_COMPONENTS |
Constructor and Description |
---|
AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server,
info.magnolia.rendering.context.RenderingContext renderingContext,
info.magnolia.rendering.engine.RenderingEngine renderingEngine,
info.magnolia.rendering.template.variation.RenderableVariationResolver variationResolver,
info.magnolia.i18nsystem.I18nizer i18nizer)
Deprecated.
|
AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server,
info.magnolia.rendering.context.RenderingContext renderingContext,
info.magnolia.rendering.engine.RenderingEngine renderingEngine,
info.magnolia.rendering.template.variation.RenderableVariationResolver variationResolver,
javax.inject.Provider<TemplatingModule> templatingModuleProvider,
info.magnolia.context.WebContext webContext) |
Modifier and Type | Method and Description |
---|---|
void |
begin(Appendable out) |
protected void |
buildAdHocAreaDefinition() |
void |
end(Appendable out)
Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.
|
info.magnolia.rendering.template.AreaDefinition |
getArea() |
info.magnolia.rendering.template.AreaDefinition |
getAreaDefinition() |
String |
getAvailableComponents() |
Map<String,Object> |
getContextAttributes() |
Boolean |
getCreateAreaNode() |
String |
getDescription() |
String |
getDialog() |
String |
getLabel() |
Integer |
getMaxComponents() |
String |
getName() |
Boolean |
getOptional() |
String |
getType() |
boolean |
isInherit() |
protected boolean |
renderComments()
Override to set conditions for rendering of cms:comments.
|
protected info.magnolia.rendering.template.AreaDefinition |
resolveAreaDefinition() |
protected String |
resolveAvailableComponents()
Deprecated.
since 6.1. Use
AvailableComponents instead. |
protected info.magnolia.rendering.template.TemplateDefinition |
resolveTemplateDefinition() |
void |
setArea(info.magnolia.rendering.template.AreaDefinition area) |
void |
setAvailableComponents(String availableComponents) |
void |
setContextAttributes(Map<String,Object> contextAttributes) |
void |
setCreateAreaNode(Boolean createAreaNode) |
void |
setDescription(String description) |
void |
setDialog(String dialog) |
void |
setInherit(boolean inherit) |
void |
setLabel(String label) |
void |
setMaxComponents(Integer maxComponents) |
void |
setName(String name) |
void |
setType(String type) |
protected javax.jcr.Node |
tryToCreateAreaNode(javax.jcr.Node parentNode) |
getActivationStatus, getContent, getEditable, getNodeIdentifier, getNodePath, getPassedContent, getPath, getTemplateDefinition, getWebContext, getWorkspace, isMessageKey, legacyTranslate, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setEditable, setNodeIdentifier, setPageEditorAttributes, setPath, setTemplateDefinition, setWorkspace
currentContent, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
public static final String ATTRIBUTE_COMPONENT
public static final String ATTRIBUTE_COMPONENTS
@Inject public AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server, info.magnolia.rendering.context.RenderingContext renderingContext, info.magnolia.rendering.engine.RenderingEngine renderingEngine, info.magnolia.rendering.template.variation.RenderableVariationResolver variationResolver, javax.inject.Provider<TemplatingModule> templatingModuleProvider, info.magnolia.context.WebContext webContext)
@Deprecated public AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server, info.magnolia.rendering.context.RenderingContext renderingContext, info.magnolia.rendering.engine.RenderingEngine renderingEngine, info.magnolia.rendering.template.variation.RenderableVariationResolver variationResolver, info.magnolia.i18nsystem.I18nizer i18nizer)
AreaElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, info.magnolia.rendering.engine.RenderingEngine, info.magnolia.rendering.template.variation.RenderableVariationResolver, javax.inject.Provider, 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 buildAdHocAreaDefinition()
public void end(Appendable out) throws info.magnolia.rendering.engine.RenderException
AbstractTemplatingElement
end
in interface TemplatingElement
end
in class AbstractTemplatingElement
info.magnolia.rendering.engine.RenderException
protected javax.jcr.Node tryToCreateAreaNode(javax.jcr.Node parentNode) throws info.magnolia.rendering.engine.RenderException
info.magnolia.rendering.engine.RenderException
protected info.magnolia.rendering.template.AreaDefinition resolveAreaDefinition()
protected info.magnolia.rendering.template.TemplateDefinition resolveTemplateDefinition() throws info.magnolia.rendering.engine.RenderException
info.magnolia.rendering.engine.RenderException
@Deprecated protected String resolveAvailableComponents()
AvailableComponents
instead.public String getName()
public void setName(String name)
public info.magnolia.rendering.template.AreaDefinition getArea()
public void setArea(info.magnolia.rendering.template.AreaDefinition area)
public String getAvailableComponents()
public void setAvailableComponents(String availableComponents)
public String getType()
public void setType(String type)
public String getDialog()
getDialog
in class AbstractContentTemplatingElement
public void setDialog(String dialog)
setDialog
in class AbstractContentTemplatingElement
public String getLabel()
public void setLabel(String label)
public String getDescription()
public void setDescription(String description)
public boolean isInherit()
public void setInherit(boolean inherit)
public Integer getMaxComponents()
public void setMaxComponents(Integer maxComponents)
public Boolean getCreateAreaNode()
public void setCreateAreaNode(Boolean createAreaNode)
public info.magnolia.rendering.template.AreaDefinition getAreaDefinition()
public Boolean getOptional()
protected boolean renderComments()
AbstractContentTemplatingElement
renderComments
in class AbstractContentTemplatingElement
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.