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
 java.lang.String getFilterAttribute()
           
 java.lang.String getQuery()
           
 void setQuery(java.lang.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 java.lang.String getFilterAttribute()

getQuery

public java.lang.String getQuery()

setQuery

public void setQuery(java.lang.String query)


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