public class AreaElement extends AbstractContentTemplatingElement
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_COMPONENT |
static String |
ATTRIBUTE_COMPONENTS |
static String |
CMS_AREA |
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)
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,
info.magnolia.i18nsystem.I18nizer i18nizer) |
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() |
String |
getAvailableComponents() |
Map<String,Object> |
getContextAttributes() |
Boolean |
getCreateAreaNode() |
String |
getDescription() |
String |
getDialog() |
Boolean |
getEditable() |
String |
getLabel() |
Integer |
getMaxComponents() |
String |
getName() |
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() |
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 |
setEditable(Boolean editable) |
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, getNodeIdentifier, getNodePath, getPassedContent, getPath, getWorkspace, i18nize, isMessageKey, legacyTranslate, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setNodeIdentifier, setPath, setWorkspace
currentContent, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin
public static final String CMS_AREA
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, info.magnolia.i18nsystem.I18nizer i18nizer)
@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)
AreaElement(info.magnolia.cms.beans.config.ServerConfiguration, info.magnolia.rendering.context.RenderingContext, info.magnolia.rendering.engine.RenderingEngine, info.magnolia.rendering.template.variation.RenderableVariationResolver, info.magnolia.i18nsystem.I18nizer)
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
protected String resolveAvailableComponents()
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()
public void setDialog(String dialog)
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 Boolean getEditable()
public void setEditable(Boolean editable)
public Integer getMaxComponents()
public void setMaxComponents(Integer maxComponents)
public Boolean getCreateAreaNode()
public void setCreateAreaNode(Boolean createAreaNode)
protected boolean renderComments()
AbstractContentTemplatingElement
renderComments
in class AbstractContentTemplatingElement
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.