net.sourceforge.pavlov.main
Class DefaultTemplateKit

java.lang.Object
  extended by net.sourceforge.pavlov.main.DefaultTemplateKit
All Implemented Interfaces:
AbstractTemplateKit
Direct Known Subclasses:
Skin

public class DefaultTemplateKit
extends Object
implements AbstractTemplateKit

A template kit that uses the files in resources/views.

Since:
1.1

Constructor Summary
DefaultTemplateKit()
           
 
Method Summary
 File getBaseDir()
          Return the directory in which these templates reside.
 String getLibraryTemplate()
          Return the template the user uses to select a chapter to quiz on.
 String getLoginTemplate()
          Return the template used to log the user in.
 String getQuizTemplate()
          Return the template used to display a question during a quiz.
protected  String getText(String textUrl)
          Describe getText method here.
protected  String getText(URL textURL)
          Describe getText method here.
 String getWelcomeTemplate()
          Return the template used to welcome a user to Pavlov.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTemplateKit

public DefaultTemplateKit()
Method Detail

getLoginTemplate

public String getLoginTemplate()
Description copied from interface: AbstractTemplateKit
Return the template used to log the user in.

Specified by:
getLoginTemplate in interface AbstractTemplateKit
Returns:
a String value

getLibraryTemplate

public String getLibraryTemplate()
Description copied from interface: AbstractTemplateKit
Return the template the user uses to select a chapter to quiz on.

Specified by:
getLibraryTemplate in interface AbstractTemplateKit
Returns:
a String value

getQuizTemplate

public String getQuizTemplate()
Description copied from interface: AbstractTemplateKit
Return the template used to display a question during a quiz.

Specified by:
getQuizTemplate in interface AbstractTemplateKit
Returns:
a String value

getWelcomeTemplate

public String getWelcomeTemplate()
Description copied from interface: AbstractTemplateKit
Return the template used to welcome a user to Pavlov.

Specified by:
getWelcomeTemplate in interface AbstractTemplateKit
Returns:
a String value

getBaseDir

public File getBaseDir()
Description copied from interface: AbstractTemplateKit
Return the directory in which these templates reside.

Specified by:
getBaseDir in interface AbstractTemplateKit
Returns:
a java.io.File value

getText

protected String getText(String textUrl)
                  throws MalformedURLException,
                         IOException
Describe getText method here.

Parameters:
textUrl - a String value
Throws:
MalformedURLException - if an error occurs
IOException - if an error occurs

getText

protected String getText(URL textURL)
                  throws IOException
Describe getText method here.

Parameters:
textURL - an URL value
Throws:
IOException - if an error occurs