All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.monsterworks.tests.QuestionPanel



java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.monsterworks.GridPanel
                                   |
                                   +----com.monsterworks.tests.QuestionPanel

public class QuestionPanel
extends com.monsterworks.GridPanel
This class implements a panel which allows a question to be presented and an answer to be given. Currently this is a concrete panel, although it will soon be made abstract to handle a wider variety of question and answer types.

Version:
1.0b1
Author:
Aaron Montgomery

Constructor Index

 o QuestionPanel()
This constructor creates a simplistic question panel where there is no question and the answer is taken via a text field.
 o QuestionPanel(Image)

Method Index

 o answer()
This method returns the student response to the question as a String.

Constructors

 o QuestionPanel


 public QuestionPanel(java.awt.Image inQuestionImage)
Parameters:
inQuestionImage - is the Image to be presented as a question
 o QuestionPanel


 public QuestionPanel()
This constructor creates a simplistic question panel where there is no question and the answer is taken via a text field.

Methods

 o answer


 public java.lang.String answer()
This method returns the student response to the question as a String.

Returns:
s the student's response to the question.



All Packages  Class Hierarchy  This Package  Previous  Next  Index