|
||||||||||
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 | |
---|---|
java.lang.String |
determineTemplatePath(java.lang.String actionResult,
RenderingModel model)
Return always the templatePath property. |
java.lang.String |
getDescription()
|
java.lang.String |
getDialog()
|
java.lang.String |
getI18nBasename()
|
java.lang.Class<? extends RenderingModel> |
getModelClass()
|
java.lang.String |
getName()
|
java.util.Map |
getParameters()
An arbitrary list of parameters. |
java.lang.String |
getTemplatePath()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
RenderingModel |
newModel(Content content,
RenderableDefinition definition,
RenderingModel parentModel)
Instantiates the model based on the class defined by the modelClass property. |
void |
setDescription(java.lang.String description)
|
void |
setDialog(java.lang.String dialog)
|
void |
setI18nBasename(java.lang.String basename)
|
void |
setModelClass(java.lang.Class<? extends RenderingModel> modelClass)
|
void |
setName(java.lang.String name)
|
void |
setParameters(java.util.Map params)
|
void |
setTemplatePath(java.lang.String templatePath)
|
void |
setTitle(java.lang.String title)
|
void |
setType(java.lang.String type)
|
java.lang.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 java.lang.String determineTemplatePath(java.lang.String actionResult, RenderingModel model)
templatePath
property.
determineTemplatePath
in interface RenderableDefinition
public RenderingModel newModel(Content content, RenderableDefinition definition, RenderingModel parentModel) throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.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
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.String getName()
getName
in interface RenderableDefinition
public java.lang.String getTitle()
getTitle
in interface RenderableDefinition
public java.lang.String getTemplatePath()
getTemplatePath
in interface RenderableDefinition
public java.lang.String getType()
getType
in interface RenderableDefinition
public java.lang.String getDescription()
getDescription
in interface RenderableDefinition
public void setDescription(java.lang.String description)
public void setName(java.lang.String name)
public void setTemplatePath(java.lang.String templatePath)
public void setType(java.lang.String type)
public void setTitle(java.lang.String title)
public java.lang.String getDialog()
getDialog
in interface RenderableDefinition
public void setDialog(java.lang.String dialog)
public java.lang.String getI18nBasename()
getI18nBasename
in interface RenderableDefinition
public void setI18nBasename(java.lang.String basename)
public java.util.Map getParameters()
RenderableDefinition
getParameters
in interface RenderableDefinition
public void setParameters(java.util.Map params)
public java.lang.Class<? extends RenderingModel> getModelClass()
public void setModelClass(java.lang.Class<? extends RenderingModel> modelClass)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |