| 
 | |||||||||
| 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_AToken used to communicate with velocity model. | 
| static String | ANSWER_BToken used to communicate with velocity model. | 
| static String | ANSWER_CToken used to communicate with velocity model. | 
| static String | ANSWER_DToken used to communicate with velocity model. | 
| static String | ANSWER_EVENTToken used to communicate with velocity model. | 
| static String | ANSWER_MODEToken used to communicate with velocity model. | 
| static String | BOOK_NAMEToken used to communicate with velocity model. | 
| static String | CHAPTER_NAMEToken used to communicate with velocity model. | 
| protected  int | fileLocationsDescription of the Field | 
| static String | HREF_AToken used to communicate with velocity model. | 
| static String | HREF_BToken used to communicate with velocity model. | 
| static String | HREF_CToken used to communicate with velocity model. | 
| static String | HREF_DToken used to communicate with velocity model. | 
| static int | LOCAL_FILESDescription of the Field | 
| static String | QUESTION_IMAGEToken used to communicate with velocity model. | 
| static String | QUESTION_TEXTToken used to communicate with velocity model. | 
| protected  Quiz | quizDescribe variable quizhere. | 
| static int | REMOTE_FILESDescription of the Field | 
| static String | RIGHTToken used to communicate with velocity model. | 
| protected  QuestionHistory | s1Description of the Field | 
| protected  QuizStatus | s2Description of the Field | 
| protected  ChapterCoverage | s3Description of the Field | 
| static String | URL_PREFIXToken used to communicate with velocity model. | 
| static String | WRONGToken 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 QuizFrameinstance. | |
| 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 | ||||||||