test
Class TestView

java.lang.Object
  extended by test.TestView

public abstract class TestView
extends java.lang.Object

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

statuses

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.


numQuestionsShowing

int numQuestionsShowing

pageNum

int pageNum

numPages

int numPages
Constructor Detail

TestView

public TestView()
Method Detail

showNextPage

abstract void showNextPage()
showNextPage() changes the view of the screen to the next page, given that there are more pages to be viewed.


showPreviousPage

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.


showQuestion

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.