net.sf.zekr.engine.template
Class MixedViewTemplate

java.lang.Object
  extended by net.sf.zekr.engine.template.BaseViewTemplate
      extended by net.sf.zekr.engine.template.AbstractPageViewTemplate
          extended by net.sf.zekr.engine.template.MixedViewTemplate
All Implemented Interfaces:
ITransformer

public class MixedViewTemplate
extends AbstractPageViewTemplate

Template for mixed view layout.

Author:
Mohsen Saboorian

Field Summary
 
Fields inherited from class net.sf.zekr.engine.template.AbstractPageViewTemplate
quran, quranPage, trans, userView
 
Fields inherited from class net.sf.zekr.engine.template.BaseViewTemplate
config, engine, langEngine, logger, resource
 
Constructor Summary
MixedViewTemplate(IQuranText quran, IQuranText trans, IUserView userView)
          Creates a new mixed view template object.
 
Method Summary
 
Methods inherited from class net.sf.zekr.engine.template.AbstractPageViewTemplate
doTransform
 
Methods inherited from class net.sf.zekr.engine.template.BaseViewTemplate
setProperty, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixedViewTemplate

public MixedViewTemplate(IQuranText quran,
                         IQuranText trans,
                         IUserView userView)
Creates a new mixed view template object. It will put a 2xN matrix in velocity context. There is 2 row (first for the quran and second for translation). Each row holds the text of the sura (quran and translation).

Parameters:
quran - the Quran text
trans - the translation text
userView - user location and page