|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.sillyview.Widget
net.sourceforge.pavlov.controllers.QuizController
public final class QuizController
QuizController is a controller that presents the user with
questions and gives various sorts of feedback.
| Field Summary | |
|---|---|
static String |
ANSWER_A
Token used to communicate with velocity model. |
static String |
ANSWER_B
Token used to communicate with velocity model. |
static String |
ANSWER_C
Token used to communicate with velocity model. |
static String |
ANSWER_D
Token used to communicate with velocity model. |
static String |
ANSWER_EVENT
Token used to communicate with velocity model. |
static String |
ANSWER_MODE
Token used to communicate with velocity model. |
static String |
BOOK_NAME
Token used to communicate with velocity model. |
static String |
CHAPTER_NAME
Token used to communicate with velocity model. |
protected int |
fileLocations
Description of the Field |
static String |
HREF_A
Token used to communicate with velocity model. |
static String |
HREF_B
Token used to communicate with velocity model. |
static String |
HREF_C
Token used to communicate with velocity model. |
static String |
HREF_D
Token used to communicate with velocity model. |
static int |
LOCAL_FILES
Description of the Field |
static String |
QUESTION_IMAGE
Token used to communicate with velocity model. |
static String |
QUESTION_TEXT
Token used to communicate with velocity model. |
protected Quiz |
quiz
Describe variable quiz here. |
static int |
REMOTE_FILES
Description of the Field |
static String |
RIGHT
Token used to communicate with velocity model. |
protected QuestionHistory |
s1
Description of the Field |
protected QuizStatus |
s2
Description of the Field |
protected ChapterCoverage |
s3
Description of the Field |
static String |
URL_PREFIX
Token used to communicate with velocity model. |
static String |
WRONG
Token used to communicate with velocity model. |
| Fields inherited from class net.sourceforge.sillyview.Widget |
|---|
view |
| Constructor Summary | |
|---|---|
QuizController(Quiz q,
WidgetView v)
Creates a new QuizFrame instance. |
|
| Method Summary | |
|---|---|
protected String |
getCorrectString(Question ques,
AnswerAtom at)
Gets the correctString attribute of the QuizController object |
URL |
getFileURL(File f)
Gets the fileURL attribute of the QuizController object |
Quiz |
getQuiz()
Get the Quiz value. |
String |
getURLPrefix()
Gets the uRLPrefix attribute of the QuizController object |
void |
questionChanged(Question q,
QuestionData qd)
Description of the Method |
void |
setFileLocations(int i)
Sets the fileLocations attribute of the QuizController object |
void |
setQuiz(Quiz newQuiz)
Set the Quiz value. |
void |
setTemplate(String tmp,
File baseDir)
Sets the template attribute of the QuizController object |
| Methods inherited from class net.sourceforge.sillyview.Widget |
|---|
getView, setView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ANSWER_EVENT
public static final String ANSWER_MODE
public static final String RIGHT
public static final String WRONG
public static final String BOOK_NAME
public static final String CHAPTER_NAME
public static final String QUESTION_TEXT
public static final String QUESTION_IMAGE
public static final String ANSWER_A
public static final String ANSWER_B
public static final String ANSWER_C
public static final String ANSWER_D
public static final String HREF_A
public static final String HREF_B
public static final String HREF_C
public static final String HREF_D
public static final String URL_PREFIX
public static final int LOCAL_FILES
public static final int REMOTE_FILES
protected int fileLocations
protected QuestionHistory s1
protected QuizStatus s2
protected ChapterCoverage s3
protected Quiz quiz
quiz here.
| Constructor Detail |
|---|
public QuizController(Quiz q,
WidgetView v)
QuizFrame instance.
q - a Quiz valuev - a WidgetView value| Method Detail |
|---|
public void setQuiz(Quiz newQuiz)
newQuiz - The new Quiz value.public Quiz getQuiz()
public void questionChanged(Question q,
QuestionData qd)
questionChanged in interface QuestionChangedListenerq - Description of the Parameterqd - Description of the Parameter
public void setTemplate(String tmp,
File baseDir)
tmp - The new template valuebaseDir - The new template value
protected String getCorrectString(Question ques,
AnswerAtom at)
ques - Description of the Parameterat - Description of the Parameter
public void setFileLocations(int i)
i - The new fileLocations valuepublic String getURLPrefix()
public URL getFileURL(File f)
f - Description of the Parameter
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||