|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.AbstractRenderable
public class AbstractRenderable
Base implementation for paragraph and template definitions. Provides the
modelClass
property which is used in the method
newModel(Content, RenderableDefinition , RenderingModel)
Constructor Summary | |
---|---|
AbstractRenderable()
|
Method Summary | |
---|---|
String |
determineTemplatePath(String actionResult,
RenderingModel model)
Return always the templatePath property. |
String |
getDescription()
|
String |
getDialog()
|
String |
getI18nBasename()
|
Class<? extends RenderingModel> |
getModelClass()
|
String |
getName()
|
Map |
getParameters()
An arbitrary list of parameters. |
String |
getTemplatePath()
|
String |
getTitle()
|
String |
getType()
|
RenderingModel |
newModel(info.magnolia.cms.core.Content content,
RenderableDefinition definition,
RenderingModel parentModel)
Instantiates the model based on the class defined by the modelClass property. |
void |
setDescription(String description)
|
void |
setDialog(String dialog)
|
void |
setI18nBasename(String basename)
|
void |
setModelClass(Class<? extends RenderingModel> modelClass)
|
void |
setName(String name)
|
void |
setParameters(Map params)
|
void |
setTemplatePath(String templatePath)
|
void |
setTitle(String title)
|
void |
setType(String type)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractRenderable()
Method Detail |
---|
public String determineTemplatePath(String actionResult, RenderingModel model)
templatePath
property.
determineTemplatePath
in interface RenderableDefinition
public RenderingModel newModel(info.magnolia.cms.core.Content content, RenderableDefinition definition, RenderingModel parentModel) throws IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
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.
newModel
in interface RenderableDefinition
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException
public String getName()
getName
in interface RenderableDefinition
public String getTitle()
getTitle
in interface RenderableDefinition
public String getTemplatePath()
getTemplatePath
in interface RenderableDefinition
public String getType()
getType
in interface RenderableDefinition
public String getDescription()
getDescription
in interface RenderableDefinition
public void setDescription(String description)
public void setName(String name)
public void setTemplatePath(String templatePath)
public void setType(String type)
public void setTitle(String title)
public String getDialog()
getDialog
in interface RenderableDefinition
public void setDialog(String dialog)
public String getI18nBasename()
getI18nBasename
in interface RenderableDefinition
public void setI18nBasename(String basename)
public Map getParameters()
RenderableDefinition
getParameters
in interface RenderableDefinition
public void setParameters(Map params)
public Class<? extends RenderingModel> getModelClass()
public void setModelClass(Class<? extends RenderingModel> modelClass)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |