info.magnolia.module.templatingkit.templates.components
Class InternalTeaserModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
info.magnolia.module.templatingkit.templates.components.ImageModel<info.magnolia.rendering.template.TemplateDefinition>
info.magnolia.module.templatingkit.templates.components.AbstractTeaserModel<info.magnolia.rendering.template.TemplateDefinition>
info.magnolia.module.templatingkit.templates.components.InternalTeaserModel<RD>
- Type Parameters:
RD
-
- All Implemented Interfaces:
- STKRenderingModel<info.magnolia.rendering.template.TemplateDefinition>, info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>
- Direct Known Subclasses:
- StageTeaserModel, TabbedTeaserModel
public class InternalTeaserModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
- extends AbstractTeaserModel<info.magnolia.rendering.template.TemplateDefinition>
Teaser STK Rendable definition allowing to link teaser with internal content.
- Version:
- $Id$
- Author:
- cringele
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl |
content, contentMap, definition, parentModel |
Fields inherited from interface info.magnolia.rendering.model.RenderingModel |
SKIP_RENDERING |
Constructor Summary |
InternalTeaserModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
CssSelectorBuilder cssSelectorBuilder,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions,
info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions)
|
Method Summary |
protected info.magnolia.dam.asset.Asset |
findImage(javax.jcr.Node content)
Returns the first image found in the target content pointed by the teaser
if no teaser image was defined in target intro/header. |
info.magnolia.dam.asset.Asset |
getImage()
Wrap the Asset into a STKAssetWrapper. |
protected String |
getRepository()
|
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl |
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.rendering.model.RenderingModel |
execute, getContent, getDefinition, getNode, getParent, getRoot |
InternalTeaserModel
@Inject
public InternalTeaserModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
CssSelectorBuilder cssSelectorBuilder,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions,
info.magnolia.dam.asset.functions.DamTemplatingFunctions damFunctions)
getImage
public info.magnolia.dam.asset.Asset getImage()
- Description copied from class:
ImageModel
- Wrap the Asset into a STKAssetWrapper. This Wrapper override some Asset
properties based on the properties defined on the content node.
- Overrides:
getImage
in class ImageModel<info.magnolia.rendering.template.TemplateDefinition>
findImage
protected info.magnolia.dam.asset.Asset findImage(javax.jcr.Node content)
- Returns the first image found in the target content pointed by the teaser
if no teaser image was defined in target intro/header.
getRepository
protected String getRepository()
- Specified by:
getRepository
in class AbstractTeaserModel<info.magnolia.rendering.template.TemplateDefinition>
Copyright © 2008-2013 Magnolia International Ltd.. All Rights Reserved.