|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.main.DefaultTemplateKit
public class DefaultTemplateKit
A template kit that uses the files in resources/views.
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 |
---|
public DefaultTemplateKit()
Method Detail |
---|
public String getLoginTemplate()
AbstractTemplateKit
getLoginTemplate
in interface AbstractTemplateKit
String
valuepublic String getLibraryTemplate()
AbstractTemplateKit
getLibraryTemplate
in interface AbstractTemplateKit
String
valuepublic String getQuizTemplate()
AbstractTemplateKit
getQuizTemplate
in interface AbstractTemplateKit
String
valuepublic String getWelcomeTemplate()
AbstractTemplateKit
getWelcomeTemplate
in interface AbstractTemplateKit
String
valuepublic File getBaseDir()
AbstractTemplateKit
getBaseDir
in interface AbstractTemplateKit
java.io.File
valueprotected String getText(String textUrl) throws MalformedURLException, IOException
getText
method here.
textUrl
- a String
value
MalformedURLException
- if an error occurs
IOException
- if an error occursprotected String getText(URL textURL) throws IOException
getText
method here.
textURL
- an URL
value
IOException
- if an error occurs
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |