info.magnolia.templating.elements
Class AreaElement
java.lang.Object
info.magnolia.templating.elements.AbstractTemplatingElement
info.magnolia.templating.elements.AbstractContentTemplatingElement
info.magnolia.templating.elements.AreaElement
- All Implemented Interfaces:
- TemplatingElement
public class AreaElement
- extends AbstractContentTemplatingElement
Renders an area and outputs a marker that instructs the page editor to place a bar at this location.
- Version:
- $Id$
Constructor Summary |
AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server,
info.magnolia.rendering.context.RenderingContext renderingContext,
info.magnolia.rendering.engine.RenderingEngine renderingEngine)
|
Methods inherited from class info.magnolia.templating.elements.AbstractContentTemplatingElement |
getContent, getNodeIdentifier, getNodePath, getPassedContent, getPath, getWorkspace, restoreAttributesInWebContext, setAttributesInWebContext, setContent, setNodeIdentifier, setPath, setWorkspace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMS_AREA
public static final String CMS_AREA
- See Also:
- Constant Field Values
ATTRIBUTE_COMPONENT
public static final String ATTRIBUTE_COMPONENT
- See Also:
- Constant Field Values
ATTRIBUTE_COMPONENTS
public static final String ATTRIBUTE_COMPONENTS
- See Also:
- Constant Field Values
AreaElement
public AreaElement(info.magnolia.cms.beans.config.ServerConfiguration server,
info.magnolia.rendering.context.RenderingContext renderingContext,
info.magnolia.rendering.engine.RenderingEngine renderingEngine)
begin
public void begin(Appendable out)
throws IOException,
info.magnolia.rendering.engine.RenderException
- Specified by:
begin
in interface TemplatingElement
- Overrides:
begin
in class AbstractTemplatingElement
- Throws:
IOException
info.magnolia.rendering.engine.RenderException
buildAdHocAreaDefinition
protected void buildAdHocAreaDefinition()
end
public void end(Appendable out)
throws info.magnolia.rendering.engine.RenderException
- Description copied from class:
AbstractTemplatingElement
- Override this method if you need to "do something" once the component is rendered, i.e cleanup the context.
- Specified by:
end
in interface TemplatingElement
- Overrides:
end
in class AbstractTemplatingElement
- Throws:
info.magnolia.rendering.engine.RenderException
tryToCreateAreaNode
protected javax.jcr.Node tryToCreateAreaNode(javax.jcr.Node parentNode)
throws info.magnolia.rendering.engine.RenderException
- Throws:
info.magnolia.rendering.engine.RenderException
resolveAreaDefinition
protected info.magnolia.rendering.template.AreaDefinition resolveAreaDefinition()
resolveTemplateDefinition
protected info.magnolia.rendering.template.TemplateDefinition resolveTemplateDefinition()
throws info.magnolia.rendering.engine.RenderException
- Throws:
info.magnolia.rendering.engine.RenderException
resolveAvailableComponents
protected String resolveAvailableComponents()
getName
public String getName()
setName
public void setName(String name)
getArea
public info.magnolia.rendering.template.AreaDefinition getArea()
setArea
public void setArea(info.magnolia.rendering.template.AreaDefinition area)
getAvailableComponents
public String getAvailableComponents()
setAvailableComponents
public void setAvailableComponents(String availableComponents)
getType
public String getType()
setType
public void setType(String type)
getDialog
public String getDialog()
setDialog
public void setDialog(String dialog)
getLabel
public String getLabel()
setLabel
public void setLabel(String label)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
isInherit
public boolean isInherit()
setInherit
public void setInherit(boolean inherit)
getEditable
public Boolean getEditable()
setEditable
public void setEditable(Boolean editable)
getContextAttributes
public Map<String,Object> getContextAttributes()
setContextAttributes
public void setContextAttributes(Map<String,Object> contextAttributes)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.