net.sourceforge.pavlov.main
Class Skin

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

public class Skin
extends DefaultTemplateKit

Describe class DefaultTemplateKit here.

Since:
1.1

Constructor Summary
Skin(File directory)
           
 
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.
 SteelmeTheme getTheme()
           
 String getWelcomeTemplate()
          Return the template used to welcome a user to Pavlov.
 
Methods inherited from class net.sourceforge.pavlov.main.DefaultTemplateKit
getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skin

public Skin(File directory)
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
Overrides:
getLoginTemplate in class DefaultTemplateKit
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
Overrides:
getLibraryTemplate in class DefaultTemplateKit
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
Overrides:
getQuizTemplate in class DefaultTemplateKit
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
Overrides:
getWelcomeTemplate in class DefaultTemplateKit
Returns:
a String value

getTheme

public SteelmeTheme getTheme()

getBaseDir

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

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

getText

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

Overrides:
getText in class DefaultTemplateKit
Parameters:
textUrl - a String value
Throws:
MalformedURLException - if an error occurs
IOException - if an error occurs