|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrivia.QuizBean
@Named @SessionScoped public class QuizBean
This is the main bean class for the Trivia Quiz application. It should get information about quiz categories from the CategoryBean class and information about specific questions from the ProblemBean class. You must complete the QuizBean class, and you must write the CategoryBean and ProblemBean classes. You might want to define other supporting classes as needed.
Constructor Summary | |
---|---|
QuizBean()
|
Method Summary | |
---|---|
java.lang.String |
checkAnotherAnswer()
This method is called after the user has answered a question other than the first. |
java.lang.String |
checkFirstAnswer()
This method is called after the user has answered the first question. |
java.lang.String |
chooseCategory(java.lang.String category)
This method is called from index.html when the user has clicked one of the four quiz buttons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuizBean()
Method Detail |
---|
public java.lang.String chooseCategory(java.lang.String category)
category
- the category selected by the user
public java.lang.String checkFirstAnswer()
public java.lang.String checkAnotherAnswer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |