info.magnolia.module.templating
Class AbstractRenderable

java.lang.Object
  extended by info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
      extended by info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
          extended by info.magnolia.module.templating.AbstractRenderable
All Implemented Interfaces:
info.magnolia.rendering.template.RenderableDefinition, info.magnolia.rendering.template.TemplateDefinition
Direct Known Subclasses:
Paragraph, Template

Deprecated. since 4.5, use ConfiguredRenderableDefinition instead.

@Deprecated
public class AbstractRenderable
extends info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
implements RenderableDefinition

Base implementation for paragraph and template definitions. Provides the ConfiguredRenderableDefinition.modelClass property which is used in the method newModel(Content, RenderableDefinition , RenderingModel)

Version:
$Id: AbstractRenderable.java 49068 2011-09-08 09:20:49Z had $

Constructor Summary
AbstractRenderable()
          Deprecated.  
 
Method Summary
 String determineTemplatePath(String actionResult, RenderingModel model)
          Deprecated. Return always the templateScript property.
 String getDescription()
          Deprecated.  
 String getDialog()
          Deprecated.  
 String getI18nBasename()
          Deprecated.  
 String getName()
          Deprecated.  
 Map getParameters()
          Deprecated. An arbitrary list of parameters.
 String getRenderType()
          Deprecated.  
 String getTemplatePath()
          Deprecated. since 4.5 - use getTemplateScript() instead
 String getTemplateScript()
          Deprecated.  
 String getTitle()
          Deprecated.  
 String getType()
          Deprecated. since 4.5 - use getRenderType() instead
 RenderingModel newModel(info.magnolia.cms.core.Content content, RenderableDefinition definition, RenderingModel parentModel)
          Deprecated. Instantiates the model based on the class defined by the ConfiguredRenderableDefinition.modelClass property.
 void setDescription(String description)
          Deprecated.  
 void setDialog(String dialog)
          Deprecated.  
 void setI18nBasename(String basename)
          Deprecated.  
 void setName(String name)
          Deprecated.  
 void setParameters(Map params)
          Deprecated.  
 void setRenderType(String renderType)
          Deprecated.  
 void setTemplatePath(String templatePath)
          Deprecated. since 4.5 - use setTemplateScript(String) instead
 void setTemplateScript(String templateScript)
          Deprecated.  
 void setTitle(String title)
          Deprecated.  
 void setType(String type)
          Deprecated. since 4.5 - use setRenderType(String) instead
 String toString()
          Deprecated.  
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
addArea, getAreas, setAreas
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
addParameter, getAutoGeneration, getId, getModelClass, setAutoGeneration, setId, setModelClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.rendering.template.RenderableDefinition
getAutoGeneration, getId, getModelClass, setId
 

Constructor Detail

AbstractRenderable

public AbstractRenderable()
Deprecated. 
Method Detail

determineTemplatePath

public String determineTemplatePath(String actionResult,
                                    RenderingModel model)
Deprecated. 
Return always the templateScript property.


newModel

public RenderingModel newModel(info.magnolia.cms.core.Content content,
                               RenderableDefinition definition,
                               RenderingModel parentModel)
                        throws IllegalArgumentException,
                               InstantiationException,
                               IllegalAccessException,
                               InvocationTargetException
Deprecated. 
Instantiates the model based on the class defined by the ConfiguredRenderableDefinition.modelClass property. The class must provide a constructor similar to RenderingModelImpl.RenderingModelImpl(Content, RenderableDefinition, RenderingModel). All the request parameters are then mapped to the model's properties.

Throws:
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException

getName

public String getName()
Deprecated. 
Specified by:
getName in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getName in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getTitle

public String getTitle()
Deprecated. 
Specified by:
getTitle in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getTitle in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getTemplatePath

@Deprecated
public String getTemplatePath()
Deprecated. since 4.5 - use getTemplateScript() instead


getTemplateScript

public String getTemplateScript()
Deprecated. 
Specified by:
getTemplateScript in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getTemplateScript in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getType

@Deprecated
public String getType()
Deprecated. since 4.5 - use getRenderType() instead


getRenderType

public String getRenderType()
Deprecated. 
Specified by:
getRenderType in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getRenderType in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getDescription

public String getDescription()
Deprecated. 
Specified by:
getDescription in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getDescription in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setDescription

public void setDescription(String description)
Deprecated. 
Overrides:
setDescription in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setName

public void setName(String name)
Deprecated. 
Overrides:
setName in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setTemplatePath

@Deprecated
public void setTemplatePath(String templatePath)
Deprecated. since 4.5 - use setTemplateScript(String) instead


setTemplateScript

public void setTemplateScript(String templateScript)
Deprecated. 
Overrides:
setTemplateScript in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setType

@Deprecated
public void setType(String type)
Deprecated. since 4.5 - use setRenderType(String) instead


setRenderType

public void setRenderType(String renderType)
Deprecated. 
Overrides:
setRenderType in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setTitle

public void setTitle(String title)
Deprecated. 
Overrides:
setTitle in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getDialog

public String getDialog()
Deprecated. 
Specified by:
getDialog in interface info.magnolia.rendering.template.TemplateDefinition
Overrides:
getDialog in class info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition

setDialog

public void setDialog(String dialog)
Deprecated. 
Overrides:
setDialog in class info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition

getI18nBasename

public String getI18nBasename()
Deprecated. 
Specified by:
getI18nBasename in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getI18nBasename in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setI18nBasename

public void setI18nBasename(String basename)
Deprecated. 
Overrides:
setI18nBasename in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

getParameters

public Map getParameters()
Deprecated. 
Description copied from interface: RenderableDefinition
An arbitrary list of parameters. Used to omit subclass with getters and setters for each extra parameter.

Specified by:
getParameters in interface info.magnolia.rendering.template.RenderableDefinition
Overrides:
getParameters in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

setParameters

public void setParameters(Map params)
Deprecated. 
Overrides:
setParameters in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition

toString

public String toString()
Deprecated. 
Overrides:
toString in class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.