info.magnolia.module.templatingkit.templates.components
Class ImageModel<RD extends info.magnolia.rendering.template.TemplateDefinition>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
          extended by info.magnolia.module.templatingkit.templates.components.ImageModel<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:
AbstractTeaserModel, FooterImageModel, TextImageModel

public class ImageModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
extends AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>

Image STK Model Rendable definition.

Version:
$Id$
Author:
cringele

Field Summary
 
Fields inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
DEFAULT_SITEROOT_TEMPLATE_CATEGORY, stkFunctions, templatingFunctions
 
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
ImageModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, STKTemplatingFunctions stkFunctions, CssSelectorBuilder cssSelectorBuilder, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
           
 
Method Summary
 Asset getImage()
           
protected  String getImageClass()
           
 String getImageLink()
          Deprecated.  
protected  String getImageName()
           
 String getImageVariationName()
           
 boolean hasImageMedadata()
          Deprecated.  
 
Methods inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
getSite, getSiteRoot
 
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
 

Constructor Detail

ImageModel

@Inject
public ImageModel(javax.jcr.Node content,
                         RD definition,
                         info.magnolia.rendering.model.RenderingModel<?> parent,
                         STKTemplatingFunctions stkFunctions,
                         CssSelectorBuilder cssSelectorBuilder,
                         info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Method Detail

getImage

public Asset getImage()

getImageVariationName

public String getImageVariationName()

getImageClass

protected String getImageClass()

getImageName

protected String getImageName()

getImageLink

@Deprecated
public String getImageLink()
                    throws DAMException
Deprecated. 

Throws:
DAMException

hasImageMedadata

@Deprecated
public boolean hasImageMedadata()
                         throws javax.jcr.RepositoryException
Deprecated. 

Throws:
javax.jcr.RepositoryException


Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.