net.sourceforge.pavlov.controllers
Class QuestionHistory

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

public final class QuestionHistory
extends Widget
implements QuestionChangedListener

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

Since:
1.1

Field Summary
protected  SimpleDateFormat dateFormat
           
protected  DateFormatter fmt
           
static String LAST_ANSWERED
           
static String NUM_RIGHTS
           
static String TOTAL_ANSWERED
           
 
Fields inherited from class net.sourceforge.sillyview.Widget
view
 
Constructor Summary
QuestionHistory(WidgetView myView)
           
 
Method Summary
 void questionChanged(Question aQuestion, QuestionData aQuestionData)
          Generates some textual information about the user's history with this question and dumps it into the text JLabel.
 
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

fmt

protected DateFormatter fmt

dateFormat

protected SimpleDateFormat dateFormat

LAST_ANSWERED

public static final String LAST_ANSWERED
See Also:
Constant Field Values

NUM_RIGHTS

public static final String NUM_RIGHTS
See Also:
Constant Field Values

TOTAL_ANSWERED

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

QuestionHistory

public QuestionHistory(WidgetView myView)
Method Detail

questionChanged

public void questionChanged(Question aQuestion,
                            QuestionData aQuestionData)
Generates some textual information about the user's history with this question and dumps it into the text JLabel.

Specified by:
questionChanged in interface QuestionChangedListener
Parameters:
aQuestion - a Question value
aQuestionData - a QuestionData value