|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttest.TestView
public abstract class TestView
This class contains the data structures and methods related to viewing a test.
Field Summary | |
---|---|
(package private) int |
numPages
|
(package private) int |
numQuestionsShowing
|
(package private) int |
pageNum
|
(package private) java.util.Collection<Status> |
statuses
statuses is a Collection of Status, which contain information on a specific questions, labeling it as either being NotAttempted, Attempted, and Completed. |
Constructor Summary | |
---|---|
TestView()
|
Method Summary | |
---|---|
(package private) abstract void |
showNextPage()
showNextPage() changes the view of the screen to the next page, given that there are more pages to be viewed. |
(package private) abstract void |
showPreviousPage()
showPreviousPage() changes the current page to the previous page, given that there is a previous page to view and user isn't at first page. |
(package private) abstract void |
showQuestion(int questionNum)
showQuestion() takes in an int variable for a specific question number, and then displays the question on the page, given that the question number isn't 0 and question number is in the range of number of questions available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Collection<Status> statuses
int numQuestionsShowing
int pageNum
int numPages
Constructor Detail |
---|
public TestView()
Method Detail |
---|
abstract void showNextPage()
abstract void showPreviousPage()
abstract void showQuestion(int questionNum)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |