info.magnolia.module.samples.model
Class SampleParagraphModel

java.lang.Object
  extended by info.magnolia.module.templating.RenderingModelImpl
      extended by info.magnolia.module.samples.model.SampleParagraphModel
All Implemented Interfaces:
RenderingModel

public class SampleParagraphModel
extends RenderingModelImpl

This model class is defined in the paragraph definition in the configuration (modules/samples/paragraphs/name-of-paragraph/modelClass). To be accessed in the template file by def.method-name. Paragraph models can also be defined in the paragraph definitions.

Author:
tmiyar

Field Summary
 
Fields inherited from class info.magnolia.module.templating.RenderingModelImpl
content, definition, parentModel
 
Fields inherited from interface info.magnolia.module.templating.RenderingModel
SKIP_RENDERING
 
Constructor Summary
SampleParagraphModel(Content content, RenderableDefinition definition, RenderingModel parent)
           
 
Method Summary
 String getFilterAttribute()
           
 String getQuery()
           
 void setQuery(String query)
           
 
Methods inherited from class info.magnolia.module.templating.RenderingModelImpl
execute, getContent, getDef, getDefinition, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleParagraphModel

public SampleParagraphModel(Content content,
                            RenderableDefinition definition,
                            RenderingModel parent)
Method Detail

getFilterAttribute

public String getFilterAttribute()

getQuery

public String getQuery()

setQuery

public void setQuery(String query)


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