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:
RenderableDefinition, TemplateDefinition
Direct Known Subclasses:
Paragraph, Template

Deprecated. since 4.5, use ConfiguredRenderableDefinition instead.

@Deprecated
public class AbstractRenderable
extends 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(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, getEditable, getTemplateAvailability, getVisible, setAreas, setEditable, setTemplateAvailability, setVisible
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
addParameter, addVariation, getAutoGeneration, getId, getModelClass, getVariations, setAutoGeneration, setId, setModelClass, setVariations
 
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, getVariations, 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(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 RenderableDefinition
Overrides:
getName in class ConfiguredRenderableDefinition

getTitle

public String getTitle()
Deprecated. 
Specified by:
getTitle in interface RenderableDefinition
Overrides:
getTitle in class ConfiguredRenderableDefinition

getTemplatePath

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


getTemplateScript

public String getTemplateScript()
Deprecated. 
Specified by:
getTemplateScript in interface RenderableDefinition
Overrides:
getTemplateScript in class ConfiguredRenderableDefinition

getType

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


getRenderType

public String getRenderType()
Deprecated. 
Specified by:
getRenderType in interface RenderableDefinition
Overrides:
getRenderType in class ConfiguredRenderableDefinition

getDescription

public String getDescription()
Deprecated. 
Specified by:
getDescription in interface RenderableDefinition
Overrides:
getDescription in class ConfiguredRenderableDefinition

setDescription

public void setDescription(String description)
Deprecated. 
Overrides:
setDescription in class ConfiguredRenderableDefinition

setName

public void setName(String name)
Deprecated. 
Overrides:
setName in class 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 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 ConfiguredRenderableDefinition

setTitle

public void setTitle(String title)
Deprecated. 
Overrides:
setTitle in class ConfiguredRenderableDefinition

getDialog

public String getDialog()
Deprecated. 
Specified by:
getDialog in interface TemplateDefinition
Overrides:
getDialog in class ConfiguredTemplateDefinition

setDialog

public void setDialog(String dialog)
Deprecated. 
Overrides:
setDialog in class ConfiguredTemplateDefinition

getI18nBasename

public String getI18nBasename()
Deprecated. 
Specified by:
getI18nBasename in interface RenderableDefinition
Overrides:
getI18nBasename in class ConfiguredRenderableDefinition

setI18nBasename

public void setI18nBasename(String basename)
Deprecated. 
Overrides:
setI18nBasename in class 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 RenderableDefinition
Overrides:
getParameters in class ConfiguredRenderableDefinition

setParameters

public void setParameters(Map params)
Deprecated. 
Overrides:
setParameters in class ConfiguredRenderableDefinition

toString

public String toString()
Deprecated. 
Overrides:
toString in class ConfiguredRenderableDefinition


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