|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidaddemo.survey.TextQuestionBean
public class TextQuestionBean
class TextQuestionBean This bean represents a single question with a text field as its answer form. It has fields for the question prompt and the correct answer.
| Constructor Summary | |
|---|---|
TextQuestionBean()
Class constructor (no arguments). |
|
TextQuestionBean(String prompt,
String correctAnswer)
Class constructor. |
|
| Method Summary | |
|---|---|
String |
getCorrectAnswer()
|
String |
getCorrectAnswerMessage()
returns a message describing the correct answer choices. |
String |
getPrompt()
returns the question prompt. |
void |
setPrompt(String prompt)
JDev generated accessors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextQuestionBean()
public TextQuestionBean(String prompt,
String correctAnswer)
| Method Detail |
|---|
public void setPrompt(String prompt)
public String getPrompt()
QuestionBean
getPrompt in interface QuestionBeanpublic String getCorrectAnswer()
public String getCorrectAnswerMessage()
QuestionBean
getCorrectAnswerMessage in interface QuestionBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||