net.sourceforge.pavlov.controllers
Class QuizStatus

java.lang.Object
  extended by net.sourceforge.sillyview.Widget
      extended by net.sourceforge.pavlov.controllers.QuizStatus
All Implemented Interfaces:
AnswerListener

public final class QuizStatus
extends Widget
implements AnswerListener

Feedback panel that displays information about the user's history with the specified question.

Since:
1.1

Field Summary
static String ELAPSED_TIME
           
static String NUM_ANSWERS
           
static String NUM_CORRECT_ANSWERS
           
static String NUM_INCORRECT_ANSWERS
           
static String PERCENT_SCORE
           
protected  Date startDate
           
 
Fields inherited from class net.sourceforge.sillyview.Widget
view
 
Constructor Summary
QuizStatus(WidgetView myView)
          Create an empty status panel.
 
Method Summary
 void answerEvent(AnswerEvent e)
          Describe answerEvent method here.
protected  String getTimeString()
           
 
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

startDate

protected Date startDate

ELAPSED_TIME

public static final String ELAPSED_TIME
See Also:
Constant Field Values

NUM_ANSWERS

public static final String NUM_ANSWERS
See Also:
Constant Field Values

NUM_CORRECT_ANSWERS

public static final String NUM_CORRECT_ANSWERS
See Also:
Constant Field Values

NUM_INCORRECT_ANSWERS

public static final String NUM_INCORRECT_ANSWERS
See Also:
Constant Field Values

PERCENT_SCORE

public static final String PERCENT_SCORE
See Also:
Constant Field Values
Constructor Detail

QuizStatus

public QuizStatus(WidgetView myView)
Create an empty status panel.

Method Detail

answerEvent

public void answerEvent(AnswerEvent e)
Describe answerEvent method here.

Specified by:
answerEvent in interface AnswerListener
Parameters:
e - an AnswerEvent value

getTimeString

protected String getTimeString()